|
|
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: 843 (0x34b)
Types: TextFile
Names: »avs_cpy.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z«
└─⟦de7628f85⟧
└─⟦this⟧ »isode-6.0/dsap/common/avs_cpy.c«
#include "quipu/util.h"
#include "quipu/attrvalue.h"
extern LLog * log_dsap;
static AV_Sequence eptr;
#define foreach(a) for(eptr = a; eptr != NULLAV; eptr = eptr->avseq_next)
AV_Sequence avs_comp_cpy (avs)
AV_Sequence avs;
{
AV_Sequence ptr;
if (avs==NULLAV) {
DLOG (log_dsap,LLOG_DEBUG,("copy of null avs"));
return (NULLAV);
}
ptr = (AV_Sequence) smalloc (sizeof(avseqcomp));
AttrV_cpy_aux (&avs->avseq_av,&ptr->avseq_av);
ptr->avseq_next = NULLAV;
return (ptr);
}
AV_Sequence avs_cpy (avs)
AV_Sequence avs;
{
AV_Sequence start;
AV_Sequence ptr,ptr2;
if (avs == NULLAV ) {
DLOG (log_dsap,LLOG_DEBUG,("avs_cpy of null avs"));
return (NULLAV);
}
start = avs_comp_cpy (avs);
ptr2 = start;
foreach (avs->avseq_next) {
ptr = avs_comp_cpy (eptr);
ptr2->avseq_next = ptr;
ptr2 = ptr;
}
return (start);
}