mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-21 05:10:25 +08:00
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:
parent
c77e04ae3a
commit
8dc4676ddb
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user