Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/compat/locale comment and assertion
details: https://anonhg.NetBSD.org/src/rev/4e472418dc09
branches: trunk
changeset: 785256:4e472418dc09
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Mar 06 11:29:01 2013 +0000
description:
comment and assertion
diffstat:
lib/libc/compat/locale/compat_setlocale32.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 2564e7f7aae3 -r 4e472418dc09 lib/libc/compat/locale/compat_setlocale32.c
--- a/lib/libc/compat/locale/compat_setlocale32.c Wed Mar 06 11:27:46 2013 +0000
+++ b/lib/libc/compat/locale/compat_setlocale32.c Wed Mar 06 11:29:01 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_setlocale32.c,v 1.1 2010/06/07 13:52:30 tnozaki Exp $ */
+/* $NetBSD: compat_setlocale32.c,v 1.2 2013/03/06 11:29:01 yamt Exp $ */
/*-
* Copyright (c)1999 Citrus Project,
@@ -30,7 +30,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: compat_setlocale32.c,v 1.1 2010/06/07 13:52:30 tnozaki Exp $");
+__RCSID("$NetBSD: compat_setlocale32.c,v 1.2 2013/03/06 11:29:01 yamt Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -42,6 +42,14 @@
"warning: reference to compatibility __setlocale_mb_len_max_32();"
"include <locale.h> for correct reference")
+/*
+ * MB_LEN_MAX used to be a MD macro. it was 32 for most ports but 6 for hppa.
+ * hppa uses arch/hppa/locale/compat_setlocale32.c instead of this file.
+ */
+#if defined(__hppa__)
+#error using wrong variant of compat_setlocale32.c
+#endif /* defined(__hppa__) */
+
char *
__setlocale_mb_len_max_32(int category, const char *locale)
{
Home |
Main Index |
Thread Index |
Old Index