aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse-scan.y
diff options
context:
space:
mode:
authorRanjit Mathew <rmathew@gcc.gnu.org>2004-06-27 18:16:49 +0000
committerRanjit Mathew <rmathew@gcc.gnu.org>2004-06-27 18:16:49 +0000
commitfe0b9fb522697476efe3f577aa92d0aac6bd220e (patch)
treeae6a831680a4a8773039866e4630fca3682dcab3 /gcc/java/parse-scan.y
parenta6048f29032044e460566124fd2634b4a9217a42 (diff)
downloadgcc-fe0b9fb522697476efe3f577aa92d0aac6bd220e.zip
gcc-fe0b9fb522697476efe3f577aa92d0aac6bd220e.tar.gz
gcc-fe0b9fb522697476efe3f577aa92d0aac6bd220e.tar.bz2
Formatting fixes.
* expr.c (class_has_finalize_method): Fix method name indentation. (expand_java_call): Remove K&R style parameter declaration. (expand_invoke): Fix statement indentation. (expand_java_field_op): Likewise. * parse-scan.y: Fix typo. (reset_report): Fix method name indentation. * parse.y (unresolved_type_p, build_expr_block): Remove extra blank line. Fix typos. * verify.c (verify_jvm_instructions): Document parameters, insert page break. * lang.c (lang_init_source): Fix method name indentation. * class.c (common_enclosing_context_p): Likewise. (emit_symbol_table): Fix parameter list indentation. * decl.c (add_stmt_to_compound, java_add_stmt): Remove K&R style parameter declaration. * constants.c: Fix copyright notice indentation. * typeck.c (find_method_in_superclasses): Fix parameter list indentation. (find_method_in_interfaces): Likewise. * zextract.c (makelong): Fix method name indentation. From-SVN: r83738
Diffstat (limited to 'gcc/java/parse-scan.y')
-rw-r--r--gcc/java/parse-scan.y10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/java/parse-scan.y b/gcc/java/parse-scan.y
index 8c622a4..06409b2 100644
--- a/gcc/java/parse-scan.y
+++ b/gcc/java/parse-scan.y
@@ -1,5 +1,6 @@
/* Parser grammar for quick source code scan of Java(TM) language programs.
- Copyright (C) 1998, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004
+ Free Software Foundation, Inc.
Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com)
This file is part of GCC.
@@ -553,8 +554,8 @@ static: /* Test lval.sub_token here */
/* 19.8.5 Productions from 8.6: Constructor Declarations */
/* NOTE FOR FURTHER WORK ON CONSTRUCTORS:
- - If a forbidded modifier is found, the the error is either the use of
- a forbidded modifier for a constructor OR bogus attempt to declare a
+ - If a forbidden modifier is found, the error is either the use of
+ a forbidden modifier for a constructor OR bogus attempt to declare a
method without having specified the return type. FIXME */
constructor_declaration:
constructor_declarator throws constructor_body
@@ -1344,7 +1345,8 @@ report (void)
/* Reset global status used by the report functions. */
-void reset_report (void)
+void
+reset_report (void)
{
previous_output = 0;
package_name = NULL;