about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/comp.h4
-rw-r--r--Src/Zle/complete.c20
2 files changed, 21 insertions, 3 deletions
diff --git a/Src/Zle/comp.h b/Src/Zle/comp.h
index 023c41814..dfac35cfb 100644
--- a/Src/Zle/comp.h
+++ b/Src/Zle/comp.h
@@ -367,7 +367,7 @@ typedef void (*CLPrintFunc)(Cmgroup, Cmatch *, int, int, int, int);
 #define CP_QISUFFIX    (1 <<  CPN_QISUFFIX)
 #define CPN_COMPSTATE  9
 #define CP_COMPSTATE   (1 <<  CPN_COMPSTATE)
-
+/* See comprpms */
 #define CP_REALPARAMS  10
 #define CP_ALLREALS    ((unsigned int) 0x3ff)
 
@@ -424,7 +424,7 @@ typedef void (*CLPrintFunc)(Cmgroup, Cmatch *, int, int, int, int);
 #define CP_QUOTES      (1 << CPN_QUOTES)
 #define CPN_IGNORED    25
 #define CP_IGNORED     (1 << CPN_IGNORED)
-
+/* See compkpms */
 #define CP_KEYPARAMS   26
 #define CP_ALLKEYS     ((unsigned int) 0x3ffffff)
 
diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c
index 0c14d86d5..b28b95ef9 100644
--- a/Src/Zle/complete.c
+++ b/Src/Zle/complete.c
@@ -72,8 +72,26 @@ char *compiprefix,
      *compoldins,
      *compvared;
 
+/*
+ * An array of Param structures for compsys special parameters;
+ * see 'comprparams' below.  An entry for $compstate is added
+ * by makecompparams().
+ *
+ * See CP_REALPARAMS.
+ */
+
+/**/
+Param *comprpms;
+
+/* 
+ * An array of Param structures for elemens of $compstate; see
+ * 'compkparams' below.
+ *
+ * See CP_KEYPARAMS.
+ */
+
 /**/
-Param *comprpms, *compkpms;
+Param *compkpms;
 
 /**/
 mod_export void