From fb753f88e9ae5a80d1499596821d3b09fd09cc7c Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sun, 2 Jul 2000 10:56:57 +0200 Subject: cpplib.h (struct cpp_reader): New field include_depth. * cpplib.h (struct cpp_reader): New field include_depth. (struct cpp_printer): Rename last_bsd to last_id. * cppfiles.c (read_include_file): Bump include_depth. * cpplex.c (cpp_pop_buffer): Decrement include_depth. (output_line_command): Output correct #line if a header is including itself and is not protected against multiple inclusion. Use include_depth instead of buffer_stack_depth, last_id instead of last_bsd. * cppinit.c (cpp_start_read): Initialize last_id instead of last_bsd. From-SVN: r34831 --- gcc/cppfiles.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/cppfiles.c') diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index 4e14aae..4def8ed 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -618,6 +618,7 @@ read_include_file (pfile, inc) /* These must be set before prescan. */ fp->inc = inc; fp->nominal_fname = inc->name; + pfile->include_depth++; if (length == 0) inc->cmacro = NEVER_REREAD; -- cgit v1.1