diff --git a/include/gargoyle/twine.h b/include/gargoyle/twine.h index 4d997c0..dc814cb 100644 --- a/include/gargoyle/twine.h +++ b/include/gargoyle/twine.h @@ -3,10 +3,7 @@ #include -static const uint8_t GARGOYLE_CMP_ICASE = 1 << 0; -static const uint8_t GARGOYLE_CMP_SYMBL = 1 << 1; -static const uint8_t GARGOYLE_CMP_FLXBL = GARGOYLE_CMP_ICASE | GARGOYLE_CMP_SYMBL; - +uint8_t is_sep(char tok); uint8_t gargoyle_cmp(const char *s1, const char *s2, uint16_t len, uint8_t flags); char *gargoyle_cpy(char *dst, const char *src, uint16_t len); diff --git a/src/twine.c b/src/twine.c index 6791fc6..a239f39 100644 --- a/src/twine.c +++ b/src/twine.c @@ -1,7 +1,7 @@ #include #include -static uint8_t is_sep(char tok) { +uint8_t is_sep(char tok) { return (tok == '_' || tok == '-'); }