]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/files.c
cppfiles.c: Move all default-#defines to top of file.
authorZack Weinberg <zack@wolery.cumb.org>
Tue, 12 Sep 2000 03:42:30 +0000 (03:42 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Tue, 12 Sep 2000 03:42:30 +0000 (03:42 +0000)
commita58d32c208153b93994f6bc1a26dd35e4b58c994
treeb6a034134f9f646df618389e79a9becaa26938a5
parent4ba01ed2ae8beb00e653be369f423a452ed6f363
cppfiles.c: Move all default-#defines to top of file.

* cppfiles.c: Move all default-#defines to top of file.
(open_include_file): Replace by lookup_include_file.
(read_with_read, read_file): Merged into read_include_file.
(stack_include_file, purge_cache): New functions.
(close_cached_fd): Delete.
(lookup_include_file, read_include_file, _cpp_pop_file_buffer):
Cache the in-memory buffer, not the file descriptor.

* cpphash.h (struct include_file): Add buffer, st, refcnt,
mapped fields.
(xcnew): New utility macro.
(DO_NOT_REREAD, NEVER_REREAD): Move up by struct include_file.
* cpplib.h (struct cpp_buffer): Remove mapped field.

* cpplex.c (parse_string): Accept backslash space newline as a
line continuation.
(lex_line): Likewise.
(_cpp_get_token): Remove hard limit on macro nesting.

testsuite:
* gcc.dg/cpp/backslash.c: New test.

From-SVN: r36347
gcc/ChangeLog
gcc/cppfiles.c
gcc/cpphash.h
gcc/cpplex.c
gcc/cpplib.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/backslash.c [new file with mode: 0644]