1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 05:10:28 +02:00

45058: internal: Add symbolic names to possible values of zexit()'s "from_where" parameter. No functional change.

This commit is contained in:
Daniel Shahaf 2019-12-17 04:43:48 +00:00
parent 2cb15a23f8
commit 8bc4400762
9 changed files with 40 additions and 25 deletions

View file

@ -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)