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