From e23811d884b9dae356c84e4515ef52184aa3432c Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Sat, 2 Mar 2019 10:33:53 +0100 Subject: statics.. --- src/tokenize.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/tokenize.h') diff --git a/src/tokenize.h b/src/tokenize.h index ff82dee..4592ac9 100644 --- a/src/tokenize.h +++ b/src/tokenize.h @@ -1,7 +1,9 @@ #ifndef SKHD_TOKENIZE_H #define SKHD_TOKENIZE_H -static const char *modifier_flags_str[] = +#define global static + +global const char *modifier_flags_str[] = { "alt", "lalt", "ralt", "shift", "lshift", "rshift", @@ -10,7 +12,7 @@ static const char *modifier_flags_str[] = "fn", "hyper", "meh", }; -static const char *literal_keycode_str[] = +global const char *literal_keycode_str[] = { "return", "tab", "space", "backspace", "escape", "delete", @@ -31,6 +33,8 @@ static const char *literal_keycode_str[] = "brightness_down", "illumination_up", "illumination_down" }; +#undef global + enum token_type { Token_Identifier, -- cgit v1.2.3