move __mb_cur_max to dedicated *.o, so that we do not pull in
locale stuff just by calling printf().
This commit is contained in:
parent
aa94cdc6ad
commit
f972083e05
|
@ -1,12 +1,12 @@
|
|||
# from: @(#)Makefile.inc 5.1 (Berkeley) 2/18/91
|
||||
# $NetBSD: Makefile.inc,v 1.31 2000/12/27 00:57:03 itojun Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.32 2001/01/22 00:29:46 itojun Exp $
|
||||
|
||||
# locale sources
|
||||
.PATH: ${ARCHDIR}/locale ${.CURDIR}/locale
|
||||
|
||||
SRCS+= _def_messages.c _def_monetary.c _def_numeric.c _def_time.c \
|
||||
ctypeio.c localeconv.c nl_langinfo.c \
|
||||
setlocale.c setlocale_sb.c
|
||||
setlocale.c setlocale_sb.c __mb_cur_max.c
|
||||
MAN+= nl_langinfo.3 setlocale.3
|
||||
|
||||
MLINKS+=setlocale.3 localeconv.3
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
/* $NetBSD: __mb_cur_max.c,v 1.1 2001/01/22 00:29:46 itojun Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c)1999 Citrus Project,
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: __mb_cur_max.c,v 1.1 2001/01/22 00:29:46 itojun Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
size_t __mb_cur_max = 1;
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: setlocale.c,v 1.32 2000/12/25 23:30:58 itojun Exp $ */
|
||||
/* $NetBSD: setlocale.c,v 1.33 2001/01/22 00:29:46 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -41,7 +41,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)setlocale.c 8.1 (Berkeley) 7/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: setlocale.c,v 1.32 2000/12/25 23:30:58 itojun Exp $");
|
||||
__RCSID("$NetBSD: setlocale.c,v 1.33 2001/01/22 00:29:46 itojun Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -91,7 +91,6 @@ static char current_categories[_LC_LAST][32] = {
|
|||
"C"
|
||||
};
|
||||
|
||||
size_t __mb_cur_max = 1;
|
||||
size_t __mb_len_max_runtime = MB_LEN_MAX;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue