From 899411bf57ab78e3300b8a376e7cd8ed1a9ea36b Mon Sep 17 00:00:00 2001 From: mycroft Date: Fri, 23 Apr 1993 03:34:42 +0000 Subject: Make CTRL() ANSI-compliant. --- robots/move.c | 6 +++--- robots/robots.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'robots') diff --git a/robots/move.c b/robots/move.c index 79364440..8da28376 100644 --- a/robots/move.c +++ b/robots/move.c @@ -169,13 +169,13 @@ teleport: refresh(); flush_in(); goto ret; - case CTRL(L): + case CTRL('L'): wrefresh(curscr); break; case EOF: break; default: - putchar(CTRL(G)); + putchar(CTRL('G')); reset_count(); fflush(stdout); break; @@ -240,7 +240,7 @@ int dy, dx; refresh(); } else { - putchar(CTRL(G)); + putchar(CTRL('G')); reset_count(); } return FALSE; diff --git a/robots/robots.h b/robots/robots.h index cafea703..f5236ef5 100644 --- a/robots/robots.h +++ b/robots/robots.h @@ -69,7 +69,7 @@ */ # undef CTRL -# define CTRL(X) ('X' - 'A' + 1) +# define CTRL(X) ((X) - 'A' + 1) /* * type definitions -- cgit v1.2.3