X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/796a2b0ab07c4cb7f7885bfa3f3f823835d537b1..12cf133f348392750f808bec0d188bac58bff2bd:/src/uniqstr.h?ds=sidebyside diff --git a/src/uniqstr.h b/src/uniqstr.h index c986df07..04600e94 100644 --- a/src/uniqstr.h +++ b/src/uniqstr.h @@ -1,6 +1,6 @@ /* Keeping a unique copy of strings. - Copyright (C) 2002, 2003, 2008 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2008, 2009 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -32,8 +32,8 @@ uniqstr uniqstr_new (char const *str); /* Two uniqstr values have the same value iff they are the same. */ #define UNIQSTR_EQ(USTR1, USTR2) ((USTR1) == (USTR2)) -/* Compare two uniqstr a la strlen: negative for <, nul for =, and - positive for >. */ +/* Compare two uniqstr a la strcmp: negative for <, nul for =, and + positive for >. Undefined order, relies on addresses. */ #define UNIQSTR_CMP(USTR1, USTR2) ((USTR1) - (USTR2)) /*--------------------------------------.