From 910a28718325193a439bfc92225755776ff559d0 Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Sun, 22 Jan 2012 11:54:47 +1030 Subject: Remove ENABLE_CJSON_GLOBAL option Remove ENABLE_CJSON_GLOBAL option since it is not recommended or necessary and doesn't need to be discussed in the manual. --- CMakeLists.txt | 5 ----- Makefile | 1 - manual.txt | 2 -- 3 files changed, 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb598fe..c17239b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,6 @@ project(lua-cjson C) cmake_minimum_required(VERSION 2.6) -option(ENABLE_CJSON_GLOBAL "Register a global cjson module table - not recommended") option(USE_INTERNAL_FPCONV "Use internal strtod() / g_fmt() code for performance") option(MULTIPLE_THREADS "Support multi-threaded apps with internal fpconv - recommended" ON) @@ -19,10 +18,6 @@ endif() find_package(Lua51 REQUIRED) include_directories(${LUA_INCLUDE_DIR}) -if(ENABLE_CJSON_GLOBAL) - add_definitions(-DENABLE_CJSON_GLOBAL) -endif() - if(NOT USE_INTERNAL_FPCONV) # Use libc number conversion routines (strtod(), sprintf()) set(FPCONV_SOURCES fpconv.c) diff --git a/Makefile b/Makefile index bf06d73..931a2a3 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,5 @@ ##### Available defines for CJSON_CFLAGS ##### ## -## ENABLE_CJSON_GLOBAL: Register "cjson" module table as a global variable. ## USE_INTERNAL_ISINF: Workaround for Solaris platforms missing isinf(). ## DISABLE_INVALID_NUMBERS: Permanently disable invalid JSON numbers: ## NaN, Infinity, hex. diff --git a/manual.txt b/manual.txt index f46117e..addde14 100644 --- a/manual.txt +++ b/manual.txt @@ -138,8 +138,6 @@ issues, and enable non-default features. Some build methods may automatically set platform specific options if required. Other features should be enabled manually. -ENABLE_CJSON_GLOBAL:: Register +cjson+ module table as a global variable - (not recommended). USE_INTERNAL_ISINF:: Workaround for Solaris platforms missing +isinf+. DISABLE_INVALID_NUMBERS:: Recommended on platforms where +strtod+ / +sprintf+ are not POSIX compliant (eg, Windows MinGW). Prevents -- cgit v1.2.3