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