aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lua
Commit message (Collapse)AuthorAgeFilesLines
* lua: simplify the function/value handling in the automenu testFerenc Wágner2014-10-131-10/+7
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: move the automenu test from the boot_linux to the boot_it bindingFerenc Wágner2014-10-131-5/+18
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: return the modified object from the initramfs methodsFerenc Wágner2014-10-132-4/+8
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: docs: refresh and extend the documentationFerenc Wágner2014-10-131-128/+93
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: initramfs: enable adding nonempty filesFerenc Wágner2014-10-131-4/+11
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: don't do a local boot when asked to final_cleanupFerenc Wágner2014-10-131-2/+1
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: do not leak initramfs data chunks on garbage collectionFerenc Wágner2014-10-131-0/+16
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: make initramfs structures full userdata objects with methodsFerenc Wágner2014-10-131-25/+43
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: unused optional arguments can goFerenc Wágner2014-10-121-10/+0
| | | | | | Not expecting them does not cause any problems, they are ignored by Lua anyway. Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: make the file operations methodsFerenc Wágner2014-10-121-2/+7
| | | | | | This also enables manual unloading of files by callig f:__gc(). Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: garbage collect file objectsFerenc Wágner2014-10-121-0/+15
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: represent syslinux files as full userdataFerenc Wágner2014-10-121-21/+13
| | | | | | | | | Light userdata don't have individual metatables, thus they aren't suitable for type checking. Also, a200ad6d replaced relying on reused memory (from luaL_checkstring) with writing to uninitialized pointers; copy the filename instead into freshly allocated memory. Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: Remove even more cruft from syslinux.cFerenc Wágner2014-10-121-44/+2
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: docs: condense the PCI exampleFerenc Wágner2014-10-111-29/+6
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: docs: remove printf from loadfile exampleFerenc Wágner2014-10-111-10/+3
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: docs: loadfile() is not TFTP-specificFerenc Wágner2014-10-111-1/+1
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: docs: remove overall indentation and some verbose cruft from the examplesFerenc Wágner2014-10-111-104/+99
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: docs: bring documentation up to dateFerenc Wágner2014-10-111-31/+42
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: vesa: delete stray would-be-debug outputFerenc Wágner2014-10-111-2/+0
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: docs: add new bindings to syslinux.ascFerenc Wágner2014-10-111-1/+21
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: docs: do not reference removed exampleFerenc Wágner2014-10-111-1/+0
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: share the export macro (CPP only change)Ferenc Wágner2014-10-111-39/+39
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: add the IMAGE_TYPE table to the syslinux moduleFerenc Wágner2014-10-111-0/+13
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: make kernel and initrd progress output match in sl_boot_linuxFerenc Wágner2014-10-111-4/+4
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: Remove additional old cruft from sl_boot_linux()syslinux-6.03-pre9H. Peter Anvin2014-03-131-4/+0
| | | | | | More obsolete cruft... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* lua: Remove obsolete crap from sl_boot_linux()syslinux-6.03-pre8H. Peter Anvin2014-03-131-29/+0
| | | | | | sl_boot_linux() contained a bunch of random obsolete garbage. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* lua: In sl_initramfs_add_file(), actually use the real file nameH. Peter Anvin2014-03-131-3/+3
| | | | | | Instead of "/testfile1", actually use the real file name... Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* lua: replace the syslinux module test with an automatic boot menu generatorsyslinux-6.03-pre6Ferenc Wágner2014-03-021-0/+152
|
* lua: base the package load paths on the Syslinux pathFerenc Wágner2014-03-022-2/+35
|
* lua: upgrade to 5.2.3Ferenc Wágner2014-03-0263-107/+160
|
* lua: add demo of the cmenu binding (the simple example)Ferenc Wágner2014-03-021-0/+34
|
* lua: start of a binding module for libmenu.c32Ferenc Wágner2014-03-022-0/+94
|
* lua: make the dmi module standaloneFerenc Wágner2014-03-012-4/+14
| | | | | | By copying two short functions from the cpu module. They do not warrant a separate module. Also make those functions static in both modules.
* lua: also reactivate the cpu, dhcp, dmi, pci and vesa extension modulesFerenc Wágner2014-03-017-8/+19
| | | | And document the change in usage.
* lua: bind get_key() in the syslinux moduleFerenc Wágner2014-03-011-0/+49
|
* lua: reactivate the syslinux extension moduleFerenc Wágner2014-03-012-2/+3
| | | | | Under Lua 5.2 modules are not expected to set global variables to reduce namespace pollution. Explicit require() is preferred.
* lua: add the LuaFileSystem libraryFerenc Wágner2014-03-012-0/+297
|
* lua: enable dynamic module loadingFerenc Wágner2014-03-012-0/+48
|
* lua: the COM32 API does not support freopen()Ferenc Wágner2014-03-011-0/+2
| | | | Nor the concept of text vs. binary open mode, so it does not matter.
* lua: the COM32 API does not support time()Ferenc Wágner2014-03-011-0/+5
|
* lua: the COM32 API actually supports exit() of oslibFerenc Wágner2014-03-012-1/+11
|
* lua: the COM32 API supports only part of iolibFerenc Wágner2014-03-012-0/+25
|
* lua: the COM32 API does not provide strcoll()Ferenc Wágner2014-03-011-0/+3
|
* lua: use integer arithmeticFerenc Wágner2014-03-016-11/+94
|
* lua: the COM32 API does not provide locale.hFerenc Wágner2014-03-011-0/+4
|
* lua: explicitly put the console in standard modeFerenc Wágner2014-03-011-0/+4
|
* lua: the COM32 API does not provide signal.hFerenc Wágner2014-03-011-0/+6
|
* lua: replace src/Makefile to build Lua as a Syslinux COM32 moduleFerenc Wágner2014-03-011-172/+49
| | | | | | | | Start with the src/Makefile in Syslinux before importing Lua 5.2.2. Refresh the core Lua object list based on the original Makefile. Add the new builtin library objects. Temporarily remove the Syslinux extension library objects, as they need adjustments for the new API.
* lua: import Lua 5.2.2Ferenc Wágner2014-03-01115-10901/+14357
| | | | | | Source downloaded from http://www.lua.org/ftp/lua-5.2.2.tar.gz. The com32/lua directory now matches exactly the source distribution, plus the various Syslinux extension modules and their documentation.
* com32sys_t inreg shall be zeroified prior intcallErwan Velu2014-01-221-1/+2
| | | | | | | | | | | As per commit f775e740a3a817a4ff5ba26bea99dbfd735456b3, inreg parameters of intcall() shall be zeroified. Having unclean inreg could trigger bad behaviors on some hosts. This patch is about adding memset() calls prior any intcall() : - some intcall didn't had any memset at all - some successive intcall() calls didn't memset inreg in between calls