[syslinux] [PATCH 1/1] COM32: lua - enable (parts of) liolib

Marcel Ritter Marcel.Ritter at rrze.uni-erlangen.de
Fri Dec 12 05:35:04 PST 2008


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 --------------
A non-text attachment was scrubbed...
Name: syslinux-lua-printf.diff
Type: text/x-patch
Size: 3871 bytes
Desc: not available
URL: <http://www.zytor.com/pipermail/syslinux/attachments/20081212/25bdbdb3/attachment.bin>


More information about the Syslinux mailing list