lua: use float instead of double, reduces the gc data structure size by 4 byte => luci processes use 10% less memory

SVN-Revision: 18159
master
Felix Fietkau 15 years ago
parent 6a87d6682d
commit 6db489f1b0
  1. 2
      package/lua/Makefile
  2. 2
      package/lua/patches/010-lua-5.1.3-lnum-full-260308.patch

@ -83,7 +83,7 @@ endef
define Build/Configure
endef
TARGET_CFLAGS += -DLUA_USE_LINUX $(FPIC)
TARGET_CFLAGS += -DLUA_USE_LINUX $(FPIC) -std=gnu99
ifneq ($(CONFIG_USE_EGLIBC),)
ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),)

@ -1887,7 +1887,7 @@ Index: lua-5.1.4/src/lnum_config.h
+** Default number modes
+*/
+#if (!defined LNUM_DOUBLE) && (!defined LNUM_FLOAT) && (!defined LNUM_LDOUBLE)
+# define LNUM_DOUBLE
+# define LNUM_FLOAT
+#endif
+#if (!defined LNUM_INT16) && (!defined LNUM_INT32) && (!defined LNUM_INT64)
+# define LNUM_INT32

Loading…
Cancel
Save