cppmacro.c (cpp_scan_buffer_nooutput): Take a boolean indicating whether to scan all buffers on the stack or just one.

* cppmacro.c (cpp_scan_buffer_nooutput): Take a boolean
        indicating whether to scan all buffers on the stack or
        just one.
        * cppinit.c (do_includes): Update.
        * cppmain.c (main): Update.
        * cpplib.h: Update prototype.

From-SVN: r37829
This commit is contained in:
Neil Booth 2000-11-28 21:34:30 +00:00 committed by Neil Booth
parent c77e04ae3a
commit 8dc4676ddb
5 changed files with 15 additions and 5 deletions

View File

@ -1,3 +1,12 @@
2000-11-28 Neil Booth <neilb@earthling.net>
* cppmacro.c (cpp_scan_buffer_nooutput): Take a boolean
indicating whether to scan all buffers on the stack or
just one.
* cppinit.c (do_includes): Update.
* cppmain.c (main): Update.
* cpplib.h: Update prototype.
2000-11-28 Richard Henderson <rth@redhat.com>
* genoutput.c (validate_insn_operands): New.

View File

@ -931,7 +931,7 @@ do_includes (pfile, p, scan)
/* Later: maybe update this to use the #include "" search path
if cpp_read_file fails. */
if (cpp_read_file (pfile, p->arg) && scan)
cpp_scan_buffer_nooutput (pfile);
cpp_scan_buffer_nooutput (pfile, 0);
q = p->next;
free (p);
p = q;

View File

@ -777,7 +777,7 @@ extern void cpp_forall_identifiers PARAMS ((cpp_reader *,
void *));
/* In cppmacro.c */
extern void cpp_scan_buffer_nooutput PARAMS ((cpp_reader *));
extern void cpp_scan_buffer_nooutput PARAMS ((cpp_reader *, int));
extern void cpp_start_lookahead PARAMS ((cpp_reader *));
extern void cpp_stop_lookahead PARAMS ((cpp_reader *, int));

View File

@ -990,11 +990,12 @@ cpp_get_token (pfile, token)
/* Read each token in, until EOF. Directives are transparently
processed. */
void
cpp_scan_buffer_nooutput (pfile)
cpp_scan_buffer_nooutput (pfile, all_buffers)
cpp_reader *pfile;
int all_buffers;
{
cpp_buffer *buffer = pfile->buffer->prev;
cpp_token token;
cpp_buffer *buffer = all_buffers ? 0: pfile->buffer->prev;
do
do

View File

@ -95,7 +95,7 @@ main (argc, argv)
if (CPP_BUFFER (pfile))
{
if (CPP_OPTION (pfile, no_output))
cpp_scan_buffer_nooutput (pfile);
cpp_scan_buffer_nooutput (pfile, 1);
else
scan_buffer (pfile);
}