aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2000-04-20 19:33:11 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-04-20 19:33:11 +0000
commit1368ee700d0d2fd0f0c118e182dda14218dcff5b (patch)
treeb131b13cc8013ec316c7583f27a31866d32d9a99 /gcc/cpphash.h
parent70994f30394bd41eeb3173fcbd40b3db609cb445 (diff)
downloadgcc-1368ee700d0d2fd0f0c118e182dda14218dcff5b.zip
gcc-1368ee700d0d2fd0f0c118e182dda14218dcff5b.tar.gz
gcc-1368ee700d0d2fd0f0c118e182dda14218dcff5b.tar.bz2
cpplib.h (enum cpp_ttype): Add token types for all punctuators.
* cpplib.h (enum cpp_ttype): Add token types for all punctuators. Distinguish pp-numbers from valid C numbers. Give some tokens better names. Initialize from macro. (struct cpp_name, cpp_token, cpp_toklist): New data structures. Update prototypes. * cpplex.c (bump_column, expand_name_space, expand_token_space, init_token_list, cpp_output_list, _cpp_scan_line): New functions. (output_line_command): Add third argument, new line number. * cpphash.h: Update prototypes. * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new token names. From-SVN: r33289
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r--gcc/cpphash.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h
index 9779fad..b0ac3c6 100644
--- a/gcc/cpphash.h
+++ b/gcc/cpphash.h
@@ -120,12 +120,6 @@ struct hashnode
enum node_type type; /* type of special token */
};
-/* Directive flags. */
-
-#define SYNTAX_INCLUDE (1 << 8)
-#define SYNTAX_ASSERT (1 << 9)
-typedef int (* directive_handler) PARAMS ((cpp_reader *));
-
/* List of directories to look for include files in. */
struct file_name_list
{
@@ -315,6 +309,7 @@ extern enum cpp_ttype _cpp_get_directive_token
PARAMS ((cpp_reader *));
extern enum cpp_ttype _cpp_get_define_token
PARAMS ((cpp_reader *));
+extern void _cpp_scan_line PARAMS ((cpp_reader *, cpp_toklist *));
/* In cpplib.c */
extern int _cpp_handle_directive PARAMS ((cpp_reader *));