Skip to content
Snippets Groups Projects
  • Neil Booth's avatar
    d7bc7a98
    cpphash.h (_cpp_push_next_buffer): New. · d7bc7a98
    Neil Booth authored
    	* cpphash.h (_cpp_push_next_buffer): New.
    	* cppinit.c (do_includes): Remove.
    	(push_include, free_chain, _cpp_push_next_buffer): New.
    	(cpp_start_read): Use them to rework command line option handling.
    	(cpp_handle_option): Combine handling of -include and -imacros.
    	* cpplex.c (_cpp_lex_token): Push a new -include buffer if
    	appropriate.  Always insert missing \n at EOF.
    	* cpplib.c (start_directive): Get the directive position right.
    	* cppmain.c (cb_file_change): Always print the first line, unless
    	preprocessed.
    
    From-SVN: r45070
    d7bc7a98
    History
    cpphash.h (_cpp_push_next_buffer): New.
    Neil Booth authored
    	* cpphash.h (_cpp_push_next_buffer): New.
    	* cppinit.c (do_includes): Remove.
    	(push_include, free_chain, _cpp_push_next_buffer): New.
    	(cpp_start_read): Use them to rework command line option handling.
    	(cpp_handle_option): Combine handling of -include and -imacros.
    	* cpplex.c (_cpp_lex_token): Push a new -include buffer if
    	appropriate.  Always insert missing \n at EOF.
    	* cpplib.c (start_directive): Get the directive position right.
    	* cppmain.c (cb_file_change): Always print the first line, unless
    	preprocessed.
    
    From-SVN: r45070