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 |
5 |
|
*/ |
6 |
+ |
#ifndef _RAD_SM_LIST_H_ |
7 |
+ |
#define _RAD_SM_LIST_H_ |
8 |
|
|
9 |
+ |
#ifdef __cplusplus |
10 |
+ |
extern "C" { |
11 |
+ |
#endif |
12 |
+ |
|
13 |
|
#ifndef TRUE |
14 |
|
#define TRUE 1 |
15 |
|
#define FALSE 0 |
25 |
|
#define LIST_DATA(l) ((l)->d) |
26 |
|
#define SET_LIST_NEXT(l,d) ((l)->next = (d)) |
27 |
|
#define SET_LIST_DATA(l,id) ((l)->d = (int)(id)) |
28 |
+ |
|
29 |
|
/* |
30 |
|
LIST *new_list(void); |
31 |
|
LIST *free_list(LIST *l); |
32 |
|
LIST *append_list(LIST *a, LIST *b); |
33 |
< |
LIST *push_data(LIST *l,int d); |
33 |
> |
|
34 |
|
int pop_data(LIST **l); |
35 |
|
LIST *add_data_to_circular_list(LIST *l,LIST **end,int d) |
36 |
|
int remove_from_list(int d,LIST **list) |
38 |
|
LIST *new_list(); |
39 |
|
LIST *free_list(); |
40 |
|
LIST *append_list(); |
37 |
– |
LIST *push_data(); |
41 |
|
int pop_data(); |
42 |
+ |
LIST *push_data(); |
43 |
|
LIST *add_data_to_circular_list(); |
44 |
|
int remove_from_list(); |
45 |
+ |
LIST *add_data(); |
46 |
|
|
47 |
|
|
48 |
< |
|
48 |
> |
#ifdef __cplusplus |
49 |
> |
} |
50 |
> |
#endif |
51 |
> |
#endif /* _RAD_SM_LIST_H_ */ |
52 |
|
|
53 |
|
|