summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/comp.h4
-rw-r--r--Src/Zle/complete.c20
3 files changed, 26 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 1241789de..b6f4836d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-09-04  Daniel Shahaf  <d.s@daniel.shahaf.name>
+
+	* unposted: Src/Zle/comp.h, Src/Zle/complete.c: internals:
+	Document zshcompwid(1) parameter implementations.
+
 2016-09-03  Oliver Kiddle  <opk@zsh.org>
 
 	* Marko Myllynen: 39158: Completion/Unix/Command/_libvirt:
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