diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-01-28 11:22:23 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-01-28 11:22:23 +0000 |
commit | 26ec42ee4d266cf25be73a29888abf906b2d10ef (patch) | |
tree | 1d89d6c0190e47c079ba3aba7080beb23ee2e05a /gcc/cpplex.c | |
parent | 6001735ea0da3d5d89a8f249a79fc8198ff28513 (diff) | |
download | gcc-26ec42ee4d266cf25be73a29888abf906b2d10ef.zip gcc-26ec42ee4d266cf25be73a29888abf906b2d10ef.tar.gz gcc-26ec42ee4d266cf25be73a29888abf906b2d10ef.tar.bz2 |
cpphash.c (_cpp_cleanup_hashtable, [...]): Don't set fe_value.
* cpphash.c (_cpp_cleanup_hashtable, _cpp_lookup_with_hash)
: Don't set fe_value.
* cpplib.h (AVOID_LPASTE): New flag.
(struct cpp_hashnode): Remove fe_value.
* cpplex.c (cpp_avoid_paste): Don't paste '.' with a number.
* cppmacro.c (builtin_macro): Don't set flags here.
(replace_args): Set AVOID_LPASTE flag on first token of an
argument, and the token following it.
(cpp_get_token): Set AVOID_LPASTE flag on first token of a
macro expansion, and on the token following it. Do it for
builtins too.
* cppmain.c (scan_buffer): Avoid pasting only flagged tokens.
From-SVN: r39318
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index 1dc401e..f9431f8 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -1656,7 +1656,7 @@ cpp_avoid_paste (pfile, token1, token2) case CPP_OR: return c == '|'; case CPP_COLON: return c == ':' || c == '>'; case CPP_DEREF: return c == '*'; - case CPP_DOT: return c == '.' || c == '%'; + case CPP_DOT: return c == '.' || c == '%' || b == CPP_NUMBER; case CPP_HASH: return c == '#' || c == '%'; /* Digraph form. */ case CPP_NAME: return ((b == CPP_NUMBER && name_p (pfile, &token2->val.str)) |