diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-15 21:43:21 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-15 21:43:21 +0000 |
commit | 3fe7c9431a10fd60756e08ab9c8481b7baad1827 (patch) | |
tree | 67706b17f5cedee1c188770ea57183755dfc2428 /gcc/c-pragma.h | |
parent | 1820c0c56fc4089dd79ce89ea68b7782925b2d0a (diff) | |
download | gcc-3fe7c9431a10fd60756e08ab9c8481b7baad1827.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83201 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-pragma.h')
-rw-r--r-- | gcc/c-pragma.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/c-pragma.h b/gcc/c-pragma.h index 397b02d6840..6bb10f3af70 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 */ |