diff options
author | Zack Weinberg <zack@rabi.phys.columbia.edu> | 1998-12-15 11:17:06 +0000 |
---|---|---|
committer | Dave Brolley <brolley@gcc.gnu.org> | 1998-12-15 06:17:06 -0500 |
commit | 941e09b65f4e06def819f5624d6fb6d25417b1e1 (patch) | |
tree | b159c3f4e8c5f6ede1944dfdb5b3496afa086930 /gcc/cppalloc.c | |
parent | 7061aa5a9e81cc89a5854c55a9f650737274beb3 (diff) | |
download | gcc-941e09b65f4e06def819f5624d6fb6d25417b1e1.zip gcc-941e09b65f4e06def819f5624d6fb6d25417b1e1.tar.gz gcc-941e09b65f4e06def819f5624d6fb6d25417b1e1.tar.bz2 |
cpplib.c: Make all directive handlers read their own arguments.
1998-12-14 00:56 -0500 Zack Weinberg <zack@rabi.phys.columbia.edu>
* cpplib.c: Make all directive handlers read their own
arguments.
(struct directive): Remove last two arguments from FUNC
member prototype. Remove `command_reads_line' member
entirely.
(directive_table): Remove initializations of
command_reads_line flag. Pretty-print.
(eval_if_expression, do_define, do_line, do_include,
do_undef, do_error, do_pragma, do_ident, do_if, do_xifdef,
do_else, do_elif, do_sccs, do_assert, do_unassert,
do_warning): Take only two args.
(cpp_define): Call do_define with two args and the text to
define stuffed into a buffer.
(make_assertion): Call do_assert with two args.
(handle_directive): Call do_line with two args. Call
kt->func with two args. Remove command_reads_line
processing.
(do_define, do_undef, do_error, do_warning, do_pragma,
do_sccs): Read the rest of the line here.
(do_ident): Gobble rest of line, as cccp does.
(cpp_undef): New function.
(cpp_start_read): Call cpp_undef instead of do_undef.
From-SVN: r24326
Diffstat (limited to 'gcc/cppalloc.c')
0 files changed, 0 insertions, 0 deletions