Re: [PATCH] Interpret YYDEBUG defined to zero as if it was undefined
"Todd C. Miller" <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 26 Feb 2015 15:22:49 -0500, David Michael wrote: > If YYDEBUG is undefined, it's defined to 0 in gram.h, but then > testsudoers.c tries to "#ifdef" it and gets unexpected results, which > later breaks linking. Can this test be made consistent with gram.c and > getdate.c which rely on undefined symbols evaluating to zero? YYDEBUG is not defined in the gram.h shipped with sudo, though perhaps bison puts it there. I'll just add: #ifndef YYDEBUG #define YYDEBUG 0 #endif to the top of testsudoers.c like gram.c and getdate.c, then we can use the #if YYDEBUG as you suggest. - todd ____________________________________________________________ sudo-workers mailing list <[email protected]> For list information, options, or to unsubscribe, visit: http://www.sudo.ws/mailman/listinfo/sudo-workers