加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mbsupport.h 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
Arnold D. Robbins 提交于 2014-11-15 18:35 . Remove MBS_SUPPORT ifdefs.
/*
* mbsupport.h --- Localize determination of whether we have multibyte stuff.
*/
/*
* Copyright (C) 2004, 2005, 2011, 2012 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
*
* GAWK is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* GAWK is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifdef __DJGPP__
# undef MB_CUR_MAX
# define MB_CUR_MAX 1
/* All this glop is for DGJPP */
#define towupper toupper
#define towlower tolower
#define iswalnum isalnum
#define iswalpha isalpha
#define iswupper isupper
#define iswlower islower
#define mbrtowc(wcp, s, e, mbs) (-1)
#define mbrlen(s, e, mbs) strlen(s)
#define wcrtomb(wc, b, mbs) (-1)
#define wcslen strlen
#define wctob(wc) (EOF)
extern wctype_t wctype(const char *name);
extern int iswctype(wint_t wc, wctype_t desc);
extern int wcscoll(const wchar_t *ws1, const wchar_t *ws2);
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化