diff options
author | Philipp Thomas <pthomas@suse.de> | 2000-06-28 23:46:27 +0000 |
---|---|---|
committer | Philipp Thomas <pthomas@gcc.gnu.org> | 2000-06-28 23:46:27 +0000 |
commit | 5e4adfbabc05f6e37ed5ae233b0a43f144fef4f6 (patch) | |
tree | cf84960b7dcda6445f2020417d413146c796651f /gcc/c-decl.c | |
parent | 3153b3b70c358fe8e4db599c2086f1444b2c4d21 (diff) | |
download | gcc-5e4adfbabc05f6e37ed5ae233b0a43f144fef4f6.zip gcc-5e4adfbabc05f6e37ed5ae233b0a43f144fef4f6.tar.gz gcc-5e4adfbabc05f6e37ed5ae233b0a43f144fef4f6.tar.bz2 |
c-decl.c: Mark strings for translation.
2000-06-28 Philipp Thomas <pthomas@suse.de>
* c-decl.c : Mark strings for translation.
(parmlist_tags_warning): Use distinct messages instead
of conditional expressions.
* diagnostic.c (v_message_with_decl): Mark string for translation.
* gcc.c: Mark messages for translation.
(display_help): Combine messages into one string where necessary.
* mips-tfile.c: Add intl.h. Mark messages for translation.
* rtl.c (fatal_with_file_and_line): Modify function for NLS. Mark
messages for translation.
* timevar.c: Mark messages for translation.
* tlink.c: Likewise.
* toplev.c: Likewise.
From-SVN: r34773
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 54acc37..fea89c7 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -5059,11 +5059,15 @@ parmlist_tags_warning () : "enum"), IDENTIFIER_POINTER (TREE_PURPOSE (elt))); else - warning ("anonymous %s declared inside parameter list", - (code == RECORD_TYPE ? "struct" - : code == UNION_TYPE ? "union" - : "enum")); - + { + /* For translation these need to be seperate warnings */ + if (code == RECORD_TYPE) + warning ("anonymous struct declared inside parameter list"); + else if (code == UNION_TYPE) + warning ("anonymous union declared inside parameter list"); + else + warning ("anonymous enum declared inside parameter list"); + } if (! already) { warning ("its scope is only this definition or declaration, which is probably not what you want."); @@ -5207,10 +5211,10 @@ finish_struct (t, fieldlist, attributes) { if (pedantic) pedwarn ("%s defined inside parms", - TREE_CODE (t) == UNION_TYPE ? "union" : "structure"); + TREE_CODE (t) == UNION_TYPE ? _("union") : _("structure")); else if (! flag_traditional) warning ("%s defined inside parms", - TREE_CODE (t) == UNION_TYPE ? "union" : "structure"); + TREE_CODE (t) == UNION_TYPE ? _("union") : _("structure")); } if (pedantic) @@ -5220,9 +5224,9 @@ finish_struct (t, fieldlist, attributes) break; if (x == 0) - pedwarn ("%s has no %smembers", - TREE_CODE (t) == UNION_TYPE ? "union" : "struct", - fieldlist ? "named " : ""); + pedwarn ("%s has no %s", + TREE_CODE (t) == UNION_TYPE ? _("union") : _("struct"), + fieldlist ? _("named members") : _("members")); } /* Install struct as DECL_CONTEXT of each field decl. |