X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=dict.h;h=d5aa1cd529ad8fad71a21658811c3e40177e9305;hb=54a35ad5a96cc57816a9e05ab9d1e1513c202894;hp=ca0e6f6e9a209efe442a3ea8083e0d2480cc7e1b;hpb=7787438f3c3844ab9597320213f5bd19bc6426e1;p=wordgame diff --git a/dict.h b/dict.h index ca0e6f6..d5aa1cd 100644 --- a/dict.h +++ b/dict.h @@ -70,7 +70,9 @@ dict_count (dict_t *dict, /* Querying a dictionary entry. The dict interface uses 1 bit. * All of the remaining bits are available for application use. */ -#define DICT_ENTRY_IS_WORD(entry) ((entry) && ((*entry) & 0x01)) +#define DICT_ENTRY_FLAG_IS_WORD (1<<0) + +#define DICT_ENTRY_IS_WORD(entry) ((entry) && ((*entry) & DICT_ENTRY_FLAG_IS_WORD)) /* Printing the dictionary */ int