aboutsummaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-06-21 23:08:17 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-06-21 23:08:17 +0000
commite605b0403e89c0286910889cfca158bfc2567cfa (patch)
tree6e4efa3389b627b15921c495d03be0193553df87 /gcc/fix-header.c
parent229e1e4c03db3866f442610e2694dc6f97335ca7 (diff)
downloadgcc-e605b0403e89c0286910889cfca158bfc2567cfa.zip
gcc-e605b0403e89c0286910889cfca158bfc2567cfa.tar.gz
gcc-e605b0403e89c0286910889cfca158bfc2567cfa.tar.bz2
cppfiles.c (cpp_make_system_header): New function.
* 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. From-SVN: r34641
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r--gcc/fix-header.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index 3740ce0..473ef7a 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -606,7 +606,7 @@ check_macro_names (pfile, names)
while (*names)
{
len = strlen (names);
- if (cpp_defined (pfile, names, len))
+ if (cpp_defined (pfile, (const unsigned char *)names, len))
recognized_macro (names);
names += len + 1;
}
@@ -640,7 +640,7 @@ read_scan_file (in_fname, argc, argv)
exit (FATAL_EXIT_CODE);
/* We are scanning a system header, so mark it as such. */
- CPP_BUFFER (&scan_in)->system_header_p = 1;
+ cpp_make_system_header (&scan_in, CPP_BUFFER (&scan_in), 1);
scan_decls (&scan_in, argc, argv);
for (cur_symbols = &symbol_table[0]; cur_symbols->names; cur_symbols++)
@@ -657,7 +657,7 @@ read_scan_file (in_fname, argc, argv)
if (special_file_handling == stdio_h
&& (fn = lookup_std_proto ("_filbuf", 7)) != NULL)
{
- static char getchar_call[] = "getchar();";
+ static const unsigned char getchar_call[] = "getchar();";
int old_written = CPP_WRITTEN (&scan_in);
int seen_filbuf = 0;
cpp_buffer *buf = CPP_BUFFER (&scan_in);