#include "quipu/attrvalue.h"
AV_Sequence
avs_comp_cpy (avs
)
ptr
= (AV_Sequence
) smalloc (sizeof(avseqcomp
));
AttrV_cpy_aux (&avs
->avseq_av
,&ptr
->avseq_av
);
ptr
->avseq_next
= NULLAV
;
static AV_Sequence
avs_comp_cpy_enc (avs
)
ptr
= (AV_Sequence
) smalloc (sizeof(avseqcomp
));
AttrV_cpy_enc (&avs
->avseq_av
,&ptr
->avseq_av
);
ptr
->avseq_next
= NULLAV
;
AV_Sequence
avs_cpy (avs
)
register AV_Sequence eptr
;
start
= avs_comp_cpy (avs
);
for(eptr
= avs
->avseq_next
; eptr
!= NULLAV
; eptr
= eptr
->avseq_next
) {
ptr
= avs_comp_cpy (eptr
);
AV_Sequence
avs_cpy_enc (avs
)
register AV_Sequence eptr
;
/* an AVS, and encode at the same time */
start
= avs_comp_cpy_enc (avs
);
for(eptr
= avs
->avseq_next
; eptr
!= NULLAV
; eptr
= eptr
->avseq_next
) {
ptr
= avs_comp_cpy_enc (eptr
);