aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.h
diff options
context:
space:
mode:
authorNeil Booth <neilb@earthling.net>2000-05-28 01:03:16 +0000
committerNeil Booth <neil@gcc.gnu.org>2000-05-28 01:03:16 +0000
commitf624ffa71f84afc0f8fb14e76a664a4556574efd (patch)
treea1d9e801ecfc422ad3a6c2468f8a9c254c4e255c /gcc/cpplib.h
parentad265aa4d61d9c7dac95718a1f00c18476c7ee13 (diff)
downloadgcc-f624ffa71f84afc0f8fb14e76a664a4556574efd.zip
gcc-f624ffa71f84afc0f8fb14e76a664a4556574efd.tar.gz
gcc-f624ffa71f84afc0f8fb14e76a664a4556574efd.tar.bz2
cpplex.c (_cpp_lex_line): Merge vertical space.
* 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. From-SVN: r34216
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 5af21cb..68059cc 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. */