diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-02-10 00:26:47 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-02-10 00:26:47 +0000 |
commit | 564ad5f49e3f4d9d55e972d8ed66ac12bd2c83dc (patch) | |
tree | b97b41fd2091f08d292e94d18de3493399ff1087 /gcc/cppinit.c | |
parent | 3a75e42e813997b8144619d6031b729690639922 (diff) | |
download | gcc-564ad5f49e3f4d9d55e972d8ed66ac12bd2c83dc.zip gcc-564ad5f49e3f4d9d55e972d8ed66ac12bd2c83dc.tar.gz gcc-564ad5f49e3f4d9d55e972d8ed66ac12bd2c83dc.tar.bz2 |
cpphash.c (macarg): Hoist all the flag diddling out of the function...
* cpphash.c (macarg): Hoist all the flag diddling out of the
function...
(macroexpand): ... and out of the loop that calls macarg.
Skip over the initial paren before macro arguments with
cpp_get_non_space_token; point may be some distance before
that paren. Abort if it's not there.
* cpplib.c (parse_clear_mark): Delete function.
(parse_set_mark, parse_goto_mark): Make static.
(ACTIVE_MARK_P): New macro.
(skip_block_comment, skip_line_comment): Do not bump the line
if ACTIVE_MARK_P is true.
(cpp_pop_buffer): The buffer to be popped may not have an
active mark.
(cpp_get_token): When looking for the initial paren before
macro arguments, only set a mark in a file buffer, Always
return to that mark before proceeding to call macroexpand or
return a NAME token.
* cpplib.h: Remove prototypes of parse_set_mark,
parse_clear_mark, parse_goto_mark.
(struct cpp_options): Rename 'put_out_comments' to
'discard_comments' and invert its sense.
* cppinit.c, cpphash.c, cpplib.c: All users of
put_out_comments changed to use discard_comments, with
opposite sense.
From-SVN: r31879
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 102e815..fa67ee2 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -408,6 +408,7 @@ cpp_options_init (opts) opts->dollars_in_ident = 1; opts->cplusplus_comments = 1; opts->warn_import = 1; + opts->discard_comments = 1; opts->pending = (struct cpp_pending *) xcalloc (1, sizeof (struct cpp_pending)); @@ -1600,7 +1601,7 @@ cpp_handle_option (pfile, argc, argv) break; case 'C': - opts->put_out_comments = 1; + opts->discard_comments = 0; break; case 'E': /* -E comes from cc -E; ignore it. */ |