* parse-scan.y (formal_parameter): Use $2 (type) instead of $$
(modifiers) when square brackets are present in a declaration for
a final paramter.
* jv-scan.c (main): Set input_filename and input_line.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94598
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-02-02 Ranjit Mathew <rmathew@hotmail.com>
+
+ PR java/15543
+ * parse-scan.y (formal_parameter): Use $2 (type) instead of $$
+ (modifiers) when square brackets are present in a declaration for
+ a final paramter.
+ * jv-scan.c (main): Set input_filename and input_line.
+
2005-02-01 Tom Tromey <tromey@redhat.com>
PR java/19742:
* jcf-write.c (generate_bytecode_insns): Implement RSHIFT_EXPR
of unsigned types using iushr and lushr JVM bytecodes.
-2005-02-02 Ranjit Mathew <rmathew@hotmail.com>
+2005-02-01 Ranjit Mathew <rmathew@hotmail.com>
PR java/19738
* gjavah.c (jni_print_float): Do not emit floating-point
if (encoding == NULL || *encoding == '\0')
encoding = DEFAULT_ENCODING;
+ input_filename = filename;
+ input_line = 0;
java_init_lex (finput, encoding);
ctxp->filename = filename;
yyparse ();
if (bracket_count)
{
int i;
- char *n = xmalloc (bracket_count + 1 + strlen ($$));
+ char *n = xmalloc (bracket_count + 1 + strlen ($2));
for (i = 0; i < bracket_count; ++i)
n[i] = '[';
- strcpy (n + bracket_count, $$);
+ strcpy (n + bracket_count, $2);
$$ = n;
}
else