cpplib.h: Merge struct cpp_options into struct cpp_reader.
authorZack Weinberg <zack@gcc.gnu.org>
Fri, 31 Mar 2000 23:16:11 +0000 (23:16 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Fri, 31 Mar 2000 23:16:11 +0000 (23:16 +0000)
commitae79697b721b607964d32468c87d1881c3a39974
treec407bb10c858c1ee81576f79ea01d3e9c8890316
parent7bde2862db58ec0828e26fc95768f6d008a97f6f
cpplib.h: Merge struct cpp_options into struct cpp_reader.

* cpplib.h: Merge struct cpp_options into struct cpp_reader.
Reorder struct cpp_options and struct cpp_reader for better
packing.  Replace CPP_OPTIONS macro with CPP_OPTION which
takes two args.  Change all 'char' flags to 'unsigned char'.
Move show_column flag into struct cpp_options.  Don't
prototype cpp_options_init.
* cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
cppinit.c, cpplex.c, cpplib.c:
Replace CPP_OPTIONS (pfile)->whatever with
CPP_OPTION (pfile, whatever), and likewise for
opts = CPP_OPTIONS (pfile); ... opts->whatever;

* cppinit.c (merge_include_chains): Take a cpp_reader *.
Extract CPP_OPTION (pfile, pending) and work with that
directly.
(cpp_options_init): Delete.
(cpp_reader_init): Turn on on-by-default options here.
Allocate the pending structure here.
(cl_options, enum opt_code): Define these from the same table,
kept in a large macro.  Add -fshow-column and -fno-show-column
options.

* cpperror.c (v_message): If show_column is off, don't print
the column number.

* cppmain.c: Update for new interface.
* fix-header.c: Likewise.

From-SVN: r32850
12 files changed:
gcc/ChangeLog
gcc/cpperror.c
gcc/cppexp.c
gcc/cppfiles.c
gcc/cpphash.c
gcc/cpphash.h
gcc/cppinit.c
gcc/cpplex.c
gcc/cpplib.c
gcc/cpplib.h
gcc/cppmain.c
gcc/fix-header.c