This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] ada/*: Fix comment/doc typos.


Hi,

Committed as obvious.

Kazu Hirata

2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>

	* adaint.c, init.c, tracebak.c: Fix comment typos.
	* gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.

Index: adaint.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/adaint.c,v
retrieving revision 1.47
diff -u -d -p -r1.47 adaint.c
--- adaint.c	1 Apr 2005 05:27:59 -0000	1.47
+++ adaint.c	10 Apr 2005 17:29:55 -0000
@@ -1308,7 +1308,7 @@ __gnat_set_env_value (char *name, char *
 	*next = 0;
 	ile_array[i].len = strlen (curr);
 
-	/* Code 2 from lnmdef.h means its a string.  */
+	/* Code 2 from lnmdef.h means it's a string.  */
 	ile_array[i].code = 2;
 	ile_array[i].adr = curr;
 
@@ -2204,7 +2204,7 @@ __gnat_to_canonical_dir_spec (char *dirs
 }
 
 /* Translate a VMS syntax file specification into Unix syntax.
-   If no indicators of VMS syntax found, check if its an uppercase
+   If no indicators of VMS syntax found, check if it's an uppercase
    alphanumeric_ name and if so try it out as an environment
    variable (logical name). If all else fails return the
    input string.  */
Index: gnat-style.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/gnat-style.texi,v
retrieving revision 1.13
diff -u -d -p -r1.13 gnat-style.texi
--- gnat-style.texi	1 Sep 2004 11:51:52 -0000	1.13
+++ gnat-style.texi	10 Apr 2005 17:29:56 -0000
@@ -332,7 +332,7 @@ sufficient, as comments.
 @node    Declarations and Types, Expressions and Names, Lexical Elements,Top
 @section Declarations and Types
 @c  -------------------------------------------------------------------------
-@cindex Declarationa and Types
+@cindex Declarations and Types
 
 @itemize @bullet
 @item
Index: gnat_rm.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/gnat_rm.texi,v
retrieving revision 1.34
diff -u -d -p -r1.34 gnat_rm.texi
--- gnat_rm.texi	29 Mar 2005 16:23:06 -0000	1.34
+++ gnat_rm.texi	10 Apr 2005 17:30:06 -0000
@@ -521,7 +521,7 @@ of project files.
 @ref{Obsolescent Features} documents implementation dependent features,
 including pragmas and attributes, which are considered obsolescent, since
 there are other preferred ways of achieving the same results. These
-obsolescent forms are retained for backwards compatibilty.
+obsolescent forms are retained for backwards compatibility.
 
 @end itemize
 
@@ -12939,7 +12939,7 @@ example see the body of @code{GNAT.Table
 @node System.Partition_Interface (s-parint.ads)
 @section @code{System.Partition_Interface} (@file{s-parint.ads})
 @cindex @code{System.Partition_Interface} (@file{s-parint.ads})
-@cindex Partition intefacing functions
+@cindex Partition interfacing functions
 
 @noindent
 This package provides facilities for partition interfacing.  It
@@ -14603,7 +14603,7 @@ of the @command{gnatls} utility to be us
 predefined path; e.g., @code{"gnatls"}, @code{"powerpc-wrs-vxworks-gnatls"}.
 
 @item VCS_Kind
-This is a simple atribute. Is value is a string used to specify the
+This is a simple attribute. Is value is a string used to specify the
 Version Control System (VCS) to be used for this project, e.g CVS, RCS
 ClearCase or Perforce.
 
Index: gnat_ugn.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/gnat_ugn.texi,v
retrieving revision 1.29
diff -u -d -p -r1.29 gnat_ugn.texi
--- gnat_ugn.texi	29 Mar 2005 16:14:20 -0000	1.29
+++ gnat_ugn.texi	10 Apr 2005 17:30:27 -0000
@@ -2962,7 +2962,7 @@ in section B.3 of the Ada 95 Reference M
 
 @findex C varargs function
 @cindex Intefacing to C varargs function
-@cindex varargs function intefacs
+@cindex varargs function interfaces
 @item C varargs function
 In C, @code{varargs} allows a function to take a variable number of
 arguments. There is no direct equivalent in this to Ada. One
@@ -4721,7 +4721,7 @@ such warnings are not generated.
 
 In addition to the above cases, warnings are also generated for
 GNAT features that have been provided in past versions but which
-have been superceded (typically by features in the new Ada standard).
+have been superseded (typically by features in the new Ada standard).
 For example, @code{pragma Ravenscar} will be flagged since its
 function is replaced by @code{pragma Profile(Ravenscar)}.
 
@@ -9295,7 +9295,7 @@ the compiler optimizer can "know" that t
 for all iterations of the loop and avoid the extra memory reference
 required to dereference it each time through the loop.
 
-This kind of optimziation, called strict aliasing analysis, is
+This kind of optimization, called strict aliasing analysis, is
 triggered by specifying an optimization level of @option{-O2} or
 higher and allows @code{GNAT} to generate more efficient code
 when access values are involved.
@@ -12583,7 +12583,7 @@ Additionally, you may define the library
 
 The @code{Library_Name} attribute has a string value. There is no restriction
 on the name of a library. It is the responsability of the developer to
-choose a name that will be accepted by the platform. It is recommanded to
+choose a name that will be accepted by the platform. It is recommended to
 choose names that could be Ada identifiers; such names are almost guaranteed
 to be acceptable on all platforms.
 
@@ -15453,7 +15453,7 @@ for this subword
 
 @item
 if the whole name does not contain any ``_'' inside, and if for this name
-the dictionaty contains two entries - one of the form @var{identifier},
+the dictionary contains two entries - one of the form @var{identifier},
 and another - of the form *@var{simple_identifier}*, then the first one
 is applied to define the casing of this name
 
@@ -16000,7 +16000,7 @@ an explicit list of files.
 @cindex @option{^-v^/VERBOSE^} (@code{gnatmetric})
 Verbose mode;
 @command{gnatmetric} generates version information and then
-a trace of sources being procesed.
+a trace of sources being processed.
 
 @item ^-dv^/DEBUG_OUTPUT^
 @cindex @option{^-dv^/DEBUG_OUTPUT^} (@code{gnatmetric})
Index: init.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/init.c,v
retrieving revision 1.46
diff -u -d -p -r1.46 init.c
--- init.c	1 Apr 2005 05:28:00 -0000	1.46
+++ init.c	10 Apr 2005 17:30:28 -0000
@@ -1318,7 +1318,7 @@ long __gnat_error_handler (int *, void *
    still need to be handled by such handlers, however, in which case
    __gnat_error_handler needs to return SS$_RESIGNAL.  Consider for
    instance the use of a third party library compiled with DECAda and
-   performing it's own exception handling internally.
+   performing its own exception handling internally.
 
    To allow some user-level flexibility, which conditions should be
    resignaled is controlled by a predicate function, provided with the
Index: tracebak.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/tracebak.c,v
retrieving revision 1.14
diff -u -d -p -r1.14 tracebak.c
--- tracebak.c	1 Apr 2005 05:28:00 -0000	1.14
+++ tracebak.c	10 Apr 2005 17:30:29 -0000
@@ -212,7 +212,7 @@ struct layout
    function is located in it's caller's frame, and the save operation only
    takes place if the function performs a call.
 
-   To have __gnat_backtrace retrieve it's own return address, we then
+   To have __gnat_backtrace retrieve its own return address, we then
    define ... */
 
 #define FORCE_CALL


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]