[patch] java: Fix comment typos.

Kazu Hirata kazu@codesourcery.com
Tue Sep 6 02:25:00 GMT 2005


Hi,

Committed as obvious.

Kazu Hirata

2005-09-06  Kazu Hirata  <kazu@codesourcery.com>

	* check-init.c, decl.c, expr.c, gcj.texi, java-tree.h,
	jcf-parse.c, jcf.h, parse.h, parse.y, typeck.c: Fix comment
	typos.  Follow spelling conventions.

Index: java/check-init.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/check-init.c,v
retrieving revision 1.66
diff -u -d -p -r1.66 check-init.c
--- java/check-init.c	20 Jul 2005 01:19:39 -0000	1.66
+++ java/check-init.c	6 Sep 2005 02:20:35 -0000
@@ -37,7 +37,7 @@ The Free Software Foundation is independ
 /* The basic idea is that we assign each local variable declaration
    and each blank final field an index, and then we pass around
    bitstrings, where the (2*i)'th bit is set if decl whose DECL_BIT_INDEX
-   is i is definitely assigned, and the the (2*i=1)'th bit is set if 
+   is i is definitely assigned, and the (2*i=1)'th bit is set if 
    decl whose DECL_BIT_INDEX is i is definitely unassigned */
 
 /* One segment of a bitstring. */
Index: java/decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/decl.c,v
retrieving revision 1.227
diff -u -d -p -r1.227 decl.c
--- java/decl.c	2 Jul 2005 10:55:06 -0000	1.227
+++ java/decl.c	6 Sep 2005 02:20:35 -0000
@@ -1231,7 +1231,7 @@ lookup_name (tree name)
 }
 
 /* Similar to `lookup_name' but look only at current binding level and
-   the previous one if its the parameter level.  */
+   the previous one if it's the parameter level.  */
 
 static tree
 lookup_name_current_level (tree name)
@@ -2165,7 +2165,7 @@ java_mark_decl_local (tree decl)
 static void
 java_mark_cni_decl_local (tree decl)
 {
-  /* Setting DECL_LOCAL_CNI_METHOD_P changes the behaviour of the mangler.
+  /* Setting DECL_LOCAL_CNI_METHOD_P changes the behavior of the mangler.
      We expect that we should not yet have referenced this decl in a 
      context that requires it.  Check this invariant even if we don't have
      support for hidden aliases.  */
@@ -2179,7 +2179,7 @@ java_mark_cni_decl_local (tree decl)
   DECL_LOCAL_CNI_METHOD_P (decl) = 1;
 }
 
-/* Use the preceeding two functions and mark all members of the class.  */
+/* Use the preceding two functions and mark all members of the class.  */
 
 void
 java_mark_class_local (tree class)
Index: java/expr.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/expr.c,v
retrieving revision 1.235
diff -u -d -p -r1.235 expr.c
--- java/expr.c	16 Aug 2005 16:06:43 -0000	1.235
+++ java/expr.c	6 Sep 2005 02:20:35 -0000
@@ -2999,8 +2999,8 @@ process_jvm_instruction (int PC, const u
   const char *opname; /* Temporary ??? */
   int oldpc = PC; /* PC at instruction start. */
 
-  /* If the instruction is at the beginning of a exception handler,
-     replace the top of the stack with the thrown object reference */
+  /* If the instruction is at the beginning of an exception handler,
+     replace the top of the stack with the thrown object reference.  */
   if (instruction_bits [PC] & BCODE_EXCEPTION_TARGET)
     {
       /* Note that the verifier will not emit a type map at all for
@@ -3321,7 +3321,7 @@ peek_opcode_at_pc (JCF *jcf, int code_of
 
    This function is used by `give_name_to_locals' so that a local's
    DECL features a DECL_LOCAL_START_PC such that the first related
-   store operation will use DECL as a destination, not a unrelated
+   store operation will use DECL as a destination, not an unrelated
    temporary created for the occasion.
 
    This function uses a global (instruction_bits) `note_instructions' should
Index: java/gcj.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/gcj.texi,v
retrieving revision 1.87
diff -u -d -p -r1.87 gcj.texi
--- java/gcj.texi	25 Jun 2005 00:32:59 -0000	1.87
+++ java/gcj.texi	6 Sep 2005 02:20:36 -0000
@@ -2649,7 +2649,7 @@ Enables printing serialization debugging
 string.  Only used when running a debug build of the library.
 
 @item gnu.classpath.vm.shortname
-This is a succint name of the virtual machine.  For @code{libgcj},
+This is a succinct name of the virtual machine.  For @code{libgcj},
 this will always be @samp{libgcj}.
 
 @item gnu.classpath.home.url
Index: java/java-tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/java-tree.h,v
retrieving revision 1.242
diff -u -d -p -r1.242 java-tree.h
--- java/java-tree.h	16 Aug 2005 00:50:36 -0000	1.242
+++ java/java-tree.h	6 Sep 2005 02:20:36 -0000
@@ -1660,12 +1660,12 @@ extern tree *type_map;
 #define INNER_CLASS_DECL_P(NODE) (TYPE_NAME (TREE_TYPE (NODE)) == NODE	\
 				  && DECL_CONTEXT (NODE))
 
-/* True if NODE is an top level class TYPE_DECL node: NODE isn't
+/* True if NODE is a top level class TYPE_DECL node: NODE isn't
    an inner class or NODE is a static class.  */
 #define TOPLEVEL_CLASS_DECL_P(NODE) (!INNER_CLASS_DECL_P (NODE) 	\
 				     || CLASS_STATIC (NODE))
 
-/* True if the class decl NODE was declared in a inner scope and is
+/* True if the class decl NODE was declared in an inner scope and is
    not a toplevel class */
 #define PURE_INNER_CLASS_DECL_P(NODE) \
   (INNER_CLASS_DECL_P (NODE) && !CLASS_STATIC (NODE))
@@ -1678,7 +1678,7 @@ extern tree *type_map;
 #define TOPLEVEL_CLASS_TYPE_P(NODE) (!INNER_CLASS_TYPE_P (NODE) 	\
 				     || CLASS_STATIC (TYPE_NAME (NODE)))
 
-/* True if the class type NODE was declared in a inner scope and is
+/* True if the class type NODE was declared in an inner scope and is
    not a toplevel class */
 #define PURE_INNER_CLASS_TYPE_P(NODE) \
   (INNER_CLASS_TYPE_P (NODE) && !CLASS_STATIC (TYPE_NAME (NODE)))
Index: java/jcf-parse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-parse.c,v
retrieving revision 1.187
diff -u -d -p -r1.187 jcf-parse.c
--- java/jcf-parse.c	25 Jun 2005 00:33:03 -0000	1.187
+++ java/jcf-parse.c	6 Sep 2005 02:20:36 -0000
@@ -683,7 +683,7 @@ load_class (tree class_or_name, int verb
 	    break;
 
 	  /* We failed loading name. Now consider that we might be looking
-	     for a inner class. */
+	     for an inner class.  */
 	  if ((separator = strrchr (IDENTIFIER_POINTER (name), '$'))
 	      || (separator = strrchr (IDENTIFIER_POINTER (name), '.')))
 	    {
Index: java/jcf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf.h,v
retrieving revision 1.45
diff -u -d -p -r1.45 jcf.h
--- java/jcf.h	25 Jun 2005 00:33:03 -0000	1.45
+++ java/jcf.h	6 Sep 2005 02:20:36 -0000
@@ -62,8 +62,8 @@ The Free Software Foundation is independ
    open() call.
 
    If you want to add another host, add your define to the list below
-   (i.e. defined(WIN32) || defined(YOUR_HOST)) and add an host-specific
-   .c file to Make-lang.in similar to win32-host.c  */
+   (i.e. defined(WIN32) || defined(YOUR_HOST)) and add a host-specific
+   .c file to Make-lang.in similar to win32-host.c.  */
 #if defined(WIN32)
 extern int
 jcf_open_exact_case (const char* filename, int oflag);
Index: java/parse.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/parse.h,v
retrieving revision 1.108
diff -u -d -p -r1.108 parse.h
--- java/parse.h	25 Jun 2005 00:33:05 -0000	1.108
+++ java/parse.h	6 Sep 2005 02:20:36 -0000
@@ -157,7 +157,7 @@ extern void parse_error_context (tree cl
    IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (TYPE))))
 
 /* Pedantic warning on obsolete modifiers. Note: when cl is NULL,
-   flags was set artificially, such as for a interface method */
+   flags was set artificially, such as for an interface method.  */
 #define OBSOLETE_MODIFIER_WARNING(cl, flags, __modifier, arg)                \
   {                                                                          \
     if (flag_redundant && (cl) && ((flags) & (__modifier)))		     \
Index: java/parse.y
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/parse.y,v
retrieving revision 1.553
diff -u -d -p -r1.553 parse.y
--- java/parse.y	5 Sep 2005 14:57:25 -0000	1.553
+++ java/parse.y	6 Sep 2005 02:20:37 -0000
@@ -6074,8 +6074,8 @@ resolve_and_layout (tree something, tree
   if (TREE_CODE (something) == EXPR_WITH_FILE_LOCATION)
     something = EXPR_WFL_NODE (something);
 
-  /* Otherwise, if something is not and IDENTIFIER_NODE, it can be a a
-     TYPE_DECL or a real TYPE */
+  /* Otherwise, if something is not and IDENTIFIER_NODE, it can be a
+     TYPE_DECL or a real TYPE.  */
   else if (TREE_CODE (something) != IDENTIFIER_NODE)
     something = (TREE_CODE (TYPE_NAME (something)) == TYPE_DECL ?
 	    DECL_NAME (TYPE_NAME (something)) : TYPE_NAME (something));
Index: java/typeck.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/typeck.c,v
retrieving revision 1.80
diff -u -d -p -r1.80 typeck.c
--- java/typeck.c	5 Sep 2005 14:57:25 -0000	1.80
+++ java/typeck.c	6 Sep 2005 02:20:37 -0000
@@ -329,7 +329,7 @@ java_array_type_length (tree array_type)
   return -1;
 }
 
-/* An array of unknown length will be ultimately given an length of
+/* An array of unknown length will be ultimately given a length of
    -2, so that we can still have `length' producing a negative value
    even if found. This was part of an optimization aiming at removing
    `length' from static arrays. We could restore it, FIXME.  */



More information about the Java-patches mailing list