summaryrefslogtreecommitdiff
path: root/gcc/c-pragma.h
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-13 20:18:38 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-13 20:18:38 +0000
commit8115b8bebfeb4eb90663a7fd5865993ce7f10121 (patch)
tree13e4924b9d71b04792c65b0f96e8b0a51e4b8ecc /gcc/c-pragma.h
parentba3c4aa716f908155aa26a29b09ab38c3c3b040e (diff)
downloadgcc-8115b8bebfeb4eb90663a7fd5865993ce7f10121.tar.gz
gcc
* c-common.c (fname_as_string): Update. * c-parser.c (c_parser) <lex_untranslated_string>: New field. (c_lex_one_token): Update. Add 'parser' argument. (c_parser_simple_asm_expr): Update. (c_parser_attributes): Update. (c_parser_asm_statement): Update. (c_parser_asm_operands): Update. (c_parser_peek_token): Update. (c_parser_peek_2nd_token): Update. * c-lex.c (c_lex_string_translate): Remove. (c_lex_return_raw_strings): Likewise. (c_lex_with_flags): Added 'lex_flags' argument. (lex_string): Added 'translate' argument. * c-pragma.h (c_lex_with_flags): Update. (c_lex_string_translate, c_lex_return_raw_strings): Remove. (C_LEX_STRING_NO_TRANSLATE): New define. (C_LEX_RAW_STRINGS): Likewise. gcc/cp * parser.c (cp_lexer_new_main): Don't use c_lex_return_raw_strings. (cp_lexer_get_preprocessor_token): Update. Add special case when lexer is NULL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128479 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-pragma.h')
-rw-r--r--gcc/c-pragma.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/gcc/c-pragma.h b/gcc/c-pragma.h
index 8ccf4ba05c0..9896f434bd3 100644
--- a/gcc/c-pragma.h
+++ b/gcc/c-pragma.h
@@ -110,19 +110,18 @@ extern void add_to_renaming_pragma_list (tree, tree);
extern enum cpp_ttype pragma_lex (tree *);
+/* Flags for use with c_lex_with_flags. The values here were picked
+ so that 0 means to translate and join strings. */
+#define C_LEX_STRING_NO_TRANSLATE 1 /* Do not lex strings into
+ execution character set. */
+#define C_LEX_RAW_STRINGS 2 /* Return raw strings -- no
+ concatenation, no
+ translation. */
+
/* This is not actually available to pragma parsers. It's merely a
convenient location to declare this function for c-lex, after
having enum cpp_ttype declared. */
-extern enum cpp_ttype c_lex_with_flags (tree *, location_t *, unsigned char *);
-
-/* If 1, then lex strings into the execution character set.
- If 0, lex strings into the host character set.
- If -1, lex both, and chain them together, such that the former
- is the TREE_CHAIN of the latter. */
-extern int c_lex_string_translate;
-
-/* If true, strings should be passed to the caller of c_lex completely
- unmolested (no concatenation, no translation). */
-extern bool c_lex_return_raw_strings;
+extern enum cpp_ttype c_lex_with_flags (tree *, location_t *, unsigned char *,
+ int);
#endif /* GCC_C_PRAGMA_H */