Skip to content
Snippets Groups Projects
  • Neil Booth's avatar
    50410426
    cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos. · 50410426
    Neil Booth authored
    	* cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
    	Split mlstring_pos into mls_line and mls_col.
    	* cppinit.c (cpp_create_reader): Initialize line to 1.
    	(cpp_destroy): Free tokenruns.
    	(push_include): Don't update lexer_pos.
    	* cpplex.c (unterminated, parse_string): Update.
    	(lex_token): Don't update lexer_pos, update.
    	* cpplib.c (if_stack): Save line instead of line + col.
    	(start_directive, _cpp_do__Pragma, do_else, do_elif,
    	push_conditional, _cpp_pop_buffer): Update.
    	* cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
    	(_cpp_create_definition): Update.
    
    From-SVN: r45627
    50410426
    History
    cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
    Neil Booth authored
    	* cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
    	Split mlstring_pos into mls_line and mls_col.
    	* cppinit.c (cpp_create_reader): Initialize line to 1.
    	(cpp_destroy): Free tokenruns.
    	(push_include): Don't update lexer_pos.
    	* cpplex.c (unterminated, parse_string): Update.
    	(lex_token): Don't update lexer_pos, update.
    	* cpplib.c (if_stack): Save line instead of line + col.
    	(start_directive, _cpp_do__Pragma, do_else, do_elif,
    	push_conditional, _cpp_pop_buffer): Update.
    	* cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
    	(_cpp_create_definition): Update.
    
    From-SVN: r45627