diff options
-rw-r--r-- | lua_json.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -343,7 +343,7 @@ static void json_process_value(lua_State *l, json_parse_t *json, json_token_t *t | |||
343 | static json_token_type_t json_ch2token[256]; | 343 | static json_token_type_t json_ch2token[256]; |
344 | static char json_ch2escape[256]; | 344 | static char json_ch2escape[256]; |
345 | 345 | ||
346 | static void json_init_lookup_tables() | 346 | void lua_json_global_init() |
347 | { | 347 | { |
348 | int i; | 348 | int i; |
349 | 349 | ||
@@ -693,8 +693,6 @@ void lua_json_init(lua_State *l) | |||
693 | { NULL, NULL } | 693 | { NULL, NULL } |
694 | }; | 694 | }; |
695 | 695 | ||
696 | json_init_lookup_tables(); | ||
697 | |||
698 | luaL_register(l, "json", reg); | 696 | luaL_register(l, "json", reg); |
699 | 697 | ||
700 | /* Set json.null, and pop "json" table from the stack */ | 698 | /* Set json.null, and pop "json" table from the stack */ |