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.
This commit is contained in:
Todd C. Miller
2004-06-05 17:42:04 +00:00
parent 46e37d41a9
commit a99f53e2fa

6
sudo.h
View File

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