From 1be7d4744d25d29b46f4a0b87a02cd9600ee6b74 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 22 May 2003 09:48:25 +0000 Subject: 18559, 18562: make modules use proper option arguments --- Src/zsh.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Src/zsh.h') diff --git a/Src/zsh.h b/Src/zsh.h index 1733ce9bc..16558c3d3 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -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 */ -- cgit 1.4.1