]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/mbchar.h
Standardize header guards.
[thirdparty/gcc.git] / gcc / mbchar.h
CommitLineData
c5c76735 1/* Various declarations for functions found in mbchar.c
9311a396 2 Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
4283012f
JL
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. */
56f48ce9 20
88657302
RH
21#ifndef GCC_MBCHAR_H
22#define GCC_MBCHAR_H
56f48ce9
DB
23
24#ifdef MULTIBYTE_CHARS
c5c76735
JL
25
26/* Escape character used for JIS encoding */
56f48ce9
DB
27#define JIS_ESC_CHAR 0x1b
28
5da1ecf2
KG
29#define ISSJIS1(c) (((c) >= 0x81 && (c) <= 0x9f) || ((c) >= 0xe0 && (c) <= 0xef))
30#define ISSJIS2(c) (((c) >= 0x40 && (c) <= 0x7e) || ((c) >= 0x80 && (c) <= 0xfc))
56f48ce9
DB
31#define ISEUCJP(c) ((c) >= 0xa1 && (c) <= 0xfe)
32#define ISJIS(c) ((c) >= 0x21 && (c) <= 0x7e)
33
13536812
KG
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));
56f48ce9
DB
37
38/* The locale being used for multibyte characters in string/char literals. */
5da1ecf2 39extern const char *literal_codeset;
56f48ce9 40#endif /* MULTIBYTE_CHARS */
88657302 41#endif /* ! GCC_MBCHAR_H */