]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
Make CTRL() ANSI-compliant.
authormycroft <mycroft@NetBSD.org>
Fri, 23 Apr 1993 03:34:42 +0000 (03:34 +0000)
committermycroft <mycroft@NetBSD.org>
Fri, 23 Apr 1993 03:34:42 +0000 (03:34 +0000)
robots/move.c
robots/robots.h

index 793644407442f17fef9a213b5b5574ea8240c701..8da28376873f40eda7d599149ac7a1cce20a957b 100644 (file)
@@ -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;
index cafea70379ee7275ba959618813e5bef46dc4776..f5236ef5cb686407515b5974b9e772f9402a0f46 100644 (file)
@@ -69,7 +69,7 @@
  */
 
 # undef                CTRL
-# define       CTRL(X) ('X' - 'A' + 1)
+# define       CTRL(X) ((X) - 'A' + 1)
 
 /*
  * type definitions