From a99f53e2fa2333e56f4e6a14b45135a88f376399 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 5 Jun 2004 17:42:04 +0000 Subject: [PATCH] Add NOMATCH and UNSPEC defines (-1 and -2 respectively) and use these in parse.yacc. Also in parse.yacc initialize the *_matches vars to UNSPEC and add two macros, SETMATCH and SETNMATCH for use when setting *_matches to a value that may be NOMATCH/UNSPEC/TRUE/FALSE. --- sudo.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sudo.h b/sudo.h index 18b7736b8..2d21bccd2 100644 --- a/sudo.h +++ b/sudo.h @@ -65,12 +65,16 @@ struct sudo_user { #define FLAG_NOEXEC 0x200 /* - * Boolean values + * Pseudo-boolean values */ #undef TRUE #define TRUE 1 #undef FALSE #define FALSE 0 +#undef NOMATCH +#define NOMATCH -1 +#undef UNSPEC +#define UNSPEC -2 /* * find_path()/load_cmnd() return values