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>
|
2000-11-28 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
* genoutput.c (validate_insn_operands): New.
|
* 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
|
/* Later: maybe update this to use the #include "" search path
|
||||||
if cpp_read_file fails. */
|
if cpp_read_file fails. */
|
||||||
if (cpp_read_file (pfile, p->arg) && scan)
|
if (cpp_read_file (pfile, p->arg) && scan)
|
||||||
cpp_scan_buffer_nooutput (pfile);
|
cpp_scan_buffer_nooutput (pfile, 0);
|
||||||
q = p->next;
|
q = p->next;
|
||||||
free (p);
|
free (p);
|
||||||
p = q;
|
p = q;
|
||||||
|
|
|
@ -777,7 +777,7 @@ extern void cpp_forall_identifiers PARAMS ((cpp_reader *,
|
||||||
void *));
|
void *));
|
||||||
|
|
||||||
/* In cppmacro.c */
|
/* 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_start_lookahead PARAMS ((cpp_reader *));
|
||||||
extern void cpp_stop_lookahead PARAMS ((cpp_reader *, int));
|
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
|
/* Read each token in, until EOF. Directives are transparently
|
||||||
processed. */
|
processed. */
|
||||||
void
|
void
|
||||||
cpp_scan_buffer_nooutput (pfile)
|
cpp_scan_buffer_nooutput (pfile, all_buffers)
|
||||||
cpp_reader *pfile;
|
cpp_reader *pfile;
|
||||||
|
int all_buffers;
|
||||||
{
|
{
|
||||||
cpp_buffer *buffer = pfile->buffer->prev;
|
|
||||||
cpp_token token;
|
cpp_token token;
|
||||||
|
cpp_buffer *buffer = all_buffers ? 0: pfile->buffer->prev;
|
||||||
|
|
||||||
do
|
do
|
||||||
do
|
do
|
||||||
|
|
|
@ -95,7 +95,7 @@ main (argc, argv)
|
||||||
if (CPP_BUFFER (pfile))
|
if (CPP_BUFFER (pfile))
|
||||||
{
|
{
|
||||||
if (CPP_OPTION (pfile, no_output))
|
if (CPP_OPTION (pfile, no_output))
|
||||||
cpp_scan_buffer_nooutput (pfile);
|
cpp_scan_buffer_nooutput (pfile, 1);
|
||||||
else
|
else
|
||||||
scan_buffer (pfile);
|
scan_buffer (pfile);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue