2020-06-24 10:19:32 +02:00
|
|
|
From 553bb913c4b384e4ab33cee105bfe18bac6f2e5a Mon Sep 17 00:00:00 2001
|
2018-03-28 17:45:53 +02:00
|
|
|
From: Juan Carrano <j.carrano@fu-berlin.de>
|
|
|
|
Date: Thu, 3 May 2018 16:55:05 +0200
|
2020-06-24 10:19:32 +02:00
|
|
|
Subject: [PATCH 2/7] Allow LUAL_BUFFERSIZE to be defined in the command line.
|
2018-03-28 17:45:53 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
luaconf.h | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/luaconf.h b/luaconf.h
|
|
|
|
index 118f997a..e816db00 100644
|
|
|
|
--- a/luaconf.h
|
|
|
|
+++ b/luaconf.h
|
|
|
|
@@ -748,12 +748,16 @@
|
|
|
|
** smaller buffer would force a memory allocation for each call to
|
|
|
|
** 'string.format'.)
|
|
|
|
*/
|
|
|
|
+#ifndef LUAL_BUFFERSIZE
|
|
|
|
+
|
|
|
|
#if LUA_FLOAT_TYPE == LUA_FLOAT_LONGDOUBLE
|
|
|
|
#define LUAL_BUFFERSIZE 8192
|
|
|
|
#else
|
|
|
|
#define LUAL_BUFFERSIZE ((int)(0x80 * sizeof(void*) * sizeof(lua_Integer)))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
/* }================================================================== */
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2020-06-24 10:19:32 +02:00
|
|
|
2.25.1
|
2018-03-28 17:45:53 +02:00
|
|
|
|