]> mj.ucw.cz Git - libucw.git/commitdiff
conf: expand a macro call, because it's used only once
authorRobert Spalek <robert@ucw.cz>
Sun, 30 Apr 2006 11:14:40 +0000 (13:14 +0200)
committerRobert Spalek <robert@ucw.cz>
Sun, 30 Apr 2006 11:14:40 +0000 (13:14 +0200)
lib/conf-input.c

index 786725bda7b455fb613924dda12a08473049d4a7..2abb7a219b3bdb2c54841de225f50f834f402f5e 100644 (file)
@@ -64,9 +64,6 @@ append(byte *start, byte *end)
   copy_buf.ptr[copied-1] = 0;
 }
 
-#define        CONTROL_CHAR(x) (x == '{' || x == '}' || x == ';')
-  // these characters separate words like blanks
-
 static byte *
 get_word(uns is_command_name)
 {
@@ -121,7 +118,8 @@ get_word(uns is_command_name)
   } else {
     // promised that *line is non-null and non-blank
     byte *start = line;
-    while (*line && !Cblank(*line) && !CONTROL_CHAR(*line)
+    while (*line && !Cblank(*line)
+       && *line != '{' && *line != '}' && *line != ';'
        && (*line != '=' || !is_command_name))
       line++;
     if (*line == '=') {                                // nice for setting from a command-line