aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkoekeishiya <aasvi93@hotmail.com>2017-08-24 13:41:38 +0200
committerkoekeishiya <aasvi93@hotmail.com>2017-08-24 13:41:38 +0200
commit4608e2a71db8d9945d9eb0707ce6098e52f41b64 (patch)
tree7473c86d247a932d987a7755c9493f94a81dc2f0
parentd6bcc6167b79814171071406161a3f5d57a8cf42 (diff)
downloadskhd-4608e2a71db8d9945d9eb0707ce6098e52f41b64.tar.gz
skhd-4608e2a71db8d9945d9eb0707ce6098e52f41b64.zip
#2 export function
-rw-r--r--src/tokenize.c3
-rw-r--r--src/tokenize.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tokenize.c b/src/tokenize.c
index 822bc70..28a5336 100644
--- a/src/tokenize.c
+++ b/src/tokenize.c
@@ -3,8 +3,7 @@
#include <ctype.h>
-internal int
-token_equals(struct token token, const char *match)
+int token_equals(struct token token, const char *match)
{
const char *at = match;
for(int i = 0; i < token.length; ++i, ++at) {
diff --git a/src/tokenize.h b/src/tokenize.h
index 1c3141a..a6a429d 100644
--- a/src/tokenize.h
+++ b/src/tokenize.h
@@ -63,5 +63,6 @@ struct tokenizer
void tokenizer_init(struct tokenizer *tokenizer, char *buffer);
struct token get_token(struct tokenizer *tokenizer);
struct token peek_token(struct tokenizer tokenizer);
+int token_equals(struct token token, const char *match);
#endif