diff options
author | Eric Christopher <echristo@gcc.gnu.org> | 2004-01-16 22:37:49 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gcc.gnu.org> | 2004-01-16 22:37:49 +0000 |
commit | cf551fbaca9987dccd728aa2cbaff67de7393fe3 (patch) | |
tree | 95190a526a0984976fac3a95910e9a5e961bea4e /gcc/cpplib.h | |
parent | 2f9c39f8fc04b38b6aac1ad71c83b22cede8b9e9 (diff) | |
download | gcc-cf551fbaca9987dccd728aa2cbaff67de7393fe3.zip gcc-cf551fbaca9987dccd728aa2cbaff67de7393fe3.tar.gz gcc-cf551fbaca9987dccd728aa2cbaff67de7393fe3.tar.bz2 |
cppcharset.c (one_iso88591_to_utf8): New function.
2004-01-16 Eric Christopher <echristo@redhat.com>
Chandrakala Chavva <cchavva@redhat.com>
* cppcharset.c (one_iso88591_to_utf8): New function.
(convert_iso88591_utf8): Ditto. Use.
(conversion_tab): Use.
(_cpp_input_to_utf8): New function.
(_cpp_init_iconv_buffer): Ditto.
(_cpp_close_iconv_buffer): Ditto.
* cpphash.h: Prototype new functions.
(cpp_buffer): Add input_cset_desc.
* cppinit.c: Add input_charset default.
* cpplib.c (cpp_push_buffer): Support init and
close of iconv.
* cpplib.h (cpp_options): Add input_charset.
From-SVN: r76000
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 5f18924..f7e12d2 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -332,6 +332,9 @@ struct cpp_options /* Holds the name of the target wide character set. */ const char *wide_charset; + /* Holds the name of the input character set. */ + const char *input_charset; + /* True to warn about precompiled header files we couldn't use. */ bool warn_invalid_pch; @@ -417,7 +420,7 @@ struct cpp_dir /* Mapping of file names for this directory for MS-DOS and related platforms. A NULL-terminated array of (from, to) pairs. */ const char **name_map; - + /* The C front end uses these to recognize duplicated directories in the search path. */ ino_t ino; @@ -481,7 +484,7 @@ struct cpp_hashnode GTY(()) { struct ht_identifier ident; unsigned int is_directive : 1; - unsigned int directive_index : 7; /* If is_directive, + unsigned int directive_index : 7; /* If is_directive, then index into directive table. Otherwise, a NODE_OPERATOR. */ unsigned char rid_code; /* Rid code - for front ends. */ |