ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/sm_list.h
(Generate patch)

Comparing ray/src/hd/sm_list.h (file contents):
Revision 3.3 by gwlarson, Mon Dec 28 18:07:35 1998 UTC vs.
Revision 3.7 by schorsch, Mon Jul 14 22:24:00 2003 UTC

# Line 1 | Line 1
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
# Line 22 | Line 25 | typedef struct _LIST {
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)
# Line 34 | Line 38 | 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 + #ifdef __cplusplus
49 + }
50 + #endif
51 + #endif /* _RAD_SM_LIST_H_ */
52  
53  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines