From 7868b4a2520b831eec35cbabc7f28d3694aebbf4 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 4 Mar 2001 12:02:02 +0000 Subject: cppfiles.c (_cpp_execute_include): Don't make a null-terminated copy of the filename. * cppfiles.c (_cpp_execute_include): Don't make a null-terminated copy of the filename. Don't use CPP_PREV_BUFFER. Don't call strlen or strcpy; we already know the length. (_cpp_compare_file_date): Similarly. * cpphash.h (struct cpp_reader): Delete done_initialising. (CPP_PREV_BUFFER): Delete. * cppinit.c (cpp_start_read): Don't set done_initialising. * cpplex.c (parse_string): Guarantee null-termination. (_cpp_equiv_toklists): Remove. * cpplib.c (glue_header_name): Null-terminate. (do_line): Don't leak memory. * cpplib.h (BT_WEAK): Delete. * cppmain.c (cb_ident): Strings are now null-terminated. From-SVN: r40233 --- gcc/cppinit.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'gcc/cppinit.c') diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 61f72b4..457d266 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -948,8 +948,6 @@ cpp_start_read (pfile, fname) p = q; } - pfile->done_initializing = 1; - /* The -imacros files can be scanned now, but the -include files have to be pushed onto the buffer stack and processed later, otherwise cppmain.c won't see the tokens. include_head was built -- cgit v1.1