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
fscanf.c
gmtime.c
lapi.c
lapi.h
lauxlib.c
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
llex.c
llex.h
llimits.h
lmathlib.c
lmem.c
lmem.h
loadlib.c
lobject.c
lobject.h
lopcodes.c
lopcodes.h
loslib.c
lparser.c
lparser.h
lstate.c
lstate.h
lstring.c
lstring.h
lstrlib.c
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
luadir.c
luadir.h
lualib.h
lundump.c
lundump.h
lvm.c
lvm.h
lzio.c
lzio.h
Makefile
README lua: Switch memory allocator from dl to tlsf 2013-08-26 09:42:47 +02:00
rockaux.c
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
rocklib_aux.pl
rocklibc.h
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