2 * ion/ioncore/dummywc.h
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
9 /* This file contains dummy implementations of multibyte/widechar routines
10 * used by Ion for retarded platforms.
13 #ifndef ION_IONCORE_DUMMYWC_H
14 #define ION_IONCORE_DUMMYWC_H
22 #define iswalnum isalnum
23 #define iswprint isprint
24 #define iswspace isspace
26 #define mbrlen dummywc_mbrlen
27 #define mbtowc dummywc_mbtowc
28 #define mbrtowc dummywc_mbrtowc
30 static size_t dummywc_mbrlen(const char *s, size_t n, mbstate_t *ps)
37 static int dummywc_mbtowc(wchar_t *pwc, const char *s, size_t n)
46 static size_t dummywc_mbrtowc(wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
48 return mbtowc(pwc, s, n);
51 #endif /* ION_IONCORE_DUMMYWC_H */