diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-06 23:12:30 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-06 23:12:30 +0000 |
commit | e920deaf1748fdced02a6fdd586c792e67d8511a (patch) | |
tree | 67d3347376b5ce3e8f6b568c099d8391313de175 /gcc/c-lex.c | |
parent | ef95318d7471ed79c5ed341a48668c9239964907 (diff) | |
download | gcc-e920deaf1748fdced02a6fdd586c792e67d8511a.tar.gz |
* Makefile.in (c-ppoutput.o): Update.
* c-common.h (init_pp_output): New.
(preprocess_file): Update.
* c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
Register builtins.
* c-opts.c (c_common_init): Call init_pp_output if preprocessing.
Make call to cpp_read_main_file common to whether preprocessing
or not. Don't register builtins.
* c-ppoutput.c: Include c-pragma.h.
(setup_callbacks): Rename init_pp_output.
(preprocess_file): No longer setup callbacks or call
cpp_read_main_file.
* cpphash.h (_cpp_init_mbchar): New.
* cppinit.c (init_library): Call _cpp_init_mbchar.
* cpplex.c (_cpp_init_mbchar): New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63913 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 452056a3c93..9e97ad76b61 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -111,14 +111,9 @@ init_c_lex () toplevel->time = body_time; } -#ifdef MULTIBYTE_CHARS - /* Change to the native locale for multibyte conversions. */ - setlocale (LC_CTYPE, ""); - GET_ENVIRONMENT (literal_codeset, "LANG"); -#endif - cb = cpp_get_callbacks (parse_in); + cb->register_builtins = cb_register_builtins; cb->line_change = cb_line_change; cb->ident = cb_ident; cb->file_change = cb_file_change; |