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]

Libiberty manual patch


This libiberty manual patch changes uses of "non-zero" to "nonzero", and a
use of "ANSI C" to "ISO C" (a change made for most of the GCC manual and
diagnostic messages some time ago).  It passes "make info" and "make dvi".
Applied to mainline.

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libiberty/ChangeLog,v
retrieving revision 1.320
diff -u -r1.320 ChangeLog
--- ChangeLog	2001/10/07 21:53:30	1.320
+++ ChangeLog	2001/10/09 23:32:20
@@ -1,3 +1,9 @@
+2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+	* bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
+	* strtod.c: Use "ISO C" instead of "ANSI C".
+	* functions.texi: Regenerate.
+
 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
 
 	* alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
Index: bcmp.c
===================================================================
RCS file: /cvs/gcc/gcc/libiberty/bcmp.c,v
retrieving revision 1.3
diff -u -r1.3 bcmp.c
--- bcmp.c	2001/09/26 18:16:17	1.3
+++ bcmp.c	2001/10/09 23:32:20
@@ -6,8 +6,8 @@
 @deftypefn Supplemental int bcmp (char *@var{x}, char *@var{y}, int @var{count})
 
 Compares the first @var{count} bytes of two areas of memory.  Returns
-zero if they are the same, non-zero otherwise.  Returns zero if
-@var{count} is zero.  A non-zero result only indicates a difference,
+zero if they are the same, nonzero otherwise.  Returns zero if
+@var{count} is zero.  A nonzero result only indicates a difference,
 it does not indicate any sorting order (say, by having a positive
 result mean @var{x} sorts before @var{y}).
 
Index: setenv.c
===================================================================
RCS file: /cvs/gcc/gcc/libiberty/setenv.c,v
retrieving revision 1.8
diff -u -r1.8 setenv.c
--- setenv.c	2001/09/26 18:16:17	1.8
+++ setenv.c	2001/10/09 23:32:20
@@ -24,7 +24,7 @@
 
 @code{setenv} adds @var{name} to the environment with value
 @var{value}.  If the name was already present in the environment,
-the new value will be stored only if @var{overwrite} is non-zero.
+the new value will be stored only if @var{overwrite} is nonzero.
 The companion @code{unsetenv} function removes @var{name} from the
 environment.  This implementation is not safe for multithreaded code.
 
Index: strtod.c
===================================================================
RCS file: /cvs/gcc/gcc/libiberty/strtod.c,v
retrieving revision 1.6
diff -u -r1.6 strtod.c
--- strtod.c	2001/10/07 21:53:31	1.6
+++ strtod.c	2001/10/09 23:32:20
@@ -26,7 +26,7 @@
 
 @deftypefn Supplemental double strtod (const char *@var{string}, char **@var{endptr})
 
-This ANSI C function converts the initial portion of @var{string} to a
+This ISO C function converts the initial portion of @var{string} to a
 @code{double}.  If @var{endptr} is not @code{NULL}, a pointer to the
 character after the last character used in the conversion is stored in
 the location referenced by @var{endptr}.  If no conversion is
Index: functions.texi
===================================================================
RCS file: /cvs/gcc/gcc/libiberty/functions.texi,v
retrieving revision 1.4
diff -u -r1.4 functions.texi
--- functions.texi	2001/10/07 21:53:31	1.4
+++ functions.texi	2001/10/09 23:32:20
@@ -40,8 +40,8 @@
 @deftypefn Supplemental int bcmp (char *@var{x}, char *@var{y}, int @var{count})
 
 Compares the first @var{count} bytes of two areas of memory.  Returns
-zero if they are the same, non-zero otherwise.  Returns zero if
-@var{count} is zero.  A non-zero result only indicates a difference,
+zero if they are the same, nonzero otherwise.  Returns zero if
+@var{count} is zero.  A nonzero result only indicates a difference,
 it does not indicate any sorting order (say, by having a positive
 result mean @var{x} sorts before @var{y}).
 
@@ -234,7 +234,7 @@
 
 @code{setenv} adds @var{name} to the environment with value
 @var{value}.  If the name was already present in the environment,
-the new value will be stored only if @var{overwrite} is non-zero.
+the new value will be stored only if @var{overwrite} is nonzero.
 The companion @code{unsetenv} function removes @var{name} from the
 environment.  This implementation is not safe for multithreaded code.
 
@@ -352,7 +352,7 @@
 @c strtod.c:27
 @deftypefn Supplemental double strtod (const char *@var{string}, char **@var{endptr})
 
-This ANSI C function converts the initial portion of @var{string} to a
+This ISO C function converts the initial portion of @var{string} to a
 @code{double}.  If @var{endptr} is not @code{NULL}, a pointer to the
 character after the last character used in the conversion is stored in
 the location referenced by @var{endptr}.  If no conversion is

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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