Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Sprinkle some restrict, repair a minor nit in iconv(3)'s syn...



details:   https://anonhg.NetBSD.org/src/rev/fc8d062763a5
branches:  trunk
changeset: 550831:fc8d062763a5
user:      kleink <kleink%NetBSD.org@localhost>
date:      Fri Aug 22 14:05:03 2003 +0000

description:
Sprinkle some restrict, repair a minor nit in iconv(3)'s synopsis.

diffstat:

 include/iconv.h        |  9 +++++----
 lib/libc/iconv/iconv.3 |  6 +++---
 2 files changed, 8 insertions(+), 7 deletions(-)

diffs (54 lines):

diff -r 3de254a85517 -r fc8d062763a5 include/iconv.h
--- a/include/iconv.h   Fri Aug 22 11:22:23 2003 +0000
+++ b/include/iconv.h   Fri Aug 22 14:05:03 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iconv.h,v 1.2 2003/07/01 08:54:57 tshiozak Exp $       */
+/*     $NetBSD: iconv.h,v 1.3 2003/08/22 14:05:03 kleink Exp $ */
 
 /*-
  * Copyright (c)2003 Citrus Project,
@@ -43,8 +43,9 @@
 
 __BEGIN_DECLS
 iconv_t        iconv_open      __P((const char *, const char *));
-size_t iconv           __P((iconv_t, const char **, size_t *, char **,
-                            size_t *));
+size_t iconv           __P((iconv_t, const char ** __restrict,
+                            size_t * __restrict, char ** __restrict,
+                            size_t * __restrict));
 int    iconv_close     __P((iconv_t));
 /*
  * non-portable interfaces for iconv
@@ -56,4 +57,4 @@
 #define __ICONV_F_HIDE_INVALID 0x0001
 __END_DECLS
 
-#endif
+#endif /* !_ICONV_H_ */
diff -r 3de254a85517 -r fc8d062763a5 lib/libc/iconv/iconv.3
--- a/lib/libc/iconv/iconv.3    Fri Aug 22 11:22:23 2003 +0000
+++ b/lib/libc/iconv/iconv.3    Fri Aug 22 14:05:03 2003 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: iconv.3,v 1.5 2003/07/05 17:34:55 wiz Exp $
+.\" $NetBSD: iconv.3,v 1.6 2003/08/22 14:05:03 kleink Exp $
 .\"
 .\" Copyright (c)2003 Citrus Project,
 .\" All rights reserved.
@@ -24,7 +24,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd July 1, 2003
+.Dd August 22, 2003
 .Dt ICONV 3
 .Os
 .\" ----------------------------------------------------------------------
@@ -44,7 +44,7 @@
 .Ft int
 .Fn iconv_close "iconv_t cd"
 .Ft size_t
-.Fn iconv "iconv_t cd" "const char **src" "size_t *srcleft" "char **dst" "size_t dstleft"
+.Fn iconv "iconv_t cd" "const char ** restrict src" "size_t * restrict srcleft" "char ** restrict dst" "size_t * restrict dstleft"
 .\" ----------------------------------------------------------------------
 .Sh DESCRIPTION
 The



Home | Main Index | Thread Index | Old Index