about summary refs log tree commit diff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2017-12-22 19:51:04 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2017-12-22 19:51:04 +0000
commit8ec3d17b4ba5f19ae24695c9532606f7f266e1f1 (patch)
tree592c1468f4d06a39d14141921ecf1ddddabd2d97 /Src/zsh.h
parent932ed864837b8c43e475784768bd0b00728e756c (diff)
downloadzsh-8ec3d17b4ba5f19ae24695c9532606f7f266e1f1.tar.gz
zsh-8ec3d17b4ba5f19ae24695c9532606f7f266e1f1.tar.xz
zsh-8ec3d17b4ba5f19ae24695c9532606f7f266e1f1.zip
33395: Improvments for function managment.
Functions defined inside other fucntions needs file line number
adding.  Particularly useful for anonymous fucntions.

Add flag to indicate a function is anonymous.  Done up to now
by comparing the name to a pointer but this is more consistent.
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index 24d06ba06..22ae95480 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -1875,6 +1875,7 @@ struct tieddata {
 #define PM_DONTIMPORT_SUID (1<<19) /* do not import if running setuid */
 #define PM_LOADDIR      (1<<19) /* (function) filename gives load directory */
 #define PM_SINGLE       (1<<20) /* special can only have a single instance  */
+#define PM_ANONYMOUS    (1<<20) /* (function) anonymous function            */
 #define PM_LOCAL	(1<<21) /* this parameter will be made local        */
 #define PM_SPECIAL	(1<<22) /* special builtin parameter                */
 #define PM_DONTIMPORT	(1<<23)	/* do not import this variable              */