diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-03-04 01:42:56 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-03-04 01:42:56 +0000 |
commit | 455d25861f0975d0baed1912bf22deed944770a2 (patch) | |
tree | a52521153bf75ca10099523abb8586d4cb5851a7 /gcc/cpplib.c | |
parent | fcd7f76b289ddadbb67057154547d570b94f2b23 (diff) | |
download | gcc-455d25861f0975d0baed1912bf22deed944770a2.zip gcc-455d25861f0975d0baed1912bf22deed944770a2.tar.gz gcc-455d25861f0975d0baed1912bf22deed944770a2.tar.bz2 |
cpplib.h (_dollar_ok): New macro.
* cpplib.h (_dollar_ok): New macro.
(is_idchar, is_idstart): Use it.
(IStable): Rename to _cpp_IStable. Declare it const if
gcc >=2.7 or C99. Delete all references to FAKE_CONST.
(is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
is_space): Update for renamed IStable.
* cppinit.c: Delete all references to FAKE_CONST and CAT
macros. Define init_IStable as empty macro if gcc >=2.7 or
C99. Change TABLE() to ISTABLE and hardcode name of table.
(cpp_start_read): Don't change the IStable based on
dollars_in_ident.
* cpphash.c (unsafe_chars): Add pfile argument. All callers
changed. Handle '$' for char1 correctly.
* cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
* cppexp.c (tokentab2): Make const.
(cpp_lex): Make toktab const.
* cppinit.c (include_defaults_array): Make const.
(initialize_standard_includes): Make default_include const.
From-SVN: r32321
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 96f2ca9..2d89745 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -2615,7 +2615,7 @@ cpp_get_token (pfile) c = PEEKC (); if (c == EOF) break; - if (!is_idchar(c) && c != '.' + if (!is_numchar(c) && c != '.' && ((c2 != 'e' && c2 != 'E' && ((c2 != 'p' && c2 != 'P') || CPP_C89 (pfile))) || (c != '+' && c != '-'))) @@ -2640,7 +2640,7 @@ cpp_get_token (pfile) c = GETC(); if (c == EOF) goto chill_number_eof; - if (!is_idchar(c)) + if (!is_numchar(c)) break; CPP_PUTC (pfile, c); } |