diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-10-05 16:21:34 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-10-05 16:21:34 +0000 |
commit | 5da1ecf26e0da1c8eb7d6939ce6e1c4bbbeb7f98 (patch) | |
tree | c4e09005c1e1506838b18bc5bde1279009298f56 /gcc/mbchar.h | |
parent | 018fc244dc645ae8ff169d4cfdcf3b8580067410 (diff) | |
download | gcc-5da1ecf26e0da1c8eb7d6939ce6e1c4bbbeb7f98.zip gcc-5da1ecf26e0da1c8eb7d6939ce6e1c4bbbeb7f98.tar.gz gcc-5da1ecf26e0da1c8eb7d6939ce6e1c4bbbeb7f98.tar.bz2 |
mbchar.c (literal_codeset, [...]): Constify a char*.
* mbchar.c (literal_codeset, local_mbtowc, local_mblen): Constify
a char*.
(local_mbtowc): Change the type of variable `i' from int to size_t.
* mbchar.h (ISSJIS1, ISSJIS2): Use parens around && within ||.
(local_mbtowc, local_mblen, literal_codeset): Constify a char*.
From-SVN: r29827
Diffstat (limited to 'gcc/mbchar.h')
-rw-r--r-- | gcc/mbchar.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/mbchar.h b/gcc/mbchar.h index 04e564f..84060d4 100644 --- a/gcc/mbchar.h +++ b/gcc/mbchar.h @@ -26,16 +26,16 @@ Boston, MA 02111-1307, USA. */ /* Escape character used for JIS encoding */ #define JIS_ESC_CHAR 0x1b -#define ISSJIS1(c) ((c) >= 0x81 && (c) <= 0x9f || (c) >= 0xe0 && (c) <= 0xef) -#define ISSJIS2(c) ((c) >= 0x40 && (c) <= 0x7e || (c) >= 0x80 && (c) <= 0xfc) +#define ISSJIS1(c) (((c) >= 0x81 && (c) <= 0x9f) || ((c) >= 0xe0 && (c) <= 0xef)) +#define ISSJIS2(c) (((c) >= 0x40 && (c) <= 0x7e) || ((c) >= 0x80 && (c) <= 0xfc)) #define ISEUCJP(c) ((c) >= 0xa1 && (c) <= 0xfe) #define ISJIS(c) ((c) >= 0x21 && (c) <= 0x7e) -extern int local_mbtowc PROTO ((wchar_t *, char *, size_t)); -extern int local_mblen PROTO ((char *, size_t)); +extern int local_mbtowc PROTO ((wchar_t *, const char *, size_t)); +extern int local_mblen PROTO ((const char *, size_t)); extern int local_mb_cur_max PROTO ((void)); /* The locale being used for multibyte characters in string/char literals. */ -extern char *literal_codeset; +extern const char *literal_codeset; #endif /* MULTIBYTE_CHARS */ #endif |