X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/6e30ede87a1c39c53842a6a747ecd9f7484d92a5..63951be29fcb8e21146a9377176d53d509c575ca:/src/uniqstr.h?ds=inline diff --git a/src/uniqstr.h b/src/uniqstr.h index 757128fc..677ecc42 100644 --- a/src/uniqstr.h +++ b/src/uniqstr.h @@ -1,7 +1,6 @@ /* Keeping a unique copy of strings. - Copyright (C) 2002, 2003, 2008, 2009, 2010 Free Software - Foundation, Inc. + Copyright (C) 2002-2003, 2008-2012 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -37,7 +36,7 @@ uniqstr uniqstr_vsprintf (char const *format, ...) __attribute__ ((__format__ (__printf__, 1, 2))); /* Two uniqstr values have the same value iff they are the same. */ -#define UNIQSTR_EQ(USTR1, USTR2) ((USTR1) == (USTR2)) +#define UNIQSTR_EQ(USTR1, USTR2) (!!((USTR1) == (USTR2))) /* Compare two uniqstr a la strcmp: negative for <, nul for =, and positive for >. Undefined order, relies on addresses. */