Skip to content
Snippets Groups Projects
  • Dodji Seketeli's avatar
    ad2305ad
    Fix cpp_peek_token behaviour (PR bootstrap/50778) · ad2305ad
    Dodji Seketeli authored
    libcpp/
    
    	* include/internal.h (_cpp_remaining_tokens_num_in_context): Take the
    	context to act upon.
    	* lex.c (_cpp_remaining_tokens_num_in_context): Likewise.  Update
    	comment.
    	(cpp_token_from_context_at): Likewise.
    	(cpp_peek_token): Use the context to peek tokens from.
    
    From-SVN: r180328
    ad2305ad
    History
    Fix cpp_peek_token behaviour (PR bootstrap/50778)
    Dodji Seketeli authored
    libcpp/
    
    	* include/internal.h (_cpp_remaining_tokens_num_in_context): Take the
    	context to act upon.
    	* lex.c (_cpp_remaining_tokens_num_in_context): Likewise.  Update
    	comment.
    	(cpp_token_from_context_at): Likewise.
    	(cpp_peek_token): Use the context to peek tokens from.
    
    From-SVN: r180328