|
|
1.1 ! root 1: #include "quipu/util.h" ! 2: #include "quipu/attrvalue.h" ! 3: ! 4: static AV_Sequence eptr; ! 5: #define foreach(a) for(eptr = a; eptr != NULLAV; eptr = eptr->avseq_next) ! 6: ! 7: avs_comp_print (ps,avs,format) ! 8: AV_Sequence avs; ! 9: PS ps; ! 10: int format; ! 11: { ! 12: AttrV_print (ps,&avs->avseq_av,format); ! 13: } ! 14: ! 15: avs_print (ps,avs,format) ! 16: AV_Sequence avs; ! 17: PS ps; ! 18: int format; ! 19: { ! 20: if (avs == NULLAV) { ! 21: ps_print (ps,"\n"); ! 22: return; ! 23: } ! 24: ! 25: avs_print_aux (ps,avs,format," & "); ! 26: ps_print (ps,"\n"); ! 27: } ! 28: ! 29: avs_print_aux (ps,avs,format,sep) ! 30: AV_Sequence avs; ! 31: PS ps; ! 32: int format; ! 33: char *sep; ! 34: { ! 35: if (avs == NULLAV) ! 36: return; ! 37: ! 38: avs_comp_print (ps,avs,format); ! 39: if (avs->avseq_next != NULLAV) ! 40: foreach (avs->avseq_next) { ! 41: ps_print (ps,sep); ! 42: AttrV_print (ps,&eptr->avseq_av,format); ! 43: } ! 44: } ! 45:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.