|
Packit |
575503 |
/*
|
|
Packit |
575503 |
* mbsupport.h --- Localize determination of whether we have multibyte stuff.
|
|
Packit |
575503 |
*/
|
|
Packit |
575503 |
|
|
Packit |
575503 |
/*
|
|
Packit |
575503 |
* Copyright (C) 2004, 2005, 2011, 2012, 2015, 2016
|
|
Packit |
575503 |
* the Free Software Foundation, Inc.
|
|
Packit |
575503 |
*
|
|
Packit |
575503 |
* This file is part of GAWK, the GNU implementation of the
|
|
Packit |
575503 |
* AWK Programming Language.
|
|
Packit |
575503 |
*
|
|
Packit |
575503 |
* GAWK is free software; you can redistribute it and/or modify
|
|
Packit |
575503 |
* it under the terms of the GNU General Public License as published by
|
|
Packit |
575503 |
* the Free Software Foundation; either version 3 of the License, or
|
|
Packit |
575503 |
* (at your option) any later version.
|
|
Packit |
575503 |
*
|
|
Packit |
575503 |
* GAWK is distributed in the hope that it will be useful,
|
|
Packit |
575503 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
575503 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
575503 |
* GNU General Public License for more details.
|
|
Packit |
575503 |
*
|
|
Packit |
575503 |
* You should have received a copy of the GNU General Public License
|
|
Packit |
575503 |
* along with this program; if not, write to the Free Software
|
|
Packit |
575503 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
Packit |
575503 |
*/
|
|
Packit |
575503 |
|
|
Packit |
575503 |
|
|
Packit |
575503 |
#ifdef __DJGPP__
|
|
Packit |
575503 |
# undef MB_CUR_MAX
|
|
Packit |
575503 |
# define MB_CUR_MAX 1
|
|
Packit |
575503 |
|
|
Packit |
575503 |
/* All this glop is for DGJPP */
|
|
Packit |
575503 |
|
|
Packit |
575503 |
#define towupper toupper
|
|
Packit |
575503 |
#define towlower tolower
|
|
Packit |
575503 |
#define iswalnum isalnum
|
|
Packit |
575503 |
#define iswalpha isalpha
|
|
Packit |
575503 |
#define iswupper isupper
|
|
Packit |
575503 |
#define iswlower islower
|
|
Packit |
575503 |
|
|
Packit |
575503 |
#define mbrtowc(wcp, s, e, mbs) (-1)
|
|
Packit |
575503 |
#define mbrlen(s, e, mbs) strlen(s)
|
|
Packit |
575503 |
#define wcrtomb(wc, b, mbs) (-1)
|
|
Packit |
575503 |
#define wcslen strlen
|
|
Packit |
575503 |
#define wctob(wc) (EOF)
|
|
Packit |
575503 |
|
|
Packit |
575503 |
#if (__DJGPP__ > 2 || __DJGPP_MINOR__ >= 3)
|
|
Packit |
575503 |
# include <ctype.h>
|
|
Packit |
575503 |
# include <wchar.h>
|
|
Packit |
575503 |
# include <wctype.h>
|
|
Packit |
575503 |
#else
|
|
Packit |
575503 |
# define mbstate_t int
|
|
Packit |
575503 |
#endif
|
|
Packit |
575503 |
|
|
Packit |
575503 |
extern wctype_t wctype(const char *name);
|
|
Packit |
575503 |
extern int iswctype(wint_t wc, wctype_t desc);
|
|
Packit |
575503 |
extern int wcscoll(const wchar_t *ws1, const wchar_t *ws2);
|
|
Packit |
575503 |
#endif
|