Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/locale move __mb_len_max_runtime from rune_local.h ...
details: https://anonhg.NetBSD.org/src/rev/4a10cabcc41d
branches: trunk
changeset: 755091:4a10cabcc41d
user: tnozaki <tnozaki%NetBSD.org@localhost>
date: Sat May 22 13:50:02 2010 +0000
description:
move __mb_len_max_runtime from rune_local.h -> setlocale_local.h.
diffstat:
lib/libc/locale/rune_local.h | 5 +----
lib/libc/locale/setlocale1.c | 6 ++++--
lib/libc/locale/setlocale32.c | 6 ++++--
lib/libc/locale/setlocale_local.h | 5 ++++-
4 files changed, 13 insertions(+), 9 deletions(-)
diffs (87 lines):
diff -r 7487729e2e15 -r 4a10cabcc41d lib/libc/locale/rune_local.h
--- a/lib/libc/locale/rune_local.h Sat May 22 13:15:59 2010 +0000
+++ b/lib/libc/locale/rune_local.h Sat May 22 13:50:02 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rune_local.h,v 1.13 2010/05/22 07:18:43 tnozaki Exp $ */
+/* $NetBSD: rune_local.h,v 1.14 2010/05/22 13:50:02 tnozaki Exp $ */
/*-
* Copyright (c) 2000 Citrus Project,
@@ -111,9 +111,6 @@
/*
* global variables
*/
-extern size_t __mb_len_max_runtime;
-#define __MB_LEN_MAX_RUNTIME __mb_len_max_runtime
-
extern const _RuneLocale _DefaultRuneLocale;
extern const _RuneLocale *_CurrentRuneLocale;
diff -r 7487729e2e15 -r 4a10cabcc41d lib/libc/locale/setlocale1.c
--- a/lib/libc/locale/setlocale1.c Sat May 22 13:15:59 2010 +0000
+++ b/lib/libc/locale/setlocale1.c Sat May 22 13:50:02 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: setlocale1.c,v 1.3 2010/05/22 07:18:43 tnozaki Exp $ */
+/* $NetBSD: setlocale1.c,v 1.4 2010/05/22 13:50:02 tnozaki Exp $ */
/*-
* Copyright (c)1999 Citrus Project,
@@ -28,12 +28,14 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: setlocale1.c,v 1.3 2010/05/22 07:18:43 tnozaki Exp $");
+__RCSID("$NetBSD: setlocale1.c,v 1.4 2010/05/22 13:50:02 tnozaki Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
+#include <sys/types.h>
#define __SETLOCALE_SOURCE__
#include <locale.h>
+#include "setlocale_local.h"
#include "rune_local.h"
__warn_references(setlocale,
diff -r 7487729e2e15 -r 4a10cabcc41d lib/libc/locale/setlocale32.c
--- a/lib/libc/locale/setlocale32.c Sat May 22 13:15:59 2010 +0000
+++ b/lib/libc/locale/setlocale32.c Sat May 22 13:50:02 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: setlocale32.c,v 1.5 2010/05/22 07:18:43 tnozaki Exp $ */
+/* $NetBSD: setlocale32.c,v 1.6 2010/05/22 13:50:02 tnozaki Exp $ */
/*-
* Copyright (c)1999 Citrus Project,
@@ -28,13 +28,15 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: setlocale32.c,v 1.5 2010/05/22 07:18:43 tnozaki Exp $");
+__RCSID("$NetBSD: setlocale32.c,v 1.6 2010/05/22 13:50:02 tnozaki Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
+#include <sys/types.h>
#define __SETLOCALE_SOURCE__
#include <locale.h>
#include <limits.h>
+#include "setlocale_local.h"
#include "rune_local.h"
char *
diff -r 7487729e2e15 -r 4a10cabcc41d lib/libc/locale/setlocale_local.h
--- a/lib/libc/locale/setlocale_local.h Sat May 22 13:15:59 2010 +0000
+++ b/lib/libc/locale/setlocale_local.h Sat May 22 13:50:02 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: setlocale_local.h,v 1.5 2010/05/22 13:15:59 tnozaki Exp $ */
+/* $NetBSD: setlocale_local.h,v 1.6 2010/05/22 13:50:02 tnozaki Exp $ */
/*-
* Copyright (c)2008 Citrus Project,
@@ -77,4 +77,7 @@
return (*_current_locale())->cache;
}
+extern size_t __mb_len_max_runtime;
+#define __MB_LEN_MAX_RUNTIME __mb_len_max_runtime
+
#endif /*_SETLOCALE_LOCAL_H_*/
Home |
Main Index |
Thread Index |
Old Index