[official-gcc.git] / gcc / mbchar.h
bloba4b82c0558dfd6fb951e2b556b00ecdb3de4424a
1 /* mbchar.h - Various declarations for functions found in mbchar.c
2 Copyright (C) 1998 Free Software Foundation, Inc.
3 */
5 #ifndef __GCC_MBCHAR_H__
6 #define __GCC_MBCHAR_H__
8 #ifdef MULTIBYTE_CHARS
9 /* escape character used for JIS encoding */
10 #define JIS_ESC_CHAR 0x1b
12 #define ISSJIS1(c) ((c) >= 0x81 && (c) <= 0x9f || (c) >= 0xe0 && (c) <= 0xef)
13 #define ISSJIS2(c) ((c) >= 0x40 && (c) <= 0x7e || (c) >= 0x80 && (c) <= 0xfc)
14 #define ISEUCJP(c) ((c) >= 0xa1 && (c) <= 0xfe)
15 #define ISJIS(c) ((c) >= 0x21 && (c) <= 0x7e)
17 int local_mbtowc PROTO ((wchar_t *, const char *, size_t));
18 int local_mblen PROTO ((const char *, size_t));
19 int local_mb_cur_max PROTO ((void));
21 /* The locale being used for multibyte characters in string/char literals. */
22 extern char *literal_codeset;
23 #endif /* MULTIBYTE_CHARS */
25 #endif /* __GCC_MBCHAR_H__ */