projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- allow '-' for s and S format
[cparser]
/
symbol_t.h
diff --git
a/symbol_t.h
b/symbol_t.h
index
44b9900
..
1fe4054
100644
(file)
--- a/
symbol_t.h
+++ b/
symbol_t.h
@@
-21,21
+21,28
@@
#define SYMBOL_T_H
#include <stdbool.h>
#define SYMBOL_T_H
#include <stdbool.h>
+#include "symbol.h"
#include "ast.h"
#include "token_t.h"
#include "ast.h"
#include "token_t.h"
-struct pp_definition {
+struct pp_definition_t {
+ symbol_t *symbol;
source_position_t source_position;
source_position_t source_position;
- bool expanding;
- token_t replacement_list[];
+ pp_definition_t *parent_expansion;
+ size_t expand_pos;
+ bool is_variadic;
+ size_t argument_count;
+ token_t *arguments;
+ size_t list_len;
+ token_t *replacement_list;
};
struct symbol_t {
};
struct symbol_t {
- const char *string;
- unsigned short ID;
- unsigned short pp_ID;
- declaration_t *declaration;
- pp_definition
*pp_define
;
+ const char
*string;
+ unsigned short
ID;
+ unsigned short
pp_ID;
+ declaration_t
*declaration;
+ pp_definition
_t *pp_definition
;
};
#endif
};
#endif