From 11ce684d779b50cf49fa1a9216e55c2dca06b4fc Mon Sep 17 00:00:00 2001 From: brolley Date: Wed, 10 Jun 1998 10:12:36 +0000 Subject: Integrate cpplib into the C and C++ front ends. Wed Jun 10 13:07:02 1998 Dave Brolley * objc/objc-act.c: Add cpplib declarations. (lang_decode_option): Initialize cpplib if necessary. (lang_decode_option): New argc/argv interface. * tree.h (lang_decode_option): New argc/argv interface. * toplev.c (lang_options): Add cpp options. (main): New interface for lang_decode_option. * gcc.c (default_compilers): Don't call cpp for a cpplib-enabled C compiler unless -E, -M or -MM is specified. * cpplib.h (cpp_handle_option): New function. * cpplib.c (cpp_handle_option): New function. (cpp_handle_options): Now calls cpp_handle_option. * c-tree.h (c_decode_option): New argc/argv interface. * c-lex.c (init_parse): cpplib now initialized in c_decode_option. * c-lang.c (lang_decode_option): New argc/argv interface. * c-decl.c: Add cpplib declarations. (c_decode_option): New argc/argv interface. (c_decode_option): Call cpp_handle_option. (c_decode_option): Now returns number of strings processed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20407 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-lang.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gcc/c-lang.c') diff --git a/gcc/c-lang.c b/gcc/c-lang.c index ebba1919680..4a21666cb17 100644 --- a/gcc/c-lang.c +++ b/gcc/c-lang.c @@ -31,10 +31,11 @@ Boston, MA 02111-1307, USA. */ is an alternative to a function in objc-actions.c. */ int -lang_decode_option (p) - char *p; +lang_decode_option (argc, argv) + int argc; + char **argv; { - return c_decode_option (p); + return c_decode_option (argc, argv); } void -- cgit v1.2.1