2 * ion/ioncore/dummywc.h
4 * Copyright (c) Tuomo Valkonen 1999-2007.
6 * Ion is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
12 /* This file contains dummy implementations of multibyte/widechar routines
13 * used by Ion for retarded platforms.
16 #ifndef ION_IONCORE_DUMMYWC_H
17 #define ION_IONCORE_DUMMYWC_H
25 #define iswalnum isalnum
26 #define iswprint isprint
27 #define iswspace isspace
29 #define mbrlen dummywc_mbrlen
30 #define mbtowc dummywc_mbtowc
31 #define mbrtowc dummywc_mbrtowc
33 static size_t dummywc_mbrlen(const char *s, size_t n, mbstate_t *ps)
40 static int dummywc_mbtowc(wchar_t *pwc, const char *s, size_t n)
49 static size_t dummywc_mbrtowc(wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
51 return mbtowc(pwc, s, n);
54 #endif /* ION_IONCORE_DUMMYWC_H */