summaryrefslogtreecommitdiff
path: root/gcc/cpplib.h
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-28 01:03:16 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-28 01:03:16 +0000
commit473ce372c0bb64b86f074a2e2a075b3fb4bacbbd (patch)
treea1d9e801ecfc422ad3a6c2468f8a9c254c4e255c /gcc/cpplib.h
parent154fc8fb78916850ce054ef669e6d36a35b8de7f (diff)
downloadgcc-473ce372c0bb64b86f074a2e2a075b3fb4bacbbd.tar.gz
* cpplex.c (_cpp_lex_line): Merge vertical space. Flag
first token of a line BOL. Update EOF code for this. Remove illegal directive check - it appears in the (not yet committed) caller. * cpplib.h (BOL): New flag. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34216 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r--gcc/cpplib.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h
index 5af21cb677d..68059cc1403 100644
--- a/gcc/cpplib.h
+++ b/gcc/cpplib.h
@@ -121,11 +121,11 @@ typedef struct cpp_name cpp_name;
I(CPP_COMMENT, 0) /* Only if output comments. */ \
N(CPP_MACRO_ARG, 0) /* Macro argument. */ \
N(CPP_SUBLIST, 0) /* Sublist. */ \
- T(CPP_VSPACE, "\n") /* End of line. */ \
N(CPP_EOF, 0) /* End of file. */ \
N(CPP_HEADER_NAME, 0) /* <stdio.h> in #include */ \
\
/* Obsolete - will be removed when no code uses them still. */ \
+ T(CPP_VSPACE, "\n") /* End of line. */ \
N(CPP_HSPACE, 0) /* Horizontal white space. */ \
N(CPP_DIRECTIVE, 0) /* #define and the like */ \
N(CPP_MACRO, 0) /* Like a NAME, but expanded. */
@@ -168,8 +168,9 @@ struct cpp_name
/* Flags for the cpp_token structure. */
#define PREV_WHITESPACE 1 /* If whitespace before this token. */
-#define DIGRAPH 2 /* If it was a digraph. */
-#define UNSIGNED_INT 4 /* If int preprocessing token unsigned. */
+#define BOL 2 /* Beginning of line. */
+#define DIGRAPH 4 /* If it was a digraph. */
+#define UNSIGNED_INT 8 /* If int preprocessing token unsigned. */
/* A preprocessing token. This has been carefully packed and should
occupy 16 bytes on both 32- and 64-bit hosts. */