From: Peter Johnson Date: Wed, 13 Jun 2001 06:05:08 +0000 (-0000) Subject: isascii -> implementation. This is ANSI C, but some headers don't believe it. X-Git-Tag: v0.1.0~456 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aee50717692d1810f44e316c0ef8c930c5b67a65;p=yasm isascii -> implementation. This is ANSI C, but some headers don't believe it. svn path=/trunk/yasm/; revision=55 --- diff --git a/libyasm/errwarn.c b/libyasm/errwarn.c index 97bfc6aa..b0e7fd7f 100644 --- a/libyasm/errwarn.c +++ b/libyasm/errwarn.c @@ -1,4 +1,4 @@ -/* $Id: errwarn.c,v 1.9 2001/06/13 05:58:21 mu Exp $ +/* $Id: errwarn.c,v 1.10 2001/06/13 06:05:08 peter Exp $ * Error and warning reporting and related functions. * * Copyright (C) 2001 Peter Johnson @@ -71,7 +71,7 @@ char *conv_unprint(char ch) { int pos=0; - if(!isascii(ch) && !isprint(ch)) { + if(((ch & ~0x7F) != 0)/*!isascii(ch)*/ && !isprint(ch)) { unprint[pos++] = 'M'; unprint[pos++] = '-'; ch &= 0x7F; /* toascii(ch) */ diff --git a/src/errwarn.c b/src/errwarn.c index 97bfc6aa..b0e7fd7f 100644 --- a/src/errwarn.c +++ b/src/errwarn.c @@ -1,4 +1,4 @@ -/* $Id: errwarn.c,v 1.9 2001/06/13 05:58:21 mu Exp $ +/* $Id: errwarn.c,v 1.10 2001/06/13 06:05:08 peter Exp $ * Error and warning reporting and related functions. * * Copyright (C) 2001 Peter Johnson @@ -71,7 +71,7 @@ char *conv_unprint(char ch) { int pos=0; - if(!isascii(ch) && !isprint(ch)) { + if(((ch & ~0x7F) != 0)/*!isascii(ch)*/ && !isprint(ch)) { unprint[pos++] = 'M'; unprint[pos++] = '-'; ch &= 0x7F; /* toascii(ch) */