Removed obsolete IS_CTRL macro.
authorDaniel Carl <danielcarl@gmx.de>
Wed, 4 Jun 2014 20:02:26 +0000 (22:02 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Wed, 4 Jun 2014 20:05:10 +0000 (22:05 +0200)
src/ascii.h
src/normal.c

index 8f6ae9c..c0bb963 100644 (file)
@@ -76,8 +76,7 @@ static const unsigned char chartable[256] = {
 #define CSI         0x80
 #define CSI_STR     "\x80"
 
-/* check if the char c is a char with CTRL like ^C */
-#define IS_CTRL(c)  (((unsigned char)c) <= 0x1f)
+/* get internal representation for conrol character ^C */
 #define CTRL(c)     ((c) ^ 0x40)
 
 #define IS_SPECIAL(c)       (c < 0)
index 52e140b..9ffe4c8 100644 (file)
@@ -334,7 +334,7 @@ static char *transchar(int c)
 {
     static char trans[5];
     int i = 0;
-    if (IS_CTRL(c)) {
+    if (VB_IS_CTRL(c)) {
         trans[i++] = '^';
         trans[i++] = CTRL(c);
     } else if ((unsigned)c >= 0x80) {