cpphash.c (trad_stringify, add_pat): New functions.
authorZack Weinberg <zack@wolery.cumb.org>
Sat, 22 Apr 2000 23:02:08 +0000 (23:02 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sat, 22 Apr 2000 23:02:08 +0000 (23:02 +0000)
commit0f89df67fc5dbad0e6eb068f6facc4cbb0342c0d
treece631ea761f6a054491332ece44f6ba0154f01b3
parent4ff812cd3f08389d68aa257bbfa9baaf9dbda2cc
cpphash.c (trad_stringify, add_pat): New functions.

* cpphash.c (trad_stringify, add_pat): New functions.
(collect_expansion): Restore support for -traditional syntax.
Use trad_stringify and add_pat.
(_cpp_macroexpand): Restore support for -traditional semantics.
* cpplex.c (_cpp_scan_line): Don't change space_before if we
get a COMMENT token.
(_cpp_lex_token): Provide COMMENT tokens to caller if
traditional and parsing_define_directive.
(skip_comment): Warn about // comments if -Wtraditional.
* cpplib.c (do_define): Fix typo.  Create EMPTY nodes with
proper node type.
(do_undef): Don't warn about undefining EMPTY nodes.

From-SVN: r33350
gcc/ChangeLog
gcc/cpphash.c
gcc/cpplex.c
gcc/cpplib.c