rockbox/apps/plugins/lua
Marcin Bukat a2a2e14e0d lua: Switch memory allocator from dl to tlsf
Instead of providing yet another memory allocator implementation
use tlsf and simply link tlsf library.

Another small improvement is to *grow* memory pool by grabbing
audiobuffer instead of just switching to use audiobuf exclusively.
Tested with simple lua 'memory eater' script.

This patch extends tlsf lib slightly. You can provide
void *get_new_area(size_t * size) function which will override
weak dummy implementation provided in lib itself. This allows to
automaticaly initialize memory pool as well as grow memory
pool if needed (for example grab audiobuffer when pluginbuffer
is exhaused).

Change-Id: I841af6b6b5bbbf546c14cbf139a7723fbb982f1b
2013-08-26 09:42:47 +02:00
..
action_helper.pl Lua: Add pluginlib_actions wrapper for lua scripts. 2012-01-27 09:15:05 +01:00
button_helper.pl Lua: always expose BUTTON_TOUCHSCREEN and remove BUTTON_ constants from rocklib.c 2009-07-03 23:03:07 +00:00
fscanf.c Lua fscanf: use pointer of file descriptor instead of file descriptor itself to avoid 64-bit pointer<->int clash (aka fix yellow). 2010-02-13 14:51:38 +00:00
gmtime.c Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes). 2010-05-06 21:04:40 +00:00
lapi.c
lapi.h
lauxlib.c Lua: add the package library 2009-06-25 13:26:05 +00:00
lauxlib.h
lbaselib.c
lbitlib.c Make lbitlib.c include its own header (for the luaopen_bit prototype) 2012-05-19 01:19:20 +02:00
lcode.c
lcode.h
ldebug.c
ldebug.h
ldo.c
ldo.h
ldump.c
lfunc.c
lfunc.h
lgc.c
lgc.h
liolib.c Make open() posix compliant api-wise. A few calls (those with O_CREAT) need the additional optional mode parameter so add it. Impact for the core is almost zero, as open() is a wrapper macro for the real open function which doesn't take the variable parameter. 2010-05-06 17:35:13 +00:00
llex.c
llex.h
llimits.h
lmathlib.c Lua: add parts of the math library (all floating point functions are #ifdef'ed out) 2009-10-23 10:49:55 +00:00
lmem.c
lmem.h
loadlib.c Lua: because Rockbox doesn't support any current working directory functionality, 'hack' loadlib so it replace '$' in LUA_PATH_DEFAULT with the directory wherein the current script is. 2009-07-01 17:01:22 +00:00
lobject.c Revert r21863 partly: fixes Lua 2009-07-15 15:16:55 +00:00
lobject.h
lopcodes.c
lopcodes.h
loslib.c Fix two warnings that appear with gcc4.4.3. The one in recording.c ("compact_view is used uninitialized" seems to be false positive unfortunately). 2010-03-08 23:56:54 +00:00
lparser.c
lparser.h
lstate.c
lstate.h
lstring.c
lstring.h
lstrlib.c Revert r21863 partly: fixes Lua 2009-07-15 15:16:55 +00:00
ltable.c
ltable.h
ltablib.c
ltm.c
ltm.h
lua.h
lua.make lua: Switch memory allocator from dl to tlsf 2013-08-26 09:42:47 +02:00
luaconf.h Lua: implement the ^ and % operators 2009-07-27 16:06:51 +00:00
luadir.c Ged rid of uisimulator/common/io.c for android builds. 2010-09-01 21:29:34 +00:00
luadir.h FS#11347 by me: *dir LUA functions: luadir module 2010-06-18 13:10:14 +00:00
lualib.h
lundump.c
lundump.h
lvm.c
lvm.h
lzio.c
lzio.h
Makefile FS#12144, Use -fPIC -fvisibility=hidden only for plugins on sim and app builds and enable it for 32 bit too. Fixes linking errors on simbuilds. 2011-06-07 11:56:23 +00:00
README lua: Switch memory allocator from dl to tlsf 2013-08-26 09:42:47 +02:00
rockaux.c Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with #if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently). 2010-06-21 16:53:00 +00:00
rockconf.h lua: Switch memory allocator from dl to tlsf 2013-08-26 09:42:47 +02:00
rocklib.c lua: Switch memory allocator from dl to tlsf 2013-08-26 09:42:47 +02:00
rocklib.h Lua: because Rockbox doesn't support any current working directory functionality, 'hack' loadlib so it replace '$' in LUA_PATH_DEFAULT with the directory wherein the current script is. 2009-07-01 17:01:22 +00:00
rocklib_aux.pl FS#11347 by me: *dir LUA functions: luadir module 2010-06-18 13:10:14 +00:00
rocklibc.h Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with #if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently). 2010-06-21 16:53:00 +00:00
rocklua.c lua: Switch memory allocator from dl to tlsf 2013-08-26 09:42:47 +02:00
SOURCES lua: Switch memory allocator from dl to tlsf 2013-08-26 09:42:47 +02:00
strcspn.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
strftime.c
strncat.c
strpbrk.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
strstr.c
strtol.c
strtoul.c
tlsf_helper.c lua: Switch memory allocator from dl to tlsf 2013-08-26 09:42:47 +02:00

The following files are (with slight modifications for Rockbox) from dietlibc
version 0.31 which is licensed under the GPL version 2:

    gmtime.c
    strcspn.c
    strftime.c
    strncat.c
    strpbrk.c
    strtol.c
    strtoul.c
    strstr.c