lib.c (subst): Refer to the correct variable.
[runlisp] / lib.c
diff --git a/lib.c b/lib.c
index b509cea..dea6c09 100644 (file)
--- a/lib.c
+++ b/lib.c
@@ -1251,7 +1251,7 @@ void config_read_env(struct config *conf, struct config_section *sect)
  *
  * This only keeps track of the immutable parameters for the substitution
  * task: stuff which changes (flags, filtering state, cursor position) is
- *      maintained separately.
+ * maintained separately.
  */
 struct subst {
   struct config *config;               /* configuration state */
@@ -1413,9 +1413,10 @@ static const char *subst(const char *p, const char *l,
     0,
     ESCAPE DELIM SUBST QUOT
 
-#undef COMMON
+#undef ESCAPE
+#undef SUBST
 #undef WORDSEP
-#undef SQUOT
+#undef QUOT
 #undef DELIM
   };
 
@@ -1461,7 +1462,7 @@ static const char *subst(const char *p, const char *l,
 
       if (!(f&SF_SKIP)) {
 
-       /* If this is a double quote or backslash then check DFLT to see if
+       /* If this is a double quote or backslash then check QFILT to see if
         * it needs escaping.
         */
        if (qfilt && (*p == '"' || *p == '\\'))