head 1.9; access; symbols netbsd-10-0-RELEASE:1.9 netbsd-10-0-RC6:1.9 netbsd-10-0-RC5:1.9 netbsd-10-0-RC4:1.9 netbsd-10-0-RC3:1.9 netbsd-10-0-RC2:1.9 netbsd-10-0-RC1:1.9 netbsd-10:1.9.0.38 netbsd-10-base:1.9 netbsd-9-3-RELEASE:1.9 cjep_sun2x-base1:1.9 cjep_sun2x:1.9.0.36 cjep_sun2x-base:1.9 cjep_staticlib_x-base1:1.9 netbsd-9-2-RELEASE:1.9 cjep_staticlib_x:1.9.0.34 cjep_staticlib_x-base:1.9 netbsd-9-1-RELEASE:1.9 phil-wifi-20200421:1.9 phil-wifi-20200411:1.9 is-mlppp:1.9.0.32 is-mlppp-base:1.9 phil-wifi-20200406:1.9 netbsd-8-2-RELEASE:1.9 netbsd-9-0-RELEASE:1.9 netbsd-9-0-RC2:1.9 netbsd-9-0-RC1:1.9 phil-wifi-20191119:1.9 netbsd-9:1.9.0.30 netbsd-9-base:1.9 phil-wifi-20190609:1.9 netbsd-8-1-RELEASE:1.9 netbsd-8-1-RC1:1.9 pgoyette-compat-merge-20190127:1.9 pgoyette-compat-20190127:1.9 pgoyette-compat-20190118:1.9 pgoyette-compat-1226:1.9 pgoyette-compat-1126:1.9 pgoyette-compat-1020:1.9 pgoyette-compat-0930:1.9 pgoyette-compat-0906:1.9 netbsd-7-2-RELEASE:1.9 pgoyette-compat-0728:1.9 netbsd-8-0-RELEASE:1.9 phil-wifi:1.9.0.28 phil-wifi-base:1.9 pgoyette-compat-0625:1.9 netbsd-8-0-RC2:1.9 pgoyette-compat-0521:1.9 pgoyette-compat-0502:1.9 pgoyette-compat-0422:1.9 netbsd-8-0-RC1:1.9 pgoyette-compat-0415:1.9 pgoyette-compat-0407:1.9 pgoyette-compat-0330:1.9 pgoyette-compat-0322:1.9 pgoyette-compat-0315:1.9 netbsd-7-1-2-RELEASE:1.9 pgoyette-compat:1.9.0.26 pgoyette-compat-base:1.9 netbsd-7-1-1-RELEASE:1.9 matt-nb8-mediatek:1.9.0.24 matt-nb8-mediatek-base:1.9 perseant-stdc-iso10646:1.9.0.22 perseant-stdc-iso10646-base:1.9 netbsd-8:1.9.0.20 netbsd-8-base:1.9 prg-localcount2-base3:1.9 prg-localcount2-base2:1.9 prg-localcount2-base1:1.9 prg-localcount2:1.9.0.18 prg-localcount2-base:1.9 pgoyette-localcount-20170426:1.9 bouyer-socketcan-base1:1.9 pgoyette-localcount-20170320:1.9 netbsd-7-1:1.9.0.16 netbsd-7-1-RELEASE:1.9 netbsd-7-1-RC2:1.9 netbsd-7-nhusb-base-20170116:1.9 bouyer-socketcan:1.9.0.14 bouyer-socketcan-base:1.9 pgoyette-localcount-20170107:1.9 netbsd-7-1-RC1:1.9 pgoyette-localcount-20161104:1.9 netbsd-7-0-2-RELEASE:1.9 localcount-20160914:1.9 netbsd-7-nhusb:1.9.0.12 netbsd-7-nhusb-base:1.9 pgoyette-localcount-20160806:1.9 pgoyette-localcount-20160726:1.9 pgoyette-localcount:1.9.0.10 pgoyette-localcount-base:1.9 netbsd-7-0-1-RELEASE:1.9 netbsd-7-0:1.9.0.8 netbsd-7-0-RELEASE:1.9 netbsd-7-0-RC3:1.9 netbsd-7-0-RC2:1.9 netbsd-7-0-RC1:1.9 netbsd-5-2-3-RELEASE:1.6 netbsd-5-1-5-RELEASE:1.6 netbsd-6-0-6-RELEASE:1.7 netbsd-6-1-5-RELEASE:1.7 netbsd-7:1.9.0.6 netbsd-7-base:1.9 yamt-pagecache-base9:1.9 yamt-pagecache-tag8:1.7 netbsd-6-1-4-RELEASE:1.7 netbsd-6-0-5-RELEASE:1.7 tls-earlyentropy:1.9.0.4 tls-earlyentropy-base:1.9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.9 riastradh-drm2-base3:1.9 netbsd-6-1-3-RELEASE:1.7 netbsd-6-0-4-RELEASE:1.7 netbsd-5-2-2-RELEASE:1.6 netbsd-5-1-4-RELEASE:1.6 netbsd-6-1-2-RELEASE:1.7 netbsd-6-0-3-RELEASE:1.7 netbsd-5-2-1-RELEASE:1.6 netbsd-5-1-3-RELEASE:1.6 netbsd-6-1-1-RELEASE:1.7 riastradh-drm2-base2:1.9 riastradh-drm2-base1:1.9 riastradh-drm2:1.9.0.2 riastradh-drm2-base:1.9 netbsd-6-1:1.7.0.20 netbsd-6-0-2-RELEASE:1.7 netbsd-6-1-RELEASE:1.7 netbsd-6-1-RC4:1.7 netbsd-6-1-RC3:1.7 agc-symver:1.7.0.18 agc-symver-base:1.7 netbsd-6-1-RC2:1.7 netbsd-6-1-RC1:1.7 yamt-pagecache-base8:1.7 netbsd-5-2:1.6.0.50 netbsd-6-0-1-RELEASE:1.7 yamt-pagecache-base7:1.7 netbsd-5-2-RELEASE:1.6 netbsd-5-2-RC1:1.6 matt-nb6-plus-nbase:1.7 yamt-pagecache-base6:1.7 netbsd-6-0:1.7.0.14 netbsd-6-0-RELEASE:1.7 netbsd-6-0-RC2:1.7 tls-maxphys:1.7.0.12 tls-maxphys-base:1.9 matt-nb6-plus:1.7.0.10 matt-nb6-plus-base:1.7 netbsd-6-0-RC1:1.7 yamt-pagecache-base5:1.7 yamt-pagecache-base4:1.7 netbsd-6:1.7.0.8 netbsd-6-base:1.7 netbsd-5-1-2-RELEASE:1.6 netbsd-5-1-1-RELEASE:1.6 yamt-pagecache-base3:1.7 yamt-pagecache-base2:1.7 yamt-pagecache:1.7.0.6 yamt-pagecache-base:1.7 cherry-xenmp:1.7.0.4 cherry-xenmp-base:1.7 uebayasi-xip-base7:1.7 bouyer-quota2-nbase:1.7 bouyer-quota2:1.7.0.2 bouyer-quota2-base:1.7 matt-mips64-premerge-20101231:1.7 matt-nb5-mips64-premerge-20101231:1.6 matt-nb5-pq3:1.6.0.48 matt-nb5-pq3-base:1.6 netbsd-5-1:1.6.0.46 uebayasi-xip-base6:1.7 uebayasi-xip-base5:1.7 netbsd-5-1-RELEASE:1.6 uebayasi-xip-base4:1.7 uebayasi-xip-base3:1.7 netbsd-5-1-RC4:1.6 matt-nb5-mips64-k15:1.6 uebayasi-xip-base2:1.7 netbsd-5-1-RC3:1.6 netbsd-5-1-RC2:1.6 uebayasi-xip-base1:1.7 netbsd-5-1-RC1:1.6 uebayasi-xip:1.6.0.44 uebayasi-xip-base:1.6 netbsd-5-0-2-RELEASE:1.6 matt-nb5-mips64-premerge-20091211:1.6 matt-premerge-20091211:1.6 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.6 matt-nb4-mips64-k7-u2a-k9b:1.6 matt-nb5-mips64-u1-k1-k5:1.6 matt-nb5-mips64:1.6.0.42 netbsd-5-0-1-RELEASE:1.6 jym-xensuspend-nbase:1.6 netbsd-5-0:1.6.0.40 netbsd-5-0-RELEASE:1.6 netbsd-5-0-RC4:1.6 netbsd-5-0-RC3:1.6 netbsd-5-0-RC2:1.6 jym-xensuspend:1.6.0.38 jym-xensuspend-base:1.6 netbsd-5-0-RC1:1.6 christos-time_t-nbase:1.6 christos-time_t:1.6.0.36 christos-time_t-base:1.6 netbsd-5:1.6.0.34 netbsd-5-base:1.6 matt-mips64-base2:1.6 matt-mips64:1.6.0.32 mjf-devfs2:1.6.0.30 mjf-devfs2-base:1.6 netbsd-4-0-1-RELEASE:1.6 wrstuden-revivesa-base-3:1.6 wrstuden-revivesa-base-2:1.6 wrstuden-fixsa-newbase:1.6 wrstuden-revivesa-base-1:1.6 simonb-wapbl-nbase:1.6 yamt-pf42-base4:1.6 simonb-wapbl:1.6.0.28 simonb-wapbl-base:1.6 yamt-pf42-base3:1.6 hpcarm-cleanup-nbase:1.6 yamt-pf42-baseX:1.6 yamt-pf42-base2:1.6 wrstuden-revivesa:1.6.0.26 wrstuden-revivesa-base:1.6 yamt-pf42:1.6.0.24 yamt-pf42-base:1.6 keiichi-mipv6:1.6.0.22 keiichi-mipv6-base:1.6 matt-armv6-nbase:1.6 matt-armv6-prevmlocking:1.6 wrstuden-fixsa-base-1:1.6 netbsd-4-0:1.6.0.20 netbsd-4-0-RELEASE:1.6 cube-autoconf:1.6.0.18 cube-autoconf-base:1.6 netbsd-4-0-RC5:1.6 netbsd-4-0-RC4:1.6 netbsd-4-0-RC3:1.6 netbsd-4-0-RC2:1.6 netbsd-4-0-RC1:1.6 matt-armv6:1.6.0.16 matt-armv6-base:1.6 matt-mips64-base:1.6 hpcarm-cleanup:1.6.0.14 hpcarm-cleanup-base:1.6 netbsd-3-1-1-RELEASE:1.6 netbsd-3-0-3-RELEASE:1.6 wrstuden-fixsa:1.6.0.12 wrstuden-fixsa-base:1.6 abandoned-netbsd-4-base:1.6 abandoned-netbsd-4:1.6.0.6 netbsd-3-1:1.6.0.8 netbsd-3-1-RELEASE:1.6 netbsd-3-0-2-RELEASE:1.6 netbsd-3-1-RC4:1.6 netbsd-3-1-RC3:1.6 netbsd-3-1-RC2:1.6 netbsd-3-1-RC1:1.6 netbsd-4:1.6.0.10 netbsd-4-base:1.6 netbsd-3-0-1-RELEASE:1.6 netbsd-3-0:1.6.0.4 netbsd-3-0-RELEASE:1.6 netbsd-3-0-RC6:1.6 netbsd-3-0-RC5:1.6 netbsd-3-0-RC4:1.6 netbsd-3-0-RC3:1.6 netbsd-3-0-RC2:1.6 netbsd-3-0-RC1:1.6 netbsd-2-0-3-RELEASE:1.5 netbsd-2-1:1.5.0.6 netbsd-2-1-RELEASE:1.5 netbsd-2-1-RC6:1.5 netbsd-2-1-RC5:1.5 netbsd-2-1-RC4:1.5 netbsd-2-1-RC3:1.5 netbsd-2-1-RC2:1.5 netbsd-2-1-RC1:1.5 netbsd-2-0-2-RELEASE:1.5 netbsd-3:1.6.0.2 netbsd-3-base:1.6 netbsd-2-0-1-RELEASE:1.5 netbsd-2:1.5.0.4 netbsd-2-base:1.5 netbsd-2-0-RELEASE:1.5 netbsd-2-0-RC5:1.5 netbsd-2-0-RC4:1.5 netbsd-2-0-RC3:1.5 netbsd-2-0-RC2:1.5 netbsd-2-0-RC1:1.5 netbsd-2-0:1.5.0.2 netbsd-2-0-base:1.5 netbsd-1-6-PATCH002-RELEASE:1.4 netbsd-1-6-PATCH002:1.4 netbsd-1-6-PATCH002-RC4:1.4 netbsd-1-6-PATCH002-RC3:1.4 netbsd-1-6-PATCH002-RC2:1.4 netbsd-1-6-PATCH002-RC1:1.4 netbsd-1-6-PATCH001:1.4 netbsd-1-6-PATCH001-RELEASE:1.4 netbsd-1-6-PATCH001-RC3:1.4 netbsd-1-6-PATCH001-RC2:1.4 netbsd-1-6-PATCH001-RC1:1.4 nathanw_sa_before_merge:1.4 nathanw_sa_end:1.4 fvdl_fs64_base:1.4 nathanw_sa_base:1.4 netbsd-1-6-RELEASE:1.4 netbsd-1-6-RC3:1.4 netbsd-1-6-RC2:1.4 netbsd-1-6-RC1:1.4 netbsd-1-6:1.4.0.4 netbsd-1-6-base:1.4 nathanw_sa:1.4.0.2 minoura-xpg4dl:1.1.0.2; locks; strict; comment @ * @; 1.9 date 2013.04.27.21.35.25; author joerg; state Exp; branches; next 1.8; 1.8 date 2013.04.16.11.39.13; author joerg; state Exp; branches; next 1.7; 1.7 date 2010.03.27.22.14.09; author tnozaki; state Exp; branches 1.7.6.1 1.7.12.1; next 1.6; 1.6 date 2005.02.03.04.39.32; author perry; state Exp; branches 1.6.44.1; next 1.5; 1.5 date 2003.03.02.22.18.11; author tshiozak; state Exp; branches; next 1.4; 1.4 date 2001.01.20.17.40.09; author itojun; state Exp; branches; next 1.3; 1.3 date 2000.12.22.14.16.16; author itojun; state Exp; branches; next 1.2; 1.2 date 2000.12.21.05.40.56; author itojun; state Exp; branches; next 1.1; 1.1 date 2000.05.28.22.41.02; author minoura; state dead; branches 1.1.2.1; next ; 1.7.6.1 date 2014.05.22.11.36.35; author yamt; state Exp; branches; next ; commitid OndjEcbQZzO4KwBx; 1.7.12.1 date 2013.06.23.06.28.49; author tls; state Exp; branches; next ; commitid OnlO1cBgtQRcIHUw; 1.6.44.1 date 2010.04.30.14.36.18; author uebayasi; state Exp; branches; next ; 1.1.2.1 date 2000.05.28.22.41.02; author minoura; state Exp; branches; next ; desc @@ 1.9 log @Systematically include sys/featuretest.h when _NETBSD_SOURCE is used. Some are redundant, but make verification with grep much easier. @ text @/* $NetBSD: wctype.h,v 1.8 2013/04/16 11:39:13 joerg 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. * * citrus Id: wctype.h,v 1.4 2000/12/21 01:50:21 itojun Exp */ #ifndef _WCTYPE_H_ #define _WCTYPE_H_ #include #include #include #ifdef _BSD_WINT_T_ typedef _BSD_WINT_T_ wint_t; #undef _BSD_WINT_T_ #endif #ifdef _BSD_WCTRANS_T_ typedef _BSD_WCTRANS_T_ wctrans_t; #undef _BSD_WCTRANS_T_ #endif #ifdef _BSD_WCTYPE_T_ typedef _BSD_WCTYPE_T_ wctype_t; #undef _BSD_WCTYPE_T_ #endif #ifndef WEOF #define WEOF ((wint_t)-1) #endif __BEGIN_DECLS int iswalnum(wint_t); int iswalpha(wint_t); int iswblank(wint_t); int iswcntrl(wint_t); int iswdigit(wint_t); int iswgraph(wint_t); int iswlower(wint_t); int iswprint(wint_t); int iswpunct(wint_t); int iswspace(wint_t); int iswupper(wint_t); int iswxdigit(wint_t); int iswctype(wint_t, wctype_t); wint_t towctrans(wint_t, wctrans_t); wint_t towlower(wint_t); wint_t towupper(wint_t); wctrans_t wctrans(const char *); wctype_t wctype(const char *); #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) # ifndef __LOCALE_T_DECLARED typedef struct _locale *locale_t; # define __LOCALE_T_DECLARED # endif int iswalnum_l(wint_t, locale_t); int iswalpha_l(wint_t, locale_t); int iswblank_l(wint_t, locale_t); int iswcntrl_l(wint_t, locale_t); int iswdigit_l(wint_t, locale_t); int iswgraph_l(wint_t, locale_t); int iswlower_l(wint_t, locale_t); int iswprint_l(wint_t, locale_t); int iswpunct_l(wint_t, locale_t); int iswspace_l(wint_t, locale_t); int iswupper_l(wint_t, locale_t); int iswxdigit_l(wint_t, locale_t); int iswctype_l(wint_t, wctype_t, locale_t); wint_t towctrans_l(wint_t, wctrans_t, locale_t); wint_t towlower_l(wint_t, locale_t); wint_t towupper_l(wint_t, locale_t); wctrans_t wctrans_l(const char *, locale_t); wctype_t wctype_l(const char *, locale_t); #endif __END_DECLS #endif /* _WCTYPE_H_ */ @ 1.8 log @Add wcwidth_l, wcswidth_l and the wctype.h family of *_l functions. @ text @d1 1 a1 1 /* $NetBSD: wctype.h,v 1.7 2010/03/27 22:14:09 tnozaki Exp $ */ d35 1 @ 1.7 log @1. {wctype,wctrans,mbstate}_t: switch MD to MI like other libc implementation (such as *BSD and glibc2). 2. don't typedef void * wc{type,trans}_t, suggested by soda@@-san. it may pass through compiler type check, it's harmful. so i introduce dummy struct __tag_wc{type,trans}_t(iconv_t already does). no ABI change was made. @ text @d1 1 a1 1 /* $NetBSD: wctype.h,v 1.6 2005/02/03 04:39:32 perry Exp $ */ d75 25 @ 1.7.6.1 log @sync with head. for a reference, the tree before this commit was tagged as yamt-pagecache-tag8. this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments") @ text @d1 1 a1 1 /* $NetBSD: wctype.h,v 1.7 2010/03/27 22:14:09 tnozaki Exp $ */ a34 1 #include a74 25 #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) # ifndef __LOCALE_T_DECLARED typedef struct _locale *locale_t; # define __LOCALE_T_DECLARED # endif int iswalnum_l(wint_t, locale_t); int iswalpha_l(wint_t, locale_t); int iswblank_l(wint_t, locale_t); int iswcntrl_l(wint_t, locale_t); int iswdigit_l(wint_t, locale_t); int iswgraph_l(wint_t, locale_t); int iswlower_l(wint_t, locale_t); int iswprint_l(wint_t, locale_t); int iswpunct_l(wint_t, locale_t); int iswspace_l(wint_t, locale_t); int iswupper_l(wint_t, locale_t); int iswxdigit_l(wint_t, locale_t); int iswctype_l(wint_t, wctype_t, locale_t); wint_t towctrans_l(wint_t, wctrans_t, locale_t); wint_t towlower_l(wint_t, locale_t); wint_t towupper_l(wint_t, locale_t); wctrans_t wctrans_l(const char *, locale_t); wctype_t wctype_l(const char *, locale_t); #endif @ 1.7.12.1 log @resync from head @ text @d1 1 a1 1 /* $NetBSD$ */ a34 1 #include a74 25 #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) # ifndef __LOCALE_T_DECLARED typedef struct _locale *locale_t; # define __LOCALE_T_DECLARED # endif int iswalnum_l(wint_t, locale_t); int iswalpha_l(wint_t, locale_t); int iswblank_l(wint_t, locale_t); int iswcntrl_l(wint_t, locale_t); int iswdigit_l(wint_t, locale_t); int iswgraph_l(wint_t, locale_t); int iswlower_l(wint_t, locale_t); int iswprint_l(wint_t, locale_t); int iswpunct_l(wint_t, locale_t); int iswspace_l(wint_t, locale_t); int iswupper_l(wint_t, locale_t); int iswxdigit_l(wint_t, locale_t); int iswctype_l(wint_t, wctype_t, locale_t); wint_t towctrans_l(wint_t, wctrans_t, locale_t); wint_t towlower_l(wint_t, locale_t); wint_t towupper_l(wint_t, locale_t); wctrans_t wctrans_l(const char *, locale_t); wctype_t wctype_l(const char *, locale_t); #endif @ 1.6 log @de-__P -- the hack is long since useless. Discussed with christos, matt, kleink, others. Approved by christos. @ text @d1 1 a1 1 /* $NetBSD: wctype.h,v 1.5 2003/03/02 22:18:11 tshiozak Exp $ */ d35 1 a35 1 #include @ 1.6.44.1 log @Sync with HEAD. @ text @d1 1 a1 1 /* $NetBSD$ */ d35 1 a35 1 #include @ 1.5 log @add some ISO C 1995 I18N functions and types: btowc, wctrans, towctrans, wcscoll, wcsxfrm, wctype_t and wctrans_t. @ text @d1 1 a1 1 /* $NetBSD: wctype.h,v 1.4 2001/01/20 17:40:09 itojun Exp $ */ d57 18 a74 18 int iswalnum __P((wint_t)); int iswalpha __P((wint_t)); int iswblank __P((wint_t)); int iswcntrl __P((wint_t)); int iswdigit __P((wint_t)); int iswgraph __P((wint_t)); int iswlower __P((wint_t)); int iswprint __P((wint_t)); int iswpunct __P((wint_t)); int iswspace __P((wint_t)); int iswupper __P((wint_t)); int iswxdigit __P((wint_t)); int iswctype __P((wint_t, wctype_t)); wint_t towctrans __P((wint_t, wctrans_t)); wint_t towlower __P((wint_t)); wint_t towupper __P((wint_t)); wctrans_t wctrans __P((const char *)); wctype_t wctype __P((const char *)); @ 1.4 log @avoid exposure of libc internal symbols into public header (wctype.h). @ text @d1 1 a1 1 /* $NetBSD: wctype.h,v 1.3 2000/12/22 14:16:16 itojun Exp $ */ d42 10 d69 2 d73 2 @ 1.3 log @prototype decl for internal functions. @ text @d1 1 a1 1 /* $NetBSD: wctype.h,v 1.2 2000/12/21 05:40:56 itojun Exp $ */ a60 4 unsigned long ___runetype_mb __P((wint_t)); wint_t ___tolower_mb __P((wint_t)); wint_t ___toupper_mb __P((wint_t)); @ 1.2 log @have dummy wctype.h and isw*/tow*. part of libc minor 68 -> 69 crank. equivalent to is*/to* at this moment. we'll put wchar_t code in the near future. @ text @d1 1 a1 1 /* $NetBSD$ */ d61 4 @ 1.1 log @file wctype.h was initially added on branch minoura-xpg4dl. @ text @d1 63 @ 1.1.2.1 log @Citrus Project XPG4DL, an implementation of I18N (locale) framework, is imported. @ text @a0 108 /*- * 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. * * $Id: wctype.h,v 1.2 2000/01/25 14:24:21 cvscitrus Exp $ */ #ifndef _WCTYPE_H_ #ifndef __IN_WCHAR_H #define _WCTYPE_H_ #endif /* !__IN_WCHAR_H */ #include #include #if defined(__FreeBSD__) #include #endif #ifdef _BSD_WINT_T_ typedef _BSD_WINT_T_ wint_t; #undef _BSD_WINT_T_ #endif #ifndef WEOF #define WEOF ((wint_t)-1) #endif __BEGIN_DECLS int iswalnum __P((wint_t)); int iswalpha __P((wint_t)); int iswcntrl __P((wint_t)); int iswdigit __P((wint_t)); int iswgraph __P((wint_t)); int iswlower __P((wint_t)); int iswprint __P((wint_t)); int iswpunct __P((wint_t)); int iswspace __P((wint_t)); int iswupper __P((wint_t)); int iswxdigit __P((wint_t)); #if 0 /* XXX: not implemented */ /* int iswctype __P((wint_t, wctype_t)); */ #endif /* XXX: not implemented */ #ifndef __IN_WCHAR_H #if 0 /* XXX: not implemented */ /* wint_t towctrans __P((wint_t, wctrans_t)); */ #endif /* XXX: not implemented */ #endif /* !__IN_WCHAR_H */ wint_t towlower __P((wint_t)); wint_t towupper __P((wint_t)); #ifndef __IN_WCHAR_H #if 0 /* XXX: not implemented */ /* wctrans_t wctrans __P((const char *)); */ #endif /* XXX: not implemented */ #endif /* !__IN_WCHAR_H */ #if 0 /* XXX: not implemented */ /* wctype_t wctype __P((const char *)); */ #endif /* XXX: not implemented */ __END_DECLS #if defined(__FreeBSD__) #define iswalnum(c) (__istype_w((c), _A)|__isctype_w((c), _D)) #define iswalpha(c) __istype_w((c), _A) #define iswcntrl(c) __istype_w((c), _C) #define iswdigit(c) __isctype_w((c), _D) #define iswgraph(c) __istype_w((c), _G) #define iswlower(c) __istype_w((c), _L) #define iswprint(c) __istype_w((c), _R) #define iswpunct(c) __istype_w((c), _P) #define iswspace(c) __istype_w((c), _S) #define iswupper(c) __istype_w((c), _U) #define iswxdigit(c) __isctype_w((c), _X) #define towlower(c) __tolower_w(c) #define towupper(c) __toupper_w(c) #endif #endif /* _WCTYPE_H_ */ @