Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/citrus/modules constify.



details:   https://anonhg.NetBSD.org/src/rev/2015c98577da
branches:  trunk
changeset: 572135:2015c98577da
user:      yamt <yamt%NetBSD.org@localhost>
date:      Tue Dec 21 11:25:43 2004 +0000

description:
constify.

diffstat:

 lib/libc/citrus/modules/citrus_iconv_std.c  |  10 +++++-----
 lib/libc/citrus/modules/citrus_iso2022.c    |   8 ++++----
 lib/libc/citrus/modules/citrus_mapper_std.c |   6 +++---
 lib/libc/citrus/modules/citrus_utf8.c       |   6 +++---
 4 files changed, 15 insertions(+), 15 deletions(-)

diffs (135 lines):

diff -r 8f869137845c -r 2015c98577da lib/libc/citrus/modules/citrus_iconv_std.c
--- a/lib/libc/citrus/modules/citrus_iconv_std.c        Tue Dec 21 09:29:04 2004 +0000
+++ b/lib/libc/citrus/modules/citrus_iconv_std.c        Tue Dec 21 11:25:43 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: citrus_iconv_std.c,v 1.8 2004/12/21 09:29:04 yamt Exp $        */
+/*     $NetBSD: citrus_iconv_std.c,v 1.9 2004/12/21 11:25:43 yamt Exp $        */
 
 /*-
  * Copyright (c)2003 Citrus Project,
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_iconv_std.c,v 1.8 2004/12/21 09:29:04 yamt Exp $");
+__RCSID("$NetBSD: citrus_iconv_std.c,v 1.9 2004/12/21 11:25:43 yamt Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <assert.h>
@@ -288,7 +288,7 @@
 #define E_NO_CORRESPONDING_CHAR ENOENT /* XXX */
 static int
 /*ARGSUSED*/
-do_conv(struct _citrus_iconv_std_shared *is,
+do_conv(const struct _citrus_iconv_std_shared *is,
        struct _citrus_iconv_std_context *sc, _csid_t *csid, _index_t *idx)
 {
        _index_t tmpidx;
@@ -402,7 +402,7 @@
 static int
 _citrus_iconv_std_iconv_init_context(struct _citrus_iconv *cv)
 {
-       struct _citrus_iconv_std_shared *is = cv->cv_shared->ci_closure;
+       const struct _citrus_iconv_std_shared *is = cv->cv_shared->ci_closure;
        struct _citrus_iconv_std_context *sc;
        int ret;
        size_t szpssrc, szpsdst, sz;
@@ -450,7 +450,7 @@
                                size_t * __restrict outbytes, u_int32_t flags,
                                size_t * __restrict invalids)
 {
-       struct _citrus_iconv_std_shared *is = cv->cv_shared->ci_closure;
+       const struct _citrus_iconv_std_shared *is = cv->cv_shared->ci_closure;
        struct _citrus_iconv_std_context *sc = cv->cv_closure;
        _index_t idx;
        _csid_t csid;
diff -r 8f869137845c -r 2015c98577da lib/libc/citrus/modules/citrus_iso2022.c
--- a/lib/libc/citrus/modules/citrus_iso2022.c  Tue Dec 21 09:29:04 2004 +0000
+++ b/lib/libc/citrus/modules/citrus_iso2022.c  Tue Dec 21 11:25:43 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: citrus_iso2022.c,v 1.11 2004/01/02 12:27:41 itojun Exp $       */
+/*     $NetBSD: citrus_iso2022.c,v 1.12 2004/12/21 11:25:43 yamt Exp $ */
 
 /*-
  * Copyright (c)1999, 2002 Citrus Project,
@@ -30,7 +30,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_iso2022.c,v 1.11 2004/01/02 12:27:41 itojun Exp $");
+__RCSID("$NetBSD: citrus_iso2022.c,v 1.12 2004/12/21 11:25:43 yamt Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <assert.h>
@@ -469,7 +469,7 @@
 #define        ECMA    -1
 #define        INTERM  -2
 #define        OECMA   -3
-static struct seqtable {
+static const struct seqtable {
        int type;
        int csoff;
        int finaloff;
@@ -567,7 +567,7 @@
 {
        wchar_t wchar = 0;
        int cur;
-       struct seqtable *sp;
+       const struct seqtable *sp;
        int nmatch;
        int i;
 
diff -r 8f869137845c -r 2015c98577da lib/libc/citrus/modules/citrus_mapper_std.c
--- a/lib/libc/citrus/modules/citrus_mapper_std.c       Tue Dec 21 09:29:04 2004 +0000
+++ b/lib/libc/citrus/modules/citrus_mapper_std.c       Tue Dec 21 11:25:43 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: citrus_mapper_std.c,v 1.3 2003/07/12 15:39:20 tshiozak Exp $   */
+/*     $NetBSD: citrus_mapper_std.c,v 1.4 2004/12/21 11:25:43 yamt Exp $       */
 
 /*-
  * Copyright (c)2003 Citrus Project,
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_mapper_std.c,v 1.3 2003/07/12 15:39:20 tshiozak Exp $");
+__RCSID("$NetBSD: citrus_mapper_std.c,v 1.4 2004/12/21 11:25:43 yamt Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <assert.h>
@@ -221,7 +221,7 @@
 }
 
 typedef int (*initfunc_t)(struct _citrus_mapper_std *);
-static struct {
+static const struct {
        const char                      *t_name;
        initfunc_t                      t_init;
 } types[] = {
diff -r 8f869137845c -r 2015c98577da lib/libc/citrus/modules/citrus_utf8.c
--- a/lib/libc/citrus/modules/citrus_utf8.c     Tue Dec 21 09:29:04 2004 +0000
+++ b/lib/libc/citrus/modules/citrus_utf8.c     Tue Dec 21 11:25:43 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: citrus_utf8.c,v 1.10 2003/08/07 16:42:38 agc Exp $     */
+/*     $NetBSD: citrus_utf8.c,v 1.11 2004/12/21 11:25:43 yamt Exp $    */
 
 /*-
  * Copyright (c)2002 Citrus Project,
@@ -60,7 +60,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_utf8.c,v 1.10 2003/08/07 16:42:38 agc Exp $");
+__RCSID("$NetBSD: citrus_utf8.c,v 1.11 2004/12/21 11:25:43 yamt Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <assert.h>
@@ -89,7 +89,7 @@
 static int _UTF8_count_array[256];
 static int const *_UTF8_count = NULL;
 
-static u_int32_t _UTF8_range[] = {
+static const u_int32_t _UTF8_range[] = {
        0,      /*dummy*/
        0x00000000, 0x00000080, 0x00000800, 0x00010000, 
        0x00200000, 0x04000000, 0x80000000,



Home | Main Index | Thread Index | Old Index