projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use create_Const_from_bool() instead of duplicating it.
[cparser]
/
token.c
diff --git
a/token.c
b/token.c
index
183a0ca
..
e72e549
100644
(file)
--- a/
token.c
+++ b/
token.c
@@
-32,7
+32,7
@@
static symbol_t *token_symbols[T_LAST_TOKEN];
static symbol_t *pp_token_symbols[TP_LAST_TOKEN];
static symbol_t *token_symbols[T_LAST_TOKEN];
static symbol_t *pp_token_symbols[TP_LAST_TOKEN];
-const source_position_t builtin_source_position = { "<built-in>", 0, 0 };
+const source_position_t builtin_source_position = { "<built-in>", 0, 0
, true
};
static int last_id;
static int last_id;
@@
-66,7
+66,7
@@
static void register_token(unsigned mode, token_kind_t id, const char *string)
}
}
}
}
-static void register_pp_token(unsigned mode, token_kind_t id,
+static void register_pp_token(unsigned mode,
preprocessor_
token_kind_t id,
const char *string)
{
if (! (c_mode & mode))
const char *string)
{
if (! (c_mode & mode))