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/cpplib.h | |
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/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index fc85a02..e0bf7ae 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -59,10 +59,6 @@ enum cpp_token { typedef enum cpp_token (*parse_underflow_t) PARAMS((cpp_reader *)); typedef int (*parse_cleanup_t) PARAMS((cpp_buffer *, cpp_reader *)); -extern void parse_set_mark PARAMS ((cpp_reader *)); -extern void parse_clear_mark PARAMS ((cpp_reader *)); -extern void parse_goto_mark PARAMS ((cpp_reader *)); - extern int cpp_handle_option PARAMS ((cpp_reader *, int, char **)); extern int cpp_handle_options PARAMS ((cpp_reader *, int, char **)); extern enum cpp_token cpp_get_token PARAMS ((cpp_reader *)); @@ -356,9 +352,9 @@ struct cpp_options { char chill; - /* Nonzero means copy comments into the output file. */ + /* Nonzero means don't copy comments into the output file. */ - char put_out_comments; + char discard_comments; /* Nonzero means process the ANSI trigraph sequences. */ |