aboutsummaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@rabi.phys.columbia.edu>1998-12-07 14:15:29 +0000
committerDave Brolley <brolley@gcc.gnu.org>1998-12-07 09:15:29 -0500
commitc50bca0894c554662fbd42728bd118d7b9f41b49 (patch)
tree88adc2af69a7da636a68ab4d8b14fa33e27d1ed3 /gcc/fix-header.c
parentf1a86df6cbc181439d3c1b402275110c9debd76d (diff)
downloadgcc-c50bca0894c554662fbd42728bd118d7b9f41b49.zip
gcc-c50bca0894c554662fbd42728bd118d7b9f41b49.tar.gz
gcc-c50bca0894c554662fbd42728bd118d7b9f41b49.tar.bz2
cpplib.c (initialize_char_syntax): Use ISALPHA and ISALNUM so it'll work on non-ASCII platforms.
1998-12-07 Zack Weinberg <zack@rabi.phys.columbia.edu> * cpplib.c (initialize_char_syntax): Use ISALPHA and ISALNUM so it'll work on non-ASCII platforms. Always consider $ an identifier character. Take no arguments. (cpp_reader_init): Call initialize_char_syntax with no arguments. (cpp_start_read): Don't call initialize_char_syntax again. Clear is_idchar['$'] and is_idstart['$'] if not opts->dollars_in_ident. * cpplib.h (struct cpp_reader): Replace void *data element by cpp_options *opts. Rearrange elements to make gdb printout less annoying (put buffer stack at end). (CPP_OPTIONS): Get rid of now-unnecessary cast. * cppmain.c: s/data/opts/ when initializing cpp_reader structure. * c-decl.c: Likewise. * objc/objc-act.c: Likewise. * fix-header.c: Likewise. From-SVN: r24154
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r--gcc/fix-header.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index 76ae479..ba169fa 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -632,7 +632,7 @@ read_scan_file (in_fname, argc, argv)
obstack_init (&scan_file_obstack);
cpp_reader_init (&scan_in);
- scan_in.data = &scan_options;
+ scan_in.opts = &scan_options;
cpp_options_init (&scan_options);
i = cpp_handle_options (&scan_in, argc, argv);
if (i < argc && ! CPP_FATAL_ERRORS (&scan_in))