mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 01:01:52 +02:00
lua: use float instead of double, reduces the gc data structure size by 4 byte => luci processes use 10% less memory
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18159 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
27e64f8be8
commit
9529774bd5
@ -83,7 +83,7 @@ endef
|
|||||||
define Build/Configure
|
define Build/Configure
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += -DLUA_USE_LINUX $(FPIC)
|
TARGET_CFLAGS += -DLUA_USE_LINUX $(FPIC) -std=gnu99
|
||||||
|
|
||||||
ifneq ($(CONFIG_USE_EGLIBC),)
|
ifneq ($(CONFIG_USE_EGLIBC),)
|
||||||
ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),)
|
ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),)
|
||||||
|
@ -1887,7 +1887,7 @@ Index: lua-5.1.4/src/lnum_config.h
|
|||||||
+** Default number modes
|
+** Default number modes
|
||||||
+*/
|
+*/
|
||||||
+#if (!defined LNUM_DOUBLE) && (!defined LNUM_FLOAT) && (!defined LNUM_LDOUBLE)
|
+#if (!defined LNUM_DOUBLE) && (!defined LNUM_FLOAT) && (!defined LNUM_LDOUBLE)
|
||||||
+# define LNUM_DOUBLE
|
+# define LNUM_FLOAT
|
||||||
+#endif
|
+#endif
|
||||||
+#if (!defined LNUM_INT16) && (!defined LNUM_INT32) && (!defined LNUM_INT64)
|
+#if (!defined LNUM_INT16) && (!defined LNUM_INT32) && (!defined LNUM_INT64)
|
||||||
+# define LNUM_INT32
|
+# define LNUM_INT32
|
||||||
|
Loading…
Reference in New Issue
Block a user