Debian Codegraph @

list.h

raw
1 /**************************************************************************
2 * This program is Copyright (C) 1986-2002 by Jonathan Payne. JOVE is *
3 * provided by Jonathan and Jovehacks without charge and without *
4 * warranty. You may copy, modify, and/or distribute JOVE, provided that *
5 * this notice is included in all the source files and documentation. *
6 **************************************************************************/
7
8 /* generic singly linked list package */
9
10 typedef struct cons List;
11
12 struct cons {
13 void * car; /* pointer to element */
14 List *cdr;
15 };
16
17 #define list_next(lp) ((lp)->cdr)
18 #define list_data(lp) ((lp)->car)
19
20 extern void
21 *list_push(List **, void *),
22 *list_pop(List **);