Displaying 9 results from an estimated 9 matches for "liolib".
Did you mean:
liblib
2008 Dec 12
4
[PATCH 1/1] COM32: lua - enable (parts of) liolib
Hi again,
the attached patch (re-)enables parts of lua's liolib.c, especially
io.write() for formatted output (similar to printf() ):
Example:
-- define printf() function
printf = function(s,...)
return io.write(s:format(...))
end -- function
printf("Hallo, this is hex %04x\n", 64321)
Bye,
Marcel
-------------- next part ---...
2012 Sep 19
1
[PATCH 1/1] lua: Enabling io.read() in Lua.c32 with some restrictions
...tures.
3. io.read(bytes) is supported. However, io.read(0) will not be a valid
test for EOF due to the missing I/O buffering. io.read() will return nil if
EOF is encountered. This offers an alternative way to handle EOF.
Signed-off-by: Hung-chi Lihn <hlihn at google.com>
---
com32/lua/src/liolib.c | 40 +++++++++++++++++++++++++++++-----------
1 files changed, 29 insertions(+), 11 deletions(-)
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&q...
2013 Oct 15
23
[PATCH 00/21] Upgrade to Lua 5.2.2, add filesystem module and get_key binding
...c | 294 ++
com32/lua/src/lfunc.c | 81 +-
com32/lua/src/lfunc.h | 7 +-
com32/lua/src/lgc.c | 1410 ++++--
com32/lua/src/lgc.h | 159 +-
com32/lua/src/linit.c | 57 +-
com32/lua/src/liolib.c | 548 ++-
com32/lua/src/llex.c | 366 +-
com32/lua/src/llex.h | 27 +-
com32/lua/src/llimits.h | 221 +-
com32/lua/src/lmathlib.c | 98 +-
com32/lua/src/lmem.c | 45 +-
com32/lua/src/lmem....
2011 May 09
3
Lua.c32 - user input / scripting
I'm trying to get this bit of code to work with the lua.c32 interpreter:
--- sample, the goal is to build a script that will allow me to enter a 4digit
mt and load the bios iso accordingly
print ("enter machine type :")
mt = io.read()
print ("you entered...",mt)
doStuff()
if (mt == "8141") then
syslinux.run_command("memdisk
2016 Nov 20
2
[PATCH 0/2] improve Lua API for files and initramfs objects
hpa at zytor.com writes:
> On November 19, 2016 6:06:43 AM PST, wferi at niif.hu wrote:
>
>>"H. Peter Anvin" <hpa at zytor.com> writes:
>>
>>> On 11/10/16 04:38, Paul Emmerich via Syslinux wrote:
>>>
>>>> Ferenc W?gner <wferi at niif.hu>:
>>>>
>>>>> for reading configuration files from disk. Does it
2013 Oct 15
0
Upgrade to Lua 5.2.2, add filesystem module and get_key binding
...> com32/lua/src/lfunc.c | 81 +-
> com32/lua/src/lfunc.h | 7 +-
> com32/lua/src/lgc.c | 1410 ++++--
> com32/lua/src/lgc.h | 159 +-
> com32/lua/src/linit.c | 57 +-
> com32/lua/src/liolib.c | 548 ++-
> com32/lua/src/llex.c | 366 +-
> com32/lua/src/llex.h | 27 +-
> com32/lua/src/llimits.h | 221 +-
> com32/lua/src/lmathlib.c | 98 +-
> com32/lua/src/lmem.c | 4...
2014 Mar 02
3
pull request: upgrade to Lua 5.2.3, automatic Linux boot menu and cmenu binding
...| 296 +++
com32/lua/src/lfunc.c | 81 +-
com32/lua/src/lfunc.h | 7 +-
com32/lua/src/lgc.c | 1417 +++++++----
com32/lua/src/lgc.h | 159 +-
com32/lua/src/linit.c | 57 +-
com32/lua/src/liolib.c | 549 ++--
com32/lua/src/llex.c | 369 +--
com32/lua/src/llex.h | 27 +-
com32/lua/src/llimits.h | 221 +-
com32/lua/src/lmathlib.c | 98 +-
com32/lua/src/lmem.c | 45 +-
com32/lua/src/lme...
2014 Jan 28
3
[LLVMdev] MergeFunctions: reduce complexity to O(log(N))
Hi Stepan,
Sorry for the delay. It's great that you are working on MergeFunctions
as well and I agree, we should definitely try to combine our efforts to
improve MergeFunctions.
Just to give you some context, the pass (with the similar function
merging patch) is already being used in a production setting. From my
point of view, it would be better if we focus on improving its
capability
2014 Jan 30
3
[LLVMdev] MergeFunctions: reduce complexity to O(log(N))
...0 0.01 56038 0 0.02 56038
light.ll 17 23094 0 0.01 23065 0 0.01 23065
LimitedStreams.ll 28 76886 8 0.02 70249 8 0.01 68584
line.ll 1 1899 0 0.01 1870 0 0.01 1870
linemod.ll 1 50101 0 0.01 50072 0 0.01 50072
linit.ll 1 5624 0 0.01 5609 0 0.01 5609
linpack-pc.ll 13 145271 0 0.02 145253 0 0.02 145253
liolib.ll 41 84096 0 0.02 84081 0 0.01 84081
ListFileUtils.ll 8 79532 0 0.01 79505 0 0.01 79505
list.ll 2 7747 0 0.01 7725 0 0.01 7725
List.ll 20 323082 0 0.03 323046 0 0.03 320565
lists1.ll 88 152101 9 0.02 150705 3 0.02 151455
lists.ll 17 45370 0 0.01 45351 0 0.01 45351
literal.ll 1 12664 0 0.01 12646 0...