diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-08-29 18:37:37 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-08-29 18:37:37 +0000 |
commit | 2c8f0515bbed378f1e87e1b52e2913d058cbed16 (patch) | |
tree | 7f03453e92f612da7c6531488d3878a73dbda657 /gcc/cpphash.h | |
parent | 5c5d1cd68a748299a244a6b9fd7c3fce2f09d582 (diff) | |
download | gcc-2c8f0515bbed378f1e87e1b52e2913d058cbed16.zip gcc-2c8f0515bbed378f1e87e1b52e2913d058cbed16.tar.gz gcc-2c8f0515bbed378f1e87e1b52e2913d058cbed16.tar.bz2 |
cpperror.c (print_file_and_line): If line is (unsigned int)-1, print just the filename.
* cpperror.c (print_file_and_line): If line is (unsigned int)-1,
print just the filename.
* cpplex.c (_cpp_run_directive): Add additional argument, the
name to give the synthetic buffer. This defaults to
translated "<command line>".
* cpplib.c (cpp_define, cpp_undef, cpp_assert, cpp_unassert):
Adjust to match.
(_cpp_define_builtin): New function.
* cppinit.c (initialize_builtins): Use _cpp_define_builtin.
* cpphash.h: Update prototypes.
* tradcpp.c (main): Process -D and -U simultaneously, in the
order they appeared on the command line.
From-SVN: r36043
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r-- | gcc/cpphash.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h index 23e1d81..45abb69 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -267,7 +267,8 @@ extern int _cpp_equiv_tokens PARAMS ((const cpp_token *, const cpp_token *)); extern void _cpp_run_directive PARAMS ((cpp_reader *, const struct directive *, - const char *, size_t)); + const char *, size_t, + const char *)); extern unsigned int _cpp_get_line PARAMS ((cpp_reader *, unsigned int *)); extern const cpp_token *_cpp_get_token PARAMS ((cpp_reader *)); @@ -284,6 +285,8 @@ extern cpp_hashnode *_cpp_parse_assertion PARAMS ((cpp_reader *, struct answer **)); extern struct answer **_cpp_find_answer PARAMS ((cpp_hashnode *, const cpp_toklist *)); +extern void _cpp_define_builtin PARAMS ((cpp_reader *, const char *)); + extern void _cpp_init_stacks PARAMS ((cpp_reader *)); extern void _cpp_cleanup_stacks PARAMS ((cpp_reader *)); extern void _cpp_init_internal_pragmas PARAMS ((cpp_reader *)); |