diff options
author | Ranjit Mathew <rmathew@hotmail.com> | 2004-10-15 18:43:10 +0000 |
---|---|---|
committer | Ranjit Mathew <rmathew@gcc.gnu.org> | 2004-10-15 18:43:10 +0000 |
commit | a1402da35c57aa1c074bfc50b20a2a3135ff2987 (patch) | |
tree | 2a09c6df4e237628631d8886fb56b90f7e8897d8 /gcc/java/parse.h | |
parent | e68a07e8d547b03b769527365a40721d4d9298c6 (diff) | |
download | gcc-a1402da35c57aa1c074bfc50b20a2a3135ff2987.zip gcc-a1402da35c57aa1c074bfc50b20a2a3135ff2987.tar.gz gcc-a1402da35c57aa1c074bfc50b20a2a3135ff2987.tar.bz2 |
parse.y (parse_warning_context): Remove ATTRIBUTE_PRINTF_2 and rename parameter 'msg' to 'msgid' in function...
* parse.y (parse_warning_context): Remove ATTRIBUTE_PRINTF_2 and
rename parameter 'msg' to 'msgid' in function declaration.
(issue_warning_error_from_context): Likewise.
(yyerror): Rename parameter 'msg' to 'msgid'.
(all over): Use new quoting style for diagnostics.
* check-init.c: Use %<, %> and %q for quoting in diagnostics,
if possible, else convert `foo' to 'foo'.
* class.c: Likewise.
* decl.c: Likewise.
* expr.c: Likewise.
* jcf-io.c: Likewise.
* jcf-parse.c: Likewise.
* lang.c: Likewise.
* lex.c: Likewise.
* parse.h: Likewise.
From-SVN: r89110
Diffstat (limited to 'gcc/java/parse.h')
-rw-r--r-- | gcc/java/parse.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/java/parse.h b/gcc/java/parse.h index b83d22e..eb749a5 100644 --- a/gcc/java/parse.h +++ b/gcc/java/parse.h @@ -158,14 +158,14 @@ extern tree stabilize_reference (tree); { \ if (flag_redundant && (cl) && ((flags) & (__modifier))) \ parse_warning_context (cl, \ - "Discouraged redundant use of `%s' modifier in declaration of %s", \ + "Discouraged redundant use of %qs modifier in declaration of %s", \ java_accstring_lookup (__modifier), arg); \ } #define OBSOLETE_MODIFIER_WARNING2(cl, flags, __modifier, arg1, arg2) \ { \ if (flag_redundant && (cl) && ((flags) & (__modifier))) \ parse_warning_context (cl, \ - "Discouraged redundant use of `%s' modifier in declaration of %s `%s'", \ + "Discouraged redundant use of %qs modifier in declaration of %s %qs", \ java_accstring_lookup (__modifier), arg1, arg2);\ } @@ -349,12 +349,12 @@ enum { /* Standard error messages */ #define ERROR_CANT_CONVERT_TO_BOOLEAN(OPERATOR, NODE, TYPE) \ parse_error_context ((OPERATOR), \ - "Incompatible type for `%s'. Can't convert `%s' to boolean", \ + "Incompatible type for %qs. Can't convert %qs to boolean", \ operator_string ((NODE)), lang_printable_name ((TYPE),0)) #define ERROR_CANT_CONVERT_TO_NUMERIC(OPERATOR, NODE, TYPE) \ parse_error_context ((OPERATOR), \ - "Incompatible type for `%s'. Can't convert `%s' to numeric type", \ + "Incompatible type for %qs. Can't convert %qs to numeric type", \ operator_string ((NODE)), lang_printable_name ((TYPE), 0)) #define ERROR_CAST_NEEDED_TO_INTEGRAL(OPERATOR, NODE, TYPE) \ @@ -362,19 +362,19 @@ do { \ tree _operator = (OPERATOR), _node = (NODE), _type = (TYPE); \ if (JPRIMITIVE_TYPE_P (_type)) \ parse_error_context (_operator, \ -"Incompatible type for `%s'. Explicit cast needed to convert `%s' to integral",\ +"Incompatible type for %qs. Explicit cast needed to convert %qs to integral",\ operator_string(_node), \ lang_printable_name (_type, 0)); \ else \ parse_error_context (_operator, \ - "Incompatible type for `%s'. Can't convert `%s' to integral", \ + "Incompatible type for %qs. Can't convert %qs to integral", \ operator_string(_node), \ lang_printable_name (_type, 0)); \ } while (0) #define ERROR_VARIABLE_NOT_INITIALIZED(WFL, V) \ parse_error_context \ - ((WFL), "Variable `%s' may not have been initialized", \ + ((WFL), "Variable %qs may not have been initialized", \ IDENTIFIER_POINTER (V)) /* Definition for loop handling. This is Java's own definition of a |