cpplib.c: Make all directive handlers read their own arguments.
authorZack Weinberg <zack@rabi.phys.columbia.edu>
Tue, 15 Dec 1998 11:17:06 +0000 (11:17 +0000)
committerDave Brolley <brolley@gcc.gnu.org>
Tue, 15 Dec 1998 11:17:06 +0000 (06:17 -0500)
commit941e09b65f4e06def819f5624d6fb6d25417b1e1
treeb159c3f4e8c5f6ede1944dfdb5b3496afa086930
parent7061aa5a9e81cc89a5854c55a9f650737274beb3
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
gcc/ChangeLog
gcc/cpplib.c