diff options
author | Neil Booth <neilb@earthling.net> | 2000-11-09 21:18:15 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-11-09 21:18:15 +0000 |
commit | a949941cf79dc2bee4e741ce3928e11c4053f257 (patch) | |
tree | faf4076c83d65bd44e0d82d85813fd94e77029cf /gcc/cpplib.c | |
parent | 9a0662b4d5ca89808c149d69d271068ae0e54560 (diff) | |
download | gcc-a949941cf79dc2bee4e741ce3928e11c4053f257.zip gcc-a949941cf79dc2bee4e741ce3928e11c4053f257.tar.gz gcc-a949941cf79dc2bee4e741ce3928e11c4053f257.tar.bz2 |
cpphash.c: Move cpp_defined here from cpplib.c.
* cpphash.c: Move cpp_defined here from cpplib.c.
* cpplib.c: Update comments, move cpp_defined to cpphash.c.
* cpplex.c (_cpp_lex_token): Don't leave the lexer at EOL.
* cppmacro.c (cpp_get_token): Update comments, no need now
to catch the CPP_EOF meaning EOL case.
From-SVN: r37345
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 1a9c483..fb34680 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -1,4 +1,4 @@ -/* CPP Library. +/* CPP Library. (Directive handling.) Copyright (C) 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. Contributed by Per Bothner, 1994-95. @@ -837,12 +837,7 @@ do_ident (pfile) to the front end. C99 defines three pragmas and says that no macro expansion is to be performed on them; whether or not macro expansion happens for other pragmas is implementation defined. - This implementation never macro-expands the text after #pragma. - - We currently do not support the _Pragma operator. Support for that - has to be coordinated with the front end. Proposed implementation: - both #pragma blah blah and _Pragma("blah blah") become - __builtin_pragma(blah blah) and we teach the parser about that. */ + This implementation never macro-expands the text after #pragma. */ /* Sub-handlers for the pragmas needing treatment here. They return 1 if the token buffer is to be popped, 0 if not. */ @@ -1700,19 +1695,6 @@ handle_assertion (pfile, str, type) run_directive (pfile, type, str, count, 0); } -/* Determine whether the identifier ID, of length LEN, is a defined macro. */ -int -cpp_defined (pfile, id, len) - cpp_reader *pfile; - const U_CHAR *id; - int len; -{ - cpp_hashnode *hp = cpp_lookup (pfile, id, len); - - /* If it's of type NT_MACRO, it cannot be poisoned. */ - return hp->type == NT_MACRO; -} - /* Allocate a new cpp_buffer for PFILE, and push it on the input buffer stack. If BUFFER != NULL, then use the LENGTH characters in BUFFER as the new input buffer. Return the new buffer, or NULL on |