summaryrefslogtreecommitdiff
path: root/gcc/pretty-print.c
diff options
context:
space:
mode:
authorJoseph Myers <jsm@polyomino.org.uk>2004-05-29 21:10:10 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2004-05-29 21:10:10 +0100
commitca09cd34f1e976658a5cc60abaf880b2c4901e10 (patch)
tree761e9b7042c62d0dc2411e072afe2de5abaaa91e /gcc/pretty-print.c
parent9e953fed92f75f63acb652eb8b2c3b3245ca24fc (diff)
downloadgcc-ca09cd34f1e976658a5cc60abaf880b2c4901e10.tar.gz
pretty-print.c (pp_base_format_text): Support %< instead of %` and %> as well as %'.
* 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. From-SVN: r82428
Diffstat (limited to 'gcc/pretty-print.c')
-rw-r--r--gcc/pretty-print.c9
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;