Go to the documentation of this file.
30 #ifndef LHOGHO_LISTS_H
31 #define LHOGHO_LISTS_H
44 #define FLAG_NEWLINE 0x0001
45 #define FLAG_AFTER_SPACE 0x0002
46 #define FLAG_BEFORE_SPACE 0x0004
47 #define FLAG_EXPRESSION 0x0008
48 #define FLAG_TOKENIZED_DATA 0x0010
49 #define FLAG_TOKENIZED_COMMANDS 0x0020
50 #define FLAG_EXTENDED_NODE 0x0040
51 #define FLAG_WAS_LIST_CONST 0x0080
53 #define IS_EXPRESSION(a) GET_FLAGS(a,FLAG_EXPRESSION)
54 #define IS_EXTENDED(a) GET_FLAGS(a,FLAG_EXTENDED_NODE)
58 #define CAR(x) ((x)->unode.a[2])
59 #define CDR(x) ((x)->unode.a[3])
60 #define POS(x) (((atom_ex_t)(x))->unode_ex.a[4])
61 #define IS_LIST(x) (ID(x)==LIST_ID)
62 #define IS_EMPTY(a) ((a)==empty_list)
63 #define IS_NOT_EMPTY(a) ((a)!=empty_list)
85 #endif //LHOGHO_LISTS_H
[ HOME | INDEX | ATOMS | VARS | REFERENCE ]
Lhogho Developer's Documentation
Wed Jul 10 2013