aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/tack/output.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-05-17 08:21:06 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-05-17 08:21:06 +0000
commit7a69bbfb278952228c9aa1eca241e65fcdef425e (patch)
treee83b2ef47811e687a6c54035c9af6d4a2b7f14e1 /contrib/ncurses/tack/output.c
parent18259542b2f8fa7e3f76f4bb0dd37995dfd424aa (diff)
downloadsrc-7a69bbfb278952228c9aa1eca241e65fcdef425e.tar.gz
src-7a69bbfb278952228c9aa1eca241e65fcdef425e.zip
Import ncurses-5.2-20010512 onto the vendor branch
Obtained from: ftp://dickey.his.com/ncurses/
Notes
Notes: svn path=/vendor/ncurses/dist/; revision=76726
Diffstat (limited to 'contrib/ncurses/tack/output.c')
-rw-r--r--contrib/ncurses/tack/output.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/ncurses/tack/output.c b/contrib/ncurses/tack/output.c
index fac566e3b8a0..e1e4b4f7b28c 100644
--- a/contrib/ncurses/tack/output.c
+++ b/contrib/ncurses/tack/output.c
@@ -23,7 +23,7 @@
#include <tack.h>
#include <time.h>
-MODULE_ID("$Id: output.c,v 1.5 2000/03/04 21:06:57 tom Exp $")
+MODULE_ID("$Id: output.c,v 1.6 2000/11/05 00:21:58 tom Exp $")
/* globals */
long char_sent; /* number of characters sent */
@@ -122,7 +122,7 @@ tc_putch(int c)
}
if (log_fp) {
/* terminal output logging */
- c &= 0xff;
+ c = CharOf(c);
if (c < 32) {
fprintf(log_fp, "<%s>", c0[c]);
log_count += 5;
@@ -561,7 +561,7 @@ hex_expand_to(char *s, int l)
char *t;
for (t = buf; *s; s++) {
- sprintf(t, "%02X ", *s & 0xff);
+ sprintf(t, "%02X ", CharOf(*s));
t += 3;
if (t - buf > (int) sizeof(buf) - 4) {
break;
@@ -584,13 +584,13 @@ expand_command(const char *c)
char *s;
s = buf;
- for (i = FALSE; (ch = (*c & 0xff)); c++) {
+ for (i = FALSE; (ch = CharOf(*c)) != 0; c++) {
if (i) {
*s++ = ' ';
}
i = TRUE;
if (ch < 32) {
- j = c[1] & 0xff;
+ j = CharOf(c[1]);
if (ch == '\033' && j >= '@' && j <= '_') {
ch = j - '@';
c++;
@@ -599,7 +599,7 @@ expand_command(const char *c)
for (j = 0; (*s = c0[ch][j++]); s++);
} else {
*s++ = ch;
- j = c[1] & 0xff;
+ j = CharOf(c[1]);
if (ch >= '0' && ch <= '9' &&
j >= '0' && j <= '9') {
i = FALSE;