1 |
< |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
2 |
< |
|
3 |
< |
/* SCCSid "$SunId$ SGI" */ |
4 |
< |
|
1 |
> |
/* RCSid: $Id$ */ |
2 |
|
/* |
3 |
|
* list.h |
4 |
|
* Linked list data structure and routines |
19 |
|
#define LIST_DATA(l) ((l)->d) |
20 |
|
#define SET_LIST_NEXT(l,d) ((l)->next = (d)) |
21 |
|
#define SET_LIST_DATA(l,id) ((l)->d = (int)(id)) |
22 |
+ |
|
23 |
|
/* |
24 |
|
LIST *new_list(void); |
25 |
|
LIST *free_list(LIST *l); |
26 |
|
LIST *append_list(LIST *a, LIST *b); |
27 |
< |
LIST *push_data(LIST *l,int d); |
27 |
> |
|
28 |
|
int pop_data(LIST **l); |
29 |
|
LIST *add_data_to_circular_list(LIST *l,LIST **end,int d) |
30 |
|
int remove_from_list(int d,LIST **list) |
32 |
|
LIST *new_list(); |
33 |
|
LIST *free_list(); |
34 |
|
LIST *append_list(); |
37 |
– |
LIST *push_data(); |
35 |
|
int pop_data(); |
36 |
+ |
LIST *push_data(); |
37 |
|
LIST *add_data_to_circular_list(); |
38 |
|
int remove_from_list(); |
39 |
|
LIST *add_data(); |