diff options
| author | Mark Pulford <mark@kyne.com.au> | 2011-12-31 17:02:12 +1030 |
|---|---|---|
| committer | Mark Pulford <mark@kyne.com.au> | 2011-12-31 17:02:12 +1030 |
| commit | 5dd3207e5fda2f8f502a8a2f32f5484ea3f758b5 (patch) | |
| tree | 254c1ed1584ba289b08c836090738b7b5d028e91 /lua_cjson.c | |
| parent | 0637fcaf549ce120efa541c8d7445cb36c30e53f (diff) | |
| download | lua-cjson-5dd3207e5fda2f8f502a8a2f32f5484ea3f758b5.tar.gz lua-cjson-5dd3207e5fda2f8f502a8a2f32f5484ea3f758b5.tar.bz2 lua-cjson-5dd3207e5fda2f8f502a8a2f32f5484ea3f758b5.zip | |
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 '')
| -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) | |||
| 344 | return 1; | 344 | return 1; |
| 345 | } | 345 | } |
| 346 | 346 | ||
| 347 | static int json_update_locale(lua_State *l) | ||
| 348 | { | ||
| 349 | fpconv_update_locale(); | ||
| 350 | |||
| 351 | return 0; | ||
| 352 | } | ||
| 353 | |||
| 354 | static int json_destroy_config(lua_State *l) | 347 | static int json_destroy_config(lua_State *l) |
| 355 | { | 348 | { |
| 356 | json_config_t *cfg; | 349 | json_config_t *cfg; |
| @@ -1284,7 +1277,6 @@ static int lua_cjson_new(lua_State *l) | |||
| 1284 | { "encode_number_precision", json_cfg_encode_number_precision }, | 1277 | { "encode_number_precision", json_cfg_encode_number_precision }, |
| 1285 | { "encode_keep_buffer", json_cfg_encode_keep_buffer }, | 1278 | { "encode_keep_buffer", json_cfg_encode_keep_buffer }, |
| 1286 | { "refuse_invalid_numbers", json_cfg_refuse_invalid_numbers }, | 1279 | { "refuse_invalid_numbers", json_cfg_refuse_invalid_numbers }, |
| 1287 | { "update_locale", json_update_locale }, | ||
| 1288 | { "new", lua_cjson_new }, | 1280 | { "new", lua_cjson_new }, |
| 1289 | { NULL, NULL } | 1281 | { NULL, NULL } |
| 1290 | }; | 1282 | }; |
