aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2003-03-06 23:12:30 +0000
committerNeil Booth <neil@daikokuya.co.uk>2003-03-06 23:12:30 +0000
commit787eabe0ca04a14287d5ec054102da507079848e (patch)
tree67d3347376b5ce3e8f6b568c099d8391313de175 /gcc/c-lex.c
parent2539852f6cf4ca388efb7d786de21355bac2a49a (diff)
* 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: https://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.c7
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;