summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rockaux.c (follow)
Commit message (Collapse)AuthorAge
* Lua replace fscanfWilliam Wilgus2018-10-29
| | | | | | | | | | | | | | | | | | | | | | Rocklua was using the full fscanf implementation to simply read %ld for the file:read("*n") function wasting 1k on unneeded/unused functionality Instead, I've implemented a filetol function to duplicate it without the extra overhead using strtol which as an added bonus ERANGE errors now resolve to LONG_MIN and LONGMAX instead of integer overflow filetol() reads long int from an open file, skips preceding whitespaces returns -1 if error, 1 on success. *num set to LONG_MAX or LONG_MIN on overflow. If number of digits is > than LUAI_MAXNUMBER2STR filepointer will continue till the next non digit but buffer will stop being filled with characters. Preceding zero is ignored. Change-Id: Ia42d0f73c63a894625bca4581e9b7e1cc7387fd2
* Lua remove gmtime.c use rb_plugin version insteadWilliam Wilgus2018-10-28
| | | | Change-Id: Ia6d47a13ec8ae407661a78c56513ac0c164216da
* lua optimize current_path functionWilliam Wilgus2018-10-15
| | | | | | frees up around 500 bytes by using the builtin string functionality Change-Id: Icd4ec921d3fec339b8a4b7f80c9c63d51d4c101c
* Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with ↵Thomas Martitz2010-06-21
| | | | | | | | | | | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently). The simulator defines PLATFORM_HOSTED, as RaaA will do (RaaA will not define SIMULATOR). The new define is to (de-)select code to compile on hosted platforms generally. Should be no functional change to targets or the simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27019 a1c6a512-1295-4272-9138-f99709370657
* Make the sim buildable with mingw againFrank Gevaerts2010-05-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26037 a1c6a512-1295-4272-9138-f99709370657
* Lua: implement the ^ and % operatorsMaurus Cuelenaere2009-07-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22070 a1c6a512-1295-4272-9138-f99709370657
* Lua: because Rockbox doesn't support any current working directory ↵Maurus Cuelenaere2009-07-01
| | | | | | functionality, 'hack' loadlib so it replace '$' in LUA_PATH_DEFAULT with the directory wherein the current script is. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21595 a1c6a512-1295-4272-9138-f99709370657
* Fix mingw & cygwin buildsMaurus Cuelenaere2009-05-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21075 a1c6a512-1295-4272-9138-f99709370657
* Commit FS#9174: Lua scripting language by Dan EvertonMaurus Cuelenaere2009-05-21
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21020 a1c6a512-1295-4272-9138-f99709370657