]>
Commit | Line | Data |
---|---|---|
52c6b0e2 DL |
1 | /* some of this stuff doesn't seem to parse properly in coccinelle */ |
2 | ||
3 | #define DEFUN(funcname, cmdname, str, help) \ | |
4 | static int funcname \ | |
5 | (const struct cmd_element *self, \ | |
6 | struct vty *vty, \ | |
7 | int argc, \ | |
8 | struct cmd_token *argv[]) | |
9 | #define DEFUN_HIDDEN(funcname, cmdname, str, help) \ | |
10 | static int funcname \ | |
11 | (const struct cmd_element *self, \ | |
12 | struct vty *vty, \ | |
13 | int argc, \ | |
14 | struct cmd_token *argv[]) | |
15 | ||
16 | #define ENABLE_BGP_VNC 1 | |
17 | #define ALL_LIST_ELEMENTS_RO(list,node,data) \ | |
18 | (node) = listhead(list), ((data) = NULL);\ | |
19 | (node) != NULL && ((data) = listgetdata(node)); \ | |
20 | (node) = listnextnode(node), ((data) = NULL) | |
21 | #define ALL_LIST_ELEMENTS(list,node,nextnode,data) \ | |
22 | (node) = listhead(list), ((data) = NULL); \ | |
23 | (node) != NULL && \ | |
24 | ((data) = listgetdata(node),(nextnode) = node->next); \ | |
25 | (node) = (nextnode), ((data) = NULL) | |
26 | #define LIST_HEAD(name, type) \ | |
27 | struct name { \ | |
28 | struct type *lh_first; /* first element */ \ | |
29 | } | |
30 | #define LIST_ENTRY(type) \ | |
31 | struct { \ | |
32 | struct type *le_next; /* next element */ \ | |
33 | struct type **le_prev; /* address of previous next element */ \ | |
34 | } |