diff options
author | Daniel Shahaf <danielsh@apache.org> | 2019-12-17 04:43:48 +0000 |
---|---|---|
committer | Daniel Shahaf <danielsh@apache.org> | 2019-12-17 05:12:36 +0000 |
commit | 8bc4400762289e5cdbcfa50aab5982f8e7e28dfc (patch) | |
tree | 7fc5f89ac89b1ec686da40e409723436d3a167f7 /Src/zsh.h | |
parent | 2cb15a23f8a61adf11634d1ee6a9eeca57e68b30 (diff) | |
download | zsh-8bc4400762289e5cdbcfa50aab5982f8e7e28dfc.tar.gz zsh-8bc4400762289e5cdbcfa50aab5982f8e7e28dfc.tar.xz 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.h | 8 |
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) |