diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2002-08-10 20:58:45 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-08-10 20:58:45 +0000 |
commit | f749a36bbe59505747cca3c58938635114348601 (patch) | |
tree | b7a73f47d865f8fbdf851af000ec4f2c50e3d927 /gcc/cpplib.h | |
parent | 77abb5d87daf09198eca038162e3989dadacbae8 (diff) | |
download | gcc-f749a36bbe59505747cca3c58938635114348601.zip gcc-f749a36bbe59505747cca3c58938635114348601.tar.gz gcc-f749a36bbe59505747cca3c58938635114348601.tar.bz2 |
c-opts.c (set_std_cxx98, [...]): New.
* c-opts.c (set_std_cxx98, set_std_c89): New.
(COMMAND_LINE_OPTIONS): Move more from cppinit.c.
(c_common_decode_option): Handle new switches from cppinit.c.
Add -std=gnu++98.
* cppinit.c (set_lang): Rename cpp_set_lang. Export.
(no_arg, no_num): Remove.
(COMMAND_LINE_OPTIONS): Move more to c-opts.c. Drop all lang-
switches apart from -lang-objc and lang-asm.
(cpp_handle_option): Similarly.
* cpplib.h (cpp_set_lang): New.
* doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
-std=gnu++98.
* objc/lang-specs.h: Remove -ansi.
cp:
* lang-specs.h: Remove -ansi.
From-SVN: r56185
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 97520a7..75a9d92 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -504,6 +504,10 @@ struct cpp_hashnode /* Call this first to get a handle to pass to other functions. */ extern cpp_reader *cpp_create_reader PARAMS ((enum c_lang)); +/* Call this to change the selected language standard (e.g. because of + command line options). */ +extern void cpp_set_lang PARAMS ((cpp_reader *, enum c_lang)); + /* Call these to get pointers to the options and callback structures for a given reader. These pointers are good until you call cpp_finish on that reader. You can either edit the callbacks |