From 72b04ca42cc8cde82b0106d3c15f9024a7706923 Mon Sep 17 00:00:00 2001 From: neil Date: Sat, 13 Jan 2001 01:00:01 +0000 Subject: * cppinit.c (cpp_handle_option): help_only is now part of the cpp_options structure. * cpplib.c (cpp_errors, cpp_get_options, cpp_get_callbacks, cpp_set_callbacks): New functions. * cpplib.h (cpp_callbacks): Break out as a named structure. (cpp_options): Move help_only here from cpp_reader. (CPP_FATAL_ERRORS): Update to use cpp_errors. (cpp_errors, cpp_get_options, cpp_get_callbacks, cpp_set_callbacks): New prototypes. * cppmain.c (main): Update for help_only. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38971 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cppinit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/cppinit.c') diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 50896b88809..c3347c94d71 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -1290,18 +1290,18 @@ cpp_handle_option (pfile, argc, argv) case OPT_h: case OPT__help: print_help (); - pfile->help_only = 1; + CPP_OPTION (pfile, help_only) = 1; break; case OPT_target__help: /* Print if any target specific options. cpplib has none, but make sure help_only gets set. */ - pfile->help_only = 1; + CPP_OPTION (pfile, help_only) = 1; break; /* --version inhibits compilation, -version doesn't. -v means verbose and -version. Historical reasons, don't ask. */ case OPT__version: - pfile->help_only = 1; + CPP_OPTION (pfile, help_only) = 1; goto version; case OPT_v: CPP_OPTION (pfile, verbose) = 1; -- cgit v1.2.3