aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-pragma.h
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2004-06-15 21:43:21 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2004-06-15 21:43:21 +0000
commit0173bb6f2d715c4c3839c17e26a38bd522e07fa4 (patch)
tree67706b17f5cedee1c188770ea57183755dfc2428 /gcc/c-pragma.h
parentd0b25f9a2b786f80b5a794f99732b7653afb1ec4 (diff)
downloadgcc-0173bb6f2d715c4c3839c17e26a38bd522e07fa4.zip
gcc-0173bb6f2d715c4c3839c17e26a38bd522e07fa4.tar.gz
gcc-0173bb6f2d715c4c3839c17e26a38bd522e07fa4.tar.bz2
c-pragma.h (c_lex_string_translate): Change type to int.
gcc/ChangeLog: * c-pragma.h (c_lex_string_translate): Change type to int. * c-parse.in: Change all assignments of c_lex_string_translate to true and false to 1 and 0. * c-lex.c (c_lex_string_translate): Likewise. (lex_string): Convert string without translation in the -1 case. gcc/cp/ChangeLog: * parser.c: Change all assignments of c_lex_string_translate to true and false to 1 and 0. (cp_lexer_read_token): Convert type of the translated string. (cp_parser_skip_to_closing_parentheses): Preserve original value of c_lex_string_translate, and set it to -1 while running. (cp_parser_cache_group): Likewise. (cp_parser_cache_group_1): Renamed. (cp_parser_asm_operand_list): Remove redundant setting of c_lex_string_translate. (cp_parser_primary_expression) [CPP_STRING, CPP_WSTRING]: Handle chained strings. From-SVN: r83201
Diffstat (limited to 'gcc/c-pragma.h')
-rw-r--r--gcc/c-pragma.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/c-pragma.h b/gcc/c-pragma.h
index 397b02d..6bb10f3 100644
--- a/gcc/c-pragma.h
+++ b/gcc/c-pragma.h
@@ -57,8 +57,10 @@ extern void add_to_renaming_pragma_list (tree, tree);
extern int c_lex (tree *);
extern int c_lex_with_flags (tree *, unsigned char *);
-/* If true, then lex strings into the execution character set.
- Otherwise, lex strings into the host character set. */
-extern bool c_lex_string_translate;
+/* 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;
#endif /* GCC_C_PRAGMA_H */