diff options
author | Mark Pulford <mark@kyne.com.au> | 2011-12-31 10:32:12 +0400 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2011-12-31 10:32:12 +0400 |
commit | 5dd3207e5fda2f8f502a8a2f32f5484ea3f758b5 (patch) | |
tree | 254c1ed1584ba289b08c836090738b7b5d028e91 /lua_cjson.c | |
parent | 0637fcaf549ce120efa541c8d7445cb36c30e53f (diff) |
Remove "update_locale" Lua function
Only update the locale when the module is initialised.
cjson.new() can be used if the locale changes part way
through program execution.
Diffstat (limited to 'lua_cjson.c')
-rw-r--r-- | lua_cjson.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lua_cjson.c b/lua_cjson.c index 3a40e9a..e458fc3 100644 --- a/lua_cjson.c +++ b/lua_cjson.c @@ -344,13 +344,6 @@ static int json_cfg_refuse_invalid_numbers(lua_State *l) return 1; } -static int json_update_locale(lua_State *l) -{ - fpconv_update_locale(); - - return 0; -} - static int json_destroy_config(lua_State *l) { json_config_t *cfg; @@ -1284,7 +1277,6 @@ static int lua_cjson_new(lua_State *l) { "encode_number_precision", json_cfg_encode_number_precision }, { "encode_keep_buffer", json_cfg_encode_keep_buffer }, { "refuse_invalid_numbers", json_cfg_refuse_invalid_numbers }, - { "update_locale", json_update_locale }, { "new", lua_cjson_new }, { NULL, NULL } }; |