Whitespace tags

This commit is contained in:
Wilson Lin 2018-07-06 09:59:49 +12:00
parent e7e5761249
commit 0badaac1f1
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
#ifndef _HDR_HYPERBUILD_RULE_WSSTAGS
#define _HDR_HYPERBUILD_RULE_WSSTAGS
#include "../../ext/nicehash/set/str.h"
#include "../../util/hbchar.h"
static nh_set_str_t hb_r_wsstags_set;
void hb_r_wsstags_init(void) {
hb_r_wsstags_set = nh_set_str_create();
nh_set_str_add(hb_r_wsstags_set, "code");
nh_set_str_add(hb_r_wsstags_set, "pre");
}
int hb_r_wsstags_check(hb_char_t *tag) {
return nh_set_str_has(hb_r_wsstags_set, (char *) tag);
}
#endif // _HDR_HYPERBUILD_RULE_WSSTAGS