-
- Downloads
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
Showing
- gcc/ChangeLog 22 additions, 6 deletionsgcc/ChangeLog
- gcc/cppfiles.c 6 additions, 15 deletionsgcc/cppfiles.c
- gcc/cpphash.h 0 additions, 5 deletionsgcc/cpphash.h
- gcc/cppinit.c 0 additions, 2 deletionsgcc/cppinit.c
- gcc/cpplex.c 19 additions, 39 deletionsgcc/cpplex.c
- gcc/cpplib.c 4 additions, 7 deletionsgcc/cpplib.c
- gcc/cpplib.h 1 addition, 3 deletionsgcc/cpplib.h
- gcc/cppmain.c 1 addition, 1 deletiongcc/cppmain.c
Loading
Please register or sign in to comment