]> granicus.if.org Git - yasm/commitdiff
Use toascii() again (now implemented in util.h if not present on system).
authorPeter Johnson <peter@tortall.net>
Fri, 29 Jun 2001 02:12:15 +0000 (02:12 -0000)
committerPeter Johnson <peter@tortall.net>
Fri, 29 Jun 2001 02:12:15 +0000 (02:12 -0000)
svn path=/trunk/yasm/; revision=68

libyasm/errwarn.c
src/errwarn.c

index a93409101a6c0377f51abec0f0dd6a475ab3fddc..d072d584559bc4f08da2f0c63276b942c8fdcb9a 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: errwarn.c,v 1.11 2001/06/28 08:48:32 peter Exp $
+/* $Id: errwarn.c,v 1.12 2001/06/29 02:12:15 peter Exp $
  * Error and warning reporting and related functions.
  *
  *  Copyright (C) 2001  Peter Johnson
@@ -84,7 +84,7 @@ char *conv_unprint(char ch)
     if(((ch & ~0x7F) != 0)/*!isascii(ch)*/ && !isprint(ch)) {
        unprint[pos++] = 'M';
        unprint[pos++] = '-';
-       ch &= 0x7F; /* toascii(ch) */
+       ch &= toascii(ch);
     }
     if(iscntrl(ch)) {
        unprint[pos++] = '^';
index a93409101a6c0377f51abec0f0dd6a475ab3fddc..d072d584559bc4f08da2f0c63276b942c8fdcb9a 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: errwarn.c,v 1.11 2001/06/28 08:48:32 peter Exp $
+/* $Id: errwarn.c,v 1.12 2001/06/29 02:12:15 peter Exp $
  * Error and warning reporting and related functions.
  *
  *  Copyright (C) 2001  Peter Johnson
@@ -84,7 +84,7 @@ char *conv_unprint(char ch)
     if(((ch & ~0x7F) != 0)/*!isascii(ch)*/ && !isprint(ch)) {
        unprint[pos++] = 'M';
        unprint[pos++] = '-';
-       ch &= 0x7F; /* toascii(ch) */
+       ch &= toascii(ch);
     }
     if(iscntrl(ch)) {
        unprint[pos++] = '^';