Module Name:    src
Committed By:   christos
Date:           Sat Jan 20 16:45:07 UTC 2024

Modified Files:
        src/lib/libc/stdlib: Makefile.inc strtoi.3
Removed Files:
        src/lib/libc/stdlib: strtou.3

Log Message:
generate strtou.3 from strtoi.3, grammar police


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/lib/libc/stdlib/Makefile.inc
cvs rdiff -u -r1.8 -r1.9 src/lib/libc/stdlib/strtoi.3
cvs rdiff -u -r1.8 -r0 src/lib/libc/stdlib/strtou.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/stdlib/Makefile.inc
diff -u src/lib/libc/stdlib/Makefile.inc:1.96 src/lib/libc/stdlib/Makefile.inc:1.97
--- src/lib/libc/stdlib/Makefile.inc:1.96	Fri Jan 19 13:41:30 2024
+++ src/lib/libc/stdlib/Makefile.inc	Sat Jan 20 11:45:07 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.96 2024/01/19 18:41:30 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.97 2024/01/20 16:45:07 christos Exp $
 #	from: @(#)Makefile.inc	8.3 (Berkeley) 2/4/95
 
 # stdlib sources
@@ -62,6 +62,12 @@ MAN+=	a64l.3 abort.3 abs.3 alloca.3 atex
 	tsearch.3 \
 	unlockpt.3
 
+strtou.3: strtoi.3
+	${_MKTARGET_CREATE}
+	${TOOL_SED} -e s/strtoi/strtou/g -e s/STRTOI/STRTOU/g \
+	    -e s/intmax_t/uintmax_t/g -e s/%jd/%ju/g ${.ALLSRC} > ${.TARGET}
+CLEANFILES += strtou.3
+
 MLINKS+=a64l.3 l64a.3
 MLINKS+=a64l.3 l64a_r.3
 MLINKS+=abs.3 labs.3 \

Index: src/lib/libc/stdlib/strtoi.3
diff -u src/lib/libc/stdlib/strtoi.3:1.8 src/lib/libc/stdlib/strtoi.3:1.9
--- src/lib/libc/stdlib/strtoi.3:1.8	Sat Jan 20 11:13:39 2024
+++ src/lib/libc/stdlib/strtoi.3	Sat Jan 20 11:45:07 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: strtoi.3,v 1.8 2024/01/20 16:13:39 christos Exp $
+.\"	$NetBSD: strtoi.3,v 1.9 2024/01/20 16:45:07 christos Exp $
 .\"
 .\" Copyright (c) 1990, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -202,7 +202,7 @@ or the range given was invalid, i.e.
 .Fa hi .
 .El
 .Pp
-The range check is important than the unconverted characters check,
+The range check is more important than the unconverted characters check,
 and it is performed first.
 If a program needs to know if there were unconverted characters when an
 out of range number has been provided, it needs to supply and test

Reply via email to