Commit 2a5f4561 authored by neil's avatar neil
Browse files

* 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.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37829 138bc75d-0d04-0410-961f-82ee72b054a4
parent dd193d7c
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.
......
......@@ -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;
......
......@@ -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));
......
......@@ -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
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment