1 char rcsid_list
[] = "$Id$";
6 newIntList(x
, next
) int x
; IntList next
;
10 l
= (IntList
) zalloc(sizeof(*l
));
19 newList(x
, next
) void *x
; List next
;
23 l
= (List
) zalloc(sizeof(*l
));
32 appendList(x
, l
) void *x
; List l
;
38 for (p
= l
; p
; p
= p
->next
) {
42 last
->next
= newList(x
, 0);
50 foreachList(f
, l
) ListFn f
; List l
;
52 for (; l
; l
= l
->next
) {
58 reveachList(f
, l
) ListFn f
; List l
;
61 reveachList(f
, l
->next
);
71 for(; l
; l
= l
->next
) {