Displaying 2 results from an estimated 2 matches for "read_number".
2012 Sep 19
1
[PATCH 1/1] lua: Enabling io.read() in Lua.c32 with some restrictions
...s(-)
diff --git a/com32/lua/src/liolib.c b/com32/lua/src/liolib.c
index 3f27395..cf9dca2 100644
--- a/com32/lua/src/liolib.c
+++ b/com32/lua/src/liolib.c
@@ -18,12 +18,18 @@
 #include "lauxlib.h"
 #include "lualib.h"
-
+#ifdef SYSLINUX
+  #define NO_TMP_FILE    1
+  #define NO_READ_NUMBER 1
+  #define NO_TEST_EOF    1
+  #define NO_CLEAR_ERR   1
+  #define NO_F_SEEK      1
+  #define NO_F_SETVBUF   1
+#endif
 #define IO_INPUT       1
 #define IO_OUTPUT      2
-
 static const char *const fnames[] = {"input", "output"};
@@ -180,7 +186,7 @@ static int io_popen (...
2013 Oct 15
23
[PATCH 00/21] Upgrade to Lua 5.2.2, add filesystem module and get_key binding
Hi,
This series targets automatic boot menu generation, but most of it
is the Lua upgrade, because I got tired reading deprecated API docs.
It's mostly a straightforward forward port of the earlier Syslinux
specific changes to Lua 5.1, except that:
 * I chose the add a stub getenv() implementation to the COM32 API
   instead of #ifdefing out all the references in Lua, and
 * I kept oslib