nckernel
0.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
common
include
alist.h
Go to the documentation of this file.
1
#define alist_foreach(list, l) \
2
for ((l) = (list); (l); (l) = alist_next(l))
3
4
#define alist_foreach_safe(list, l, n) \
5
for ((l) = (list), (n) = alist_next(l); \
6
(l); \
7
(l) = (n), (n) = alist_next(l))
8
9
struct
alist
;
10
11
extern
struct
alist
*
alist_append
(
struct
alist
*
list
,
struct
alist
*
new
);
12
extern
struct
alist
*
alist_prepend
(
struct
alist
*
list
,
struct
alist
*
new
);
13
extern
struct
alist
*
alist_remove
(
struct
alist
*
list
,
struct
alist
*l);
14
extern
struct
alist
*
alist_next
(
struct
alist
*l);
15
extern
struct
alist
*
alist_prev
(
struct
alist
*l);
16
extern
int
alist_count
(
struct
alist
*l);
17
extern
struct
alist
*
alist_nth
(
struct
alist
*l,
int
nth);
18
19
/* End of a file */
Generated on Thu Nov 7 2013 02:45:25 for nckernel by
1.8.4