+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.
/* 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;
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));
/* 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
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);
}