version 1.30, 2020/03/21 00:17:31 |
version 1.31, 2020/04/02 22:12:55 |
Line 176 tag_put(const char *s, int prio, struct roff_node *n) |
|
Line 176 tag_put(const char *s, int prio, struct roff_node *n) |
|
} |
} |
} |
} |
|
|
enum tag_result |
int |
tag_check(const char *test_tag) |
tag_exists(const char *tag) |
{ |
{ |
unsigned int slot; |
return ohash_find(&tag_data, ohash_qlookup(&tag_data, tag)) != NULL; |
|
|
if (ohash_first(&tag_data, &slot) == NULL) |
|
return TAG_EMPTY; |
|
else if (test_tag != NULL && ohash_find(&tag_data, |
|
ohash_qlookup(&tag_data, test_tag)) == NULL) |
|
return TAG_MISS; |
|
else |
|
return TAG_OK; |
|
} |
} |