summaryrefslogtreecommitdiff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2019-12-17 04:43:48 +0000
committerDaniel Shahaf <danielsh@apache.org>2019-12-17 05:12:36 +0000
commit8bc4400762289e5cdbcfa50aab5982f8e7e28dfc (patch)
tree7fc5f89ac89b1ec686da40e409723436d3a167f7 /Src/zsh.h
parent2cb15a23f8a61adf11634d1ee6a9eeca57e68b30 (diff)
downloadzsh-8bc4400762289e5cdbcfa50aab5982f8e7e28dfc.tar.gz
zsh-8bc4400762289e5cdbcfa50aab5982f8e7e28dfc.zip
45058: internal: Add symbolic names to possible values of zexit()'s "from_where" parameter. No functional change.
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index 9194ea82c..657e6d8ec 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -3222,6 +3222,14 @@ enum {
/* Hooks in core. */
/***************************************/
+/* The type of zexit()'s second parameter, which see. */
+enum zexit_t {
+ /* This isn't a bitfield. The values are here just for explicitness. */
+ ZEXIT_NORMAL = 0,
+ ZEXIT_SIGNAL = 1,
+ ZEXIT_DEFERRED = 2
+};
+
#define EXITHOOK (zshhooks + 0)
#define BEFORETRAPHOOK (zshhooks + 1)
#define AFTERTRAPHOOK (zshhooks + 2)