1/* mbchar.h - Various declarations for functions found in mbchar.c 2 Copyright (C) 1998 Free Software Foundation, Inc. 3 4This file is part of GNU CC. 5 6GNU CC is free software; you can redistribute it and/or modify 7it under the terms of the GNU General Public License as published by 8the Free Software Foundation; either version 2, or (at your option) 9any later version. 10 11GNU CC is distributed in the hope that it will be useful, 12but WITHOUT ANY WARRANTY; without even the implied warranty of 13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14GNU General Public License for more details. 15 16You should have received a copy of the GNU General Public License 17along with GNU CC; see the file COPYING. If not, write to 18the Free Software Foundation, 59 Temple Place - Suite 330, 19Boston, MA 02111-1307, USA. */ 20 21#ifndef __GCC_MBCHAR_H__ 22#define __GCC_MBCHAR_H__ 23 24#ifdef MULTIBYTE_CHARS 25/* escape character used for JIS encoding */ 26#define JIS_ESC_CHAR 0x1b 27 28#define ISSJIS1(c) ((c) >= 0x81 && (c) <= 0x9f || (c) >= 0xe0 && (c) <= 0xef) 29#define ISSJIS2(c) ((c) >= 0x40 && (c) <= 0x7e || (c) >= 0x80 && (c) <= 0xfc) 30#define ISEUCJP(c) ((c) >= 0xa1 && (c) <= 0xfe) 31#define ISJIS(c) ((c) >= 0x21 && (c) <= 0x7e) 32 33int local_mbtowc PROTO ((wchar_t *, const char *, size_t)); 34int local_mblen PROTO ((const char *, size_t)); 35int local_mb_cur_max PROTO ((void)); 36 37/* The locale being used for multibyte characters in string/char literals. */ 38extern char *literal_codeset; 39#endif /* MULTIBYTE_CHARS */ 40 41#endif /* __GCC_MBCHAR_H__ */ 42