1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-10 12:40:58 +02:00

35064: rename ISPRINT to ZISPRINT to avoid conflict

This commit is contained in:
Jun-ichi Takimoto 2015-05-09 16:02:37 +09:00
parent f855801fb9
commit a6db0b41ca
4 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2015-05-09 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 35064: Src/pattern.c, Src/utils.c, Src/ztype.h: rename
ISPRINT to ZISPRINT to avoid name conflict
2015-05-08 Peter Stephenson <p.stephenson@samsung.com>
* 35059: Doc/Zsh/builtins.yo, Src/params.c,

View file

@ -3622,7 +3622,7 @@ patmatchrange(char *range, int ch, int *indptr, int *mtp)
return 1;
break;
case PP_PRINT:
if (ISPRINT(ch))
if (ZISPRINT(ch))
return 1;
break;
case PP_PUNCT:

View file

@ -414,7 +414,7 @@ nicechar(int c)
static char buf[6];
char *s = buf;
c &= 0xff;
if (ISPRINT(c))
if (ZISPRINT(c))
goto done;
if (c & 0x80) {
if (isset(PRINTEIGHTBIT))
@ -423,7 +423,7 @@ nicechar(int c)
*s++ = 'M';
*s++ = '-';
c &= 0x7f;
if(ISPRINT(c))
if(ZISPRINT(c))
goto done;
}
if (c == 0x7f) {

View file

@ -77,7 +77,7 @@
#endif
#if defined(__APPLE__) && defined(BROKEN_ISPRINT)
#define ISPRINT(c) isprint_ascii(c)
#define ZISPRINT(c) isprint_ascii(c)
#else
#define ISPRINT(c) isprint(c)
#define ZISPRINT(c) isprint(c)
#endif