summaryrefslogtreecommitdiff
path: root/tokenizer.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-08-30 12:14:04 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-08-30 12:14:04 -0400
commit1929fee97726344c0e83d74258ff27d0488770f9 (patch)
treebc1622766e2f4a1a670c576bfa32a25c9bc95338 /tokenizer.c
parent969a228777ca0f2f624618d48b7ed21e2c25ec29 (diff)
added array access lvalues
Diffstat (limited to 'tokenizer.c')
-rw-r--r--tokenizer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokenizer.c b/tokenizer.c
index a66129d..a8932e2 100644
--- a/tokenizer.c
+++ b/tokenizer.c
@@ -105,7 +105,7 @@ typedef struct {
-static bool token_is_kw(Token *t, Keyword kw) {
+static inline bool token_is_kw(Token *t, Keyword kw) {
return t->kind == TOKEN_KW && t->kw == kw;
}
@@ -149,7 +149,7 @@ static Token *tokr_add(Tokenizer *t) {
return token;
}
-static void tokr_nextchar(Tokenizer *t) {
+static inline void tokr_nextchar(Tokenizer *t) {
if (*(t->s) == '\n') {
t->line++;
}