mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
18559, 18562: make modules use proper option arguments
This commit is contained in:
parent
c7a2d2225e
commit
1be7d4744d
11 changed files with 72 additions and 66 deletions
|
|
@ -955,10 +955,11 @@ struct funcwrap {
|
|||
/* Option was set as +X */
|
||||
#define OPT_PLUS(ops,c) ((ops)->ind[c] & 2)
|
||||
/*
|
||||
* Option was set any old how, maybe including an argument
|
||||
* (cheap test when we don't care).
|
||||
* Option was set any old how, maybe including an argument
|
||||
* (cheap test when we don't care). Some bits of code
|
||||
* expect this to be 1 or 0.
|
||||
*/
|
||||
#define OPT_ISSET(ops,c) ((ops)->ind[c])
|
||||
#define OPT_ISSET(ops,c) ((ops)->ind[c] != 0)
|
||||
/* Option has an argument */
|
||||
#define OPT_HASARG(ops,c) ((ops)->ind[c] > 3)
|
||||
/* The argument for the option; not safe if it doesn't have one */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue