c-ppoutput.c (scan_translation_unit): Call account_for_newlines for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
* c-ppoutput.c (scan_translation_unit): Call account_for_newlines for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT. * include/cpplib.h (cpp_token_val_index): Change parameter type to const cpp_token *. * lex.c (cpp_token_val_index): Likewise. * c-c++-common/raw-string-18.c: New test. * c-c++-common/raw-string-19.c: New test. From-SVN: r200878
This commit is contained in:
parent
dfeadaa00b
commit
c26302d535
8 changed files with 62 additions and 3 deletions
|
@ -248,7 +248,7 @@ struct GTY(()) cpp_token {
|
|||
};
|
||||
|
||||
/* Say which field is in use. */
|
||||
extern enum cpp_token_fld_kind cpp_token_val_index (cpp_token *tok);
|
||||
extern enum cpp_token_fld_kind cpp_token_val_index (const cpp_token *tok);
|
||||
|
||||
/* A type wide enough to hold any multibyte source character.
|
||||
cpplib's character constant interpreter requires an unsigned type.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue