From d0d481d78be7b2adf26289b40b5c53abcc9f7206 Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 16 Sep 2001 11:23:56 +0000 Subject: * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45645 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cpplib.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'gcc/cpplib.h') diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 77199956765..ad7418755a5 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; -- cgit v1.2.3