diff options
Diffstat (limited to 'gcc/c-lex.h')
-rw-r--r-- | gcc/c-lex.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/gcc/c-lex.h b/gcc/c-lex.h index 7821ab9..049bf6b 100644 --- a/gcc/c-lex.h +++ b/gcc/c-lex.h @@ -34,9 +34,19 @@ extern int indent_level; struct cpp_reader; extern struct cpp_reader* parse_in; -/* Copied from cpplib.h to avoid target code having to pull in all of - cpplib.h. */ -extern void cpp_define PARAMS ((struct cpp_reader *, const char *)); -extern void cpp_assert PARAMS ((struct cpp_reader *, const char *)); + +#define builtin_define(TXT) cpp_define (parse_in, TXT) +#define builtin_assert(TXT) cpp_assert (parse_in, TXT) + +/* Pass an object-like macro. If it doesn't lie in the user's + namespace, defines it unconditionally. Otherwise define a version + with two leading underscores, and another version with two leading + and trailing underscores, and define the original only if an ISO + standard was not nominated. + + e.g. passing "unix" defines "__unix", "__unix__" and possibly + "unix". Passing "_mips" defines "__mips", "__mips__" and possibly + "_mips". */ +extern void builtin_define_std PARAMS ((const char *)); #endif /* ! GCC_C_LEX_H */ |