diff options
author | Kevin McCarthy <kevin@8t8.us> | 2019-06-25 14:25:33 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2019-06-26 16:02:21 -0700 |
commit | 793e0fc2c88a168cd551a749fb3dcc6998691f7e (patch) | |
tree | 48e19d8880b634067ce423c4df7b2cd8b9b7633a /mutt.h | |
parent | 0d53c86e55a8142744a5dad3c75271b97744785b (diff) |
Convert Commands to use the union pointer_long_t too.
As with MuttVars, Commands was using an unsigned long to hold pointers
as well as enums. Convert to use the same union type of MuttVars.
Adjust command functions data parameter type to the union. Since
these are used outside init.c, relocate the union definition to
mutt.h.
Although the number of functions affected was long, most of them did
not need much adjustment. Many of them made no use of the parameter.
Those that did were easily cast into an added "data" variable at the
top.
Diffstat (limited to 'mutt.h')
-rw-r--r-- | mutt.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -289,7 +289,14 @@ enum MUTT_SAVE_OVERWRITE }; +/* used by init.h MuttVars and Commands dispatch functions */ /* possible arguments to set_quadoption() */ +union pointer_long_t +{ + void *p; + long l; +}; + enum { MUTT_NO, |