From 6af24d0a730f978321a2c3132560ef33d12b3085 Mon Sep 17 00:00:00 2001 From: zack Date: Wed, 21 Jun 2000 23:08:17 +0000 Subject: * cppfiles.c (cpp_make_system_header): New function. * cpplib.h: Prototype it. * cpplib.c (do_line, do_pragma_system_header): Use it. * fix-header.c (read_scan_file): Use it. * fix-header.c (check_macro_names): Cast second arg of cpp_defined to const unsigned char *. (read_scan_file): Make getchar_call const unsigned char. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34641 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cpplib.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gcc/cpplib.c') diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 3fc39dc06a4..93798fac36f 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -603,23 +603,23 @@ do_line (pfile) if (action_number == 1) { pfile->buffer_stack_depth++; - ip->inc->sysp = 0; + cpp_make_system_header (pfile, ip, 0); read_line_number (pfile, &action_number); } else if (action_number == 2) { pfile->buffer_stack_depth--; - ip->inc->sysp = 0; + cpp_make_system_header (pfile, ip, 0); read_line_number (pfile, &action_number); } if (action_number == 3) { - ip->inc->sysp = 1; + cpp_make_system_header (pfile, ip, 1); read_line_number (pfile, &action_number); } if (action_number == 4) { - ip->inc->sysp = 2; + cpp_make_system_header (pfile, ip, 2); read_line_number (pfile, &action_number); } } @@ -978,7 +978,7 @@ do_pragma_system_header (pfile) if (CPP_PREV_BUFFER (ip) == NULL) cpp_warning (pfile, "#pragma system_header outside include file"); else - ip->inc->sysp = 1; + cpp_make_system_header (pfile, ip, 1); return 1; } -- cgit v1.2.1