dump SET_CPP_PEDANTIC
Zack Weinberg
zack@wolery.cumb.org
Fri Mar 3 16:11:00 GMT 2000
The convention is that cpp_handle_option modifies the options
structure directly.
zw
* cppinit.c (cpp_handle_option): Set opts->pedantic directly.
* cpplib.h: Delete SET_CPP_PEDANTIC.
===================================================================
Index: cppinit.c
--- cppinit.c 2000/03/03 17:09:46 1.47
+++ cppinit.c 2000/03/04 00:08:02
@@ -1196,10 +1196,10 @@ cpp_handle_option (pfile, argc, argv)
case 'p':
if (!strcmp (argv[i], "-pedantic"))
- SET_CPP_PEDANTIC (pfile);
+ opts->pedantic = 1;
else if (!strcmp (argv[i], "-pedantic-errors"))
{
- SET_CPP_PEDANTIC (pfile);
+ opts->pedantic = 1;
opts->pedantic_errors = 1;
}
break;
===================================================================
Index: cpplib.h
--- cpplib.h 2000/03/03 00:09:22 1.61
+++ cpplib.h 2000/03/04 00:08:02
@@ -514,8 +514,6 @@ struct cpp_options {
#define CPP_PEDANTIC(PFILE) \
(CPP_OPTIONS (PFILE)->pedantic && !CPP_BUFFER (pfile)->system_header_p)
-#define SET_CPP_PEDANTIC(PFILE) (CPP_OPTIONS (PFILE)->pedantic = 1)
-
/* List of directories to look for include files in. */
struct file_name_list
{
More information about the Gcc-patches
mailing list