From 7a7313da7f56fa22f313277c305e564bb2af61d1 Mon Sep 17 00:00:00 2001 From: Nick Chambers Date: Sun, 26 Jun 2022 21:35:57 -0500 Subject: [PATCH] Make `is_sep` a public symbol --- include/gargoyle/twine.h | 5 +---- src/twine.c | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) 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 == '-'); }