X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/11b192127cac086338bfaa43f3bab3acda8e3a20..06ec0105b12cdfa2994283e345154e6720354808:/src/system.h?ds=inline diff --git a/src/system.h b/src/system.h index 0395a0c0..987ebe2a 100644 --- a/src/system.h +++ b/src/system.h @@ -55,6 +55,10 @@ #include #include +#define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array)) +#define STREQ(L, R) (strcmp(L, R) == 0) +#define STRNEQ(L, R) (!STREQ(L, R)) + #ifndef UINTPTR_MAX /* This isn't perfect, but it's good enough for Bison, which needs only to hash pointers. */ @@ -220,8 +224,6 @@ typedef size_t uintptr_t; (obstack_1grow (Obs, '\0'), (char *) obstack_finish (Obs)) - - /*-----------------------------------------. | Extensions to use for the output files. | `-----------------------------------------*/