OSDN Git Service

* cppexp.c (lex): Don't assume tokens are NUL terminated.
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Apr 2000 06:43:41 +0000 (06:43 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Apr 2000 06:43:41 +0000 (06:43 +0000)
commit1a8af60809628c2745ef613860c6eaca7c406276
treead222e07bcfa7712f2e45413bd925ca19d2ee513
parent65658d25c616ef7e72663d0a2529f4969ce58c9e
* cppexp.c (lex): Don't assume tokens are NUL terminated.
* cpplib.c (do_include, do_import, do_include_next,
read_line_number, detect_if_not_defined): Likewise.
* cpphash.c (collect_expansion): Likewise.
(special_symbol, _cpp_macroexpand): Check return from
cpp_file_buffer.
* cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
macros.  Delete all uses.

* gcc.dg/cpp-mi.c: Add two more test cases.
* gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33223 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cppexp.c
gcc/cpphash.c
gcc/cpphash.h
gcc/cpplex.c
gcc/cpplib.c
gcc/testsuite/gcc.dg/cpp-mi.c
gcc/testsuite/gcc.dg/cpp-mind.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp-mindp.h [new file with mode: 0644]