diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-29 20:10:10 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-29 20:10:10 +0000 |
commit | c936ffc6e0e2f9d8c968a1e6a7ad9dd73898b945 (patch) | |
tree | 761e9b7042c62d0dc2411e072afe2de5abaaa91e /gcc/pretty-print.c | |
parent | e7fabdb97b4b110b5cc605eb9472c1ae134c1a10 (diff) | |
download | gcc-c936ffc6e0e2f9d8c968a1e6a7ad9dd73898b945.tar.gz |
* pretty-print.c (pp_base_format_text): Support %< instead of %`
and %> as well as %'.
* c-format.c: Use %< and %>.
(gcc_diag_char_table, gcc_cdiag_char_table,
gcc_cxxdiag_char_table): Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82428 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/pretty-print.c')
-rw-r--r-- | gcc/pretty-print.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/pretty-print.c b/gcc/pretty-print.c index 3f70277e0d6..f5a1a77490b 100644 --- a/gcc/pretty-print.c +++ b/gcc/pretty-print.c @@ -179,8 +179,10 @@ pp_base_indent (pretty_printer *pp) %p: pointer. %m: strerror(text->err_no) - does not consume a value from args_ptr. %%: '%'. - %`: opening quote. - %': closing quote. + %<: opening quote. + %>: closing quote. + %': apostrophe (should only be used in untranslated messages; + translations should use appropriate punctuation directly). %.*s: a substring the length of which is specified by an integer. %H: location_t. Flag 'q': quote formatted text (must come immediately after '%'). */ @@ -292,10 +294,11 @@ pp_base_format_text (pretty_printer *pp, text_info *text) pp_character (pp, '%'); break; - case '`': + case '<': pp_string (pp, open_quote); break; + case '>': case '\'': pp_string (pp, close_quote); break; |