diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-09-16 11:23:56 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-09-16 11:23:56 +0000 |
commit | 18a9d8ff7f06fbdc3ea635c8d55ea4023bad0dd8 (patch) | |
tree | b5637b92895c1d89a6ebec87518678bddc00a55f /gcc/cpplib.h | |
parent | 27553bf3253625f6c3e56d36599b9e7cf188bfe8 (diff) | |
download | gcc-18a9d8ff7f06fbdc3ea635c8d55ea4023bad0dd8.zip gcc-18a9d8ff7f06fbdc3ea635c8d55ea4023bad0dd8.tar.gz gcc-18a9d8ff7f06fbdc3ea635c8d55ea4023bad0dd8.tar.bz2 |
cppmain.c (scan_translation_unit): Don't worry about putting a space after hashes.
* cppmain.c (scan_translation_unit): Don't worry about
putting a space after hashes.
* cpplib.c (directive_diagnostics): New.
(_cpp_handle_directive): Update to use directive_diagnostics.
(run_directive): Don't toggle prevent_expansion.
(do_line): Backup in case of the line extension.
* cpplib.h (cpp_lexer_pos): Remove.
* cppmacro.c (_cpp_create_definition): Precede a leading #
with whitespace.
* gcc.dg/cpp/line5.c: New testcase.
From-SVN: r45645
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 7719995..ad74187 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -41,7 +41,6 @@ typedef struct cpp_token cpp_token; typedef struct cpp_string cpp_string; typedef struct cpp_hashnode cpp_hashnode; typedef struct cpp_macro cpp_macro; -typedef struct cpp_lexer_pos cpp_lexer_pos; typedef struct cpp_callbacks cpp_callbacks; struct answer; @@ -186,13 +185,6 @@ struct cpp_token } val; }; -/* The position of a token in the current file. */ -struct cpp_lexer_pos -{ - unsigned int line; - unsigned short col; -}; - /* A standalone character. We may want to make it unsigned for the same reason we use unsigned char - to avoid signedness issues. */ typedef int cppchar_t; |