Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/locale Change the magic -3 for the invalid rune to



details:   https://anonhg.NetBSD.org/src/rev/65956e6510f8
branches:  trunk
changeset: 516276:65956e6510f8
user:      jmc <jmc%NetBSD.org@localhost>
date:      Sat Oct 20 05:59:35 2001 +0000

description:
Change the magic -3 for the invalid rune to

#define _DEFAULT_INVALID_RUNE -3

and use it accordingly. Also provides a representation programs such as
mklocale can reference when filling out a new locale from a definition.

diffstat:

 lib/libc/locale/rune.h      |  4 +++-
 lib/libc/locale/runetable.c |  6 +++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r dce2bd4acf45 -r 65956e6510f8 lib/libc/locale/rune.h
--- a/lib/libc/locale/rune.h    Sat Oct 20 05:57:32 2001 +0000
+++ b/lib/libc/locale/rune.h    Sat Oct 20 05:59:35 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rune.h,v 1.3 2000/12/28 05:22:27 itojun Exp $  */
+/*     $NetBSD: rune.h,v 1.4 2001/10/20 05:59:35 jmc Exp $     */
 
 /*-
  * Copyright (c) 1993
@@ -63,4 +63,6 @@
 #define __rune_packstate       ___rune_packstate(_CurrentRuneLocale)
 #define __rune_unpackstate     ___rune_unpackstate(_CurrentRuneLocale)
 
+#define _DEFAULT_INVALID_RUNE  -3
+
 #endif /*! _RUNE_H_ */
diff -r dce2bd4acf45 -r 65956e6510f8 lib/libc/locale/runetable.c
--- a/lib/libc/locale/runetable.c       Sat Oct 20 05:57:32 2001 +0000
+++ b/lib/libc/locale/runetable.c       Sat Oct 20 05:59:35 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: runetable.c,v 1.6 2001/03/26 19:55:42 tshiozak Exp $   */
+/*     $NetBSD: runetable.c,v 1.7 2001/10/20 05:59:35 jmc Exp $        */
 
 /*-
  * Copyright (c) 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)table.c    8.1 (Berkeley) 6/27/93";
 #else
-__RCSID("$NetBSD: runetable.c,v 1.6 2001/03/26 19:55:42 tshiozak Exp $");
+__RCSID("$NetBSD: runetable.c,v 1.7 2001/10/20 05:59:35 jmc Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -67,7 +67,7 @@
 _RuneLocale _DefaultRuneLocale = {
     _RUNE_MAGIC_1,
     "NONE",
-    -3,
+    _DEFAULT_INVALID_RUNE,
 
     {  /*00*/  _CTYPE_C,
                _CTYPE_C,



Home | Main Index | Thread Index | Old Index