From: Peter Johnson Date: Fri, 29 Jun 2001 02:12:15 +0000 (-0000) Subject: Use toascii() again (now implemented in util.h if not present on system). X-Git-Tag: v0.1.0~443 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82fba53e7f34a401261ae4893689e7237aa85275;p=yasm Use toascii() again (now implemented in util.h if not present on system). svn path=/trunk/yasm/; revision=68 --- diff --git a/libyasm/errwarn.c b/libyasm/errwarn.c index a9340910..d072d584 100644 --- a/libyasm/errwarn.c +++ b/libyasm/errwarn.c @@ -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++] = '^'; diff --git a/src/errwarn.c b/src/errwarn.c index a9340910..d072d584 100644 --- a/src/errwarn.c +++ b/src/errwarn.c @@ -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++] = '^';