|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T a
Length: 992 (0x3e0) Types: TextFile Names: »as_cpy.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0 └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« └─⟦de7628f85⟧ └─⟦this⟧ »isode-6.0/dsap/common/as_cpy.c«
#include "quipu/util.h" #include "quipu/attrvalue.h" #include "quipu/malloc.h" extern LLog * log_dsap; static Attr_Sequence eptr; #define foreach(a) for(eptr = a; eptr != NULLATTR; eptr=eptr->attr_link) Attr_Sequence as_comp_cpy (as) Attr_Sequence as; { Attr_Sequence ptr; if (as==NULLATTR) { DLOG (log_dsap,LLOG_DEBUG,("copy of null as")); return (NULLATTR); } ptr = (Attr_Sequence) smalloc (sizeof(attrcomp)); AttrT_cpy_aux (&as->attr_type,&ptr->attr_type); ATTRIBUTE_HEAP; ptr->attr_value = avs_cpy (as->attr_value); ptr->attr_link = NULLATTR; ptr->attr_acl = NULLACL_INFO; RESTORE_HEAP; return (ptr); } Attr_Sequence as_cpy (as) Attr_Sequence as; { Attr_Sequence start; Attr_Sequence ptr,ptr2; if (as == NULLATTR) { DLOG (log_dsap,LLOG_DEBUG,("as_cpy of null as")); return (NULLATTR); } start = as_comp_cpy (as); ptr2 = start; foreach (as->attr_link) { ptr = as_comp_cpy (eptr); ptr2->attr_link = ptr; ptr2 = ptr; } return (start); }