about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-04 21:14:52 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-04 21:15:46 +0000
commit02bb3de2575aca2b0e823b96d8281c89a77eba42 (patch)
tree462895383496615e919ac9157d1750a84e7d03f6
parent5b4cbcc842c6272c76e4bc0190006c589b5481cc (diff)
downloadzsh-02bb3de2575aca2b0e823b96d8281c89a77eba42.tar.gz
zsh-02bb3de2575aca2b0e823b96d8281c89a77eba42.tar.xz
zsh-02bb3de2575aca2b0e823b96d8281c89a77eba42.zip
unposted: internals: Document zshcompwid(1) parameter implementations.
-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