about summary refs log tree commit diff
path: root/Src/params.c
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-12-02 16:01:04 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-12-03 09:54:11 +0000
commitfd2ca229ddfc913f14f3b4b27fe8dcb25a5bba1d (patch)
tree21f85f153c516486b4c31bb9699e332913ce7d19 /Src/params.c
parent6b5df9881c6ee08b2c3f3a51592272abbf427347 (diff)
downloadzsh-fd2ca229ddfc913f14f3b4b27fe8dcb25a5bba1d.tar.gz
zsh-fd2ca229ddfc913f14f3b4b27fe8dcb25a5bba1d.tar.xz
zsh-fd2ca229ddfc913f14f3b4b27fe8dcb25a5bba1d.zip
40067: internal: Document 'cmatcher', parse_cmatcher(), 'comptoend', unsetparam_pm(), and getindex().
Diffstat (limited to 'Src/params.c')
-rw-r--r--Src/params.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/Src/params.c b/Src/params.c
index aa8b196bd..21a910190 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -1761,6 +1761,18 @@ getarg(char **str, int *inv, Value v, int a2, zlong *w,
     return r;
 }
 
+/*
+ * Parse a subscript.
+ *
+ * pptr: In/Out parameter.  On entry, *ptr points to a "[foo]" string.  On exit
+ * it will point one past the closing bracket.
+ *
+ * v: In/Out parameter.  Its .start and .end members (at least) will be updated
+ * with the parsed indices.
+ *
+ * flags: can be either SCANPM_DQUOTED or zero.  Other bits are not used.
+ */
+
 /**/
 int
 getindex(char **pptr, Value v, int flags)
@@ -3245,7 +3257,11 @@ unsetparam(char *s)
     unqueue_signals();
 }
 
-/* Unset a parameter */
+/* Unset a parameter
+ *
+ * altflag: if true, don't remove pm->ename from the environment
+ * exp: See stdunsetfn()
+ */
 
 /**/
 mod_export int