aboutsummaryrefslogtreecommitdiff
path: root/interpreter/lex.c
diff options
context:
space:
mode:
authorCamil Staps2018-04-03 19:53:08 +0200
committerCamil Staps2018-04-03 19:53:08 +0200
commit4ecf8f54cd0ea04fa39469f5f7ea021e15c5e178 (patch)
tree59329b47453f613894c305549387ba8d7742cf0a /interpreter/lex.c
parentResolve #5: list notation shortcut in patterns (diff)
Fix some minor bugs
Diffstat (limited to 'interpreter/lex.c')
-rw-r--r--interpreter/lex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/interpreter/lex.c b/interpreter/lex.c
index 497ee8e..c33d816 100644
--- a/interpreter/lex.c
+++ b/interpreter/lex.c
@@ -5,11 +5,11 @@
#include "mem.h"
-inline bool is_space_char(char input) {
+static inline bool is_space_char(char input) {
return input == '\t' || input == ' ' || input == '\n' || input == '\r';
}
-inline bool is_int_char(char input) {
+static inline bool is_int_char(char input) {
return '0' <= input && input <= '9';
}
@@ -20,7 +20,7 @@ unsigned char lex_int_length(char *input) {
return n;
}
-inline bool is_name_char(char input) {
+static inline bool is_name_char(char input) {
return (('A' <= input && input <= 'Z') ||
('a' <= input && input <= 'z') ||
input == '_');