]> granicus.if.org Git - yasm/commitdiff
isascii -> implementation. This is ANSI C, but some headers don't believe it.
authorPeter Johnson <peter@tortall.net>
Wed, 13 Jun 2001 06:05:08 +0000 (06:05 -0000)
committerPeter Johnson <peter@tortall.net>
Wed, 13 Jun 2001 06:05:08 +0000 (06:05 -0000)
svn path=/trunk/yasm/; revision=55

libyasm/errwarn.c
src/errwarn.c

index 97bfc6aa7dbaac5ee86600e72a11294137b63c3e..b0e7fd7fc31e86f348ddef51afedbac16c4be676 100644 (file)
@@ -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) */
index 97bfc6aa7dbaac5ee86600e72a11294137b63c3e..b0e7fd7fc31e86f348ddef51afedbac16c4be676 100644 (file)
@@ -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) */