diff options
author | Mark Pulford <mark@kyne.com.au> | 2011-12-30 14:17:44 +1030 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2011-12-30 14:17:44 +1030 |
commit | 2416b145073211b840781da6abf4b6d97f4657a6 (patch) | |
tree | 6e92a13a7cc8ef8357245bc3ef320f5841350991 /CMakeLists.txt | |
parent | 6cc88e3ac5275868e168acaf60203563f131355b (diff) | |
download | lua-cjson-2416b145073211b840781da6abf4b6d97f4657a6.tar.gz lua-cjson-2416b145073211b840781da6abf4b6d97f4657a6.tar.bz2 lua-cjson-2416b145073211b840781da6abf4b6d97f4657a6.zip |
Add fpconv to work around comma decimal points
Create a separate buffer and translate comma <> dot before calling
strtod(), and after calling sprintf() as required.
- Add "update_locale" Lua API call and init locale on module load.
- Move sprintf format string to fpconv
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 349342e..8d8a420 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -30,7 +30,7 @@ else() | |||
30 | set(_lua_module_dir "${_lua_lib_dir}/lua/5.1") | 30 | set(_lua_module_dir "${_lua_lib_dir}/lua/5.1") |
31 | endif() | 31 | endif() |
32 | 32 | ||
33 | add_library(cjson MODULE lua_cjson.c strbuf.c) | 33 | add_library(cjson MODULE lua_cjson.c strbuf.c fpconv.c) |
34 | set_target_properties(cjson PROPERTIES PREFIX "") | 34 | set_target_properties(cjson PROPERTIES PREFIX "") |
35 | install(TARGETS cjson DESTINATION "${_lua_module_dir}") | 35 | install(TARGETS cjson DESTINATION "${_lua_module_dir}") |
36 | 36 | ||