summaryrefslogtreecommitdiff
path: root/apps/plugins/lua
AgeCommit message (Collapse)Author
2010-02-13Lua fscanf: use pointer of file descriptor instead of file descriptor itself ↵Maurus Cuelenaere
to avoid 64-bit pointer<->int clash (aka fix yellow). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24633 a1c6a512-1295-4272-9138-f99709370657
2010-02-13Fix FS#11007: Lua didn't parse negative numbers correct when reading from filesMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24632 a1c6a512-1295-4272-9138-f99709370657
2009-10-29Lua: return nil when function failed instead of returning nothingMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23405 a1c6a512-1295-4272-9138-f99709370657
2009-10-29Also expose functions having (s)size_t or off_t as argument/return type to Lua.Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23403 a1c6a512-1295-4272-9138-f99709370657
2009-10-29Boomshine plugin : port to Greyscale and B/W targets, and targets without ↵Kevin Ferrare
touchscreen (currently using the virtual keyboard keymap) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23397 a1c6a512-1295-4272-9138-f99709370657
2009-10-26Lua: add lib/helper.c wrappersMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23360 a1c6a512-1295-4272-9138-f99709370657
2009-10-23Lua: add parts of the math library (all floating point functions are ↵Maurus Cuelenaere
#ifdef'ed out) Flyspray: FS#10389 Author: myself git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23321 a1c6a512-1295-4272-9138-f99709370657
2009-10-23Lua: add do_menu() wrapper. Also fix potential NULL pointer dereferenceMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23320 a1c6a512-1295-4272-9138-f99709370657
2009-10-11Use PLUGINFLAGS in lua.make, instead of only CFLAGS.Thomas Martitz
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23121 a1c6a512-1295-4272-9138-f99709370657
2009-10-11Make sure to use $(CFLAGS) to get all defines when preprocessing actions.hFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23119 a1c6a512-1295-4272-9138-f99709370657
2009-09-06Lua plugin: fix bad behaviour for io.open(path, 'w')Maurus Cuelenaere
Author: Christophe Gragnic Patch: FS#10592 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22645 a1c6a512-1295-4272-9138-f99709370657
2009-07-27Lua: implement the ^ and % operatorsMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22070 a1c6a512-1295-4272-9138-f99709370657
2009-07-23Lua: return nil when kbd_input() gets aborted and make it possible to preset ↵Maurus Cuelenaere
the input string (based on FS#10455 by Christophe Gragnic) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22008 a1c6a512-1295-4272-9138-f99709370657
2009-07-17Lua IOlib: when opening files for writing/appending, check if they exist and ↵Maurus Cuelenaere
if not, add O_CREAT. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21918 a1c6a512-1295-4272-9138-f99709370657
2009-07-15Revert r21863 partly: fixes LuaMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21883 a1c6a512-1295-4272-9138-f99709370657
2009-07-14FS#10080Nils Wallménius
* Move strncpy() from core to the pluginlib * Introduce strlcpy() and use that instead in most places (use memcpy in a few) in core and some plugins * Drop strncpy() from the codec api as no codec used it * Bump codec and plugin api versions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21863 a1c6a512-1295-4272-9138-f99709370657
2009-07-10Lua:Maurus Cuelenaere
* add ./?/init.lua to the search path for require * put Lua libs in /.rockbox/rocks/viewers/lua/ git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21739 a1c6a512-1295-4272-9138-f99709370657
2009-07-08Lua IOlib: don't create files when they don't existMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21715 a1c6a512-1295-4272-9138-f99709370657
2009-07-08Lua: expose SCREEN_MAIN & SCREEN_REMOTE (for rb.lcd_*() functions)Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21712 a1c6a512-1295-4272-9138-f99709370657
2009-07-05Lua: use rb->screens[] to do paintingMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21676 a1c6a512-1295-4272-9138-f99709370657
2009-07-05Also make rocklib_aux.c depend on $(LUA_OBJ)Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21663 a1c6a512-1295-4272-9138-f99709370657
2009-07-05Lua: implement gui_syncyesno_runMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21662 a1c6a512-1295-4272-9138-f99709370657
2009-07-05Fix sim_* errors when compiling LuaMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21660 a1c6a512-1295-4272-9138-f99709370657
2009-07-05Fix actions.lua & buttons.lua make errorsMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21659 a1c6a512-1295-4272-9138-f99709370657
2009-07-05Add a Rockbox header..Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21658 a1c6a512-1295-4272-9138-f99709370657
2009-07-05Lua: add script which wraps not-yet ported C functions to LuaMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21657 a1c6a512-1295-4272-9138-f99709370657
2009-07-03Lua: always expose BUTTON_TOUCHSCREEN and remove BUTTON_ constants from ↵Maurus Cuelenaere
rocklib.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21630 a1c6a512-1295-4272-9138-f99709370657
2009-07-01Lua: because Rockbox doesn't support any current working directory ↵Maurus Cuelenaere
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
2009-06-30Correct commentMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21574 a1c6a512-1295-4272-9138-f99709370657
2009-06-30Lua: also expose BUTTON_REL, BUTTON_REPEAT & BUTTON_TOUCHSCREENMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21573 a1c6a512-1295-4272-9138-f99709370657
2009-06-28Lua: remove BUTTON_TOUCHSCREEN as this constant is available in buttons.luaMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21544 a1c6a512-1295-4272-9138-f99709370657
2009-06-28Fix typo & redMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21543 a1c6a512-1295-4272-9138-f99709370657
2009-06-28Lua:Maurus Cuelenaere
* add IO lib (adapted to Rockbox) * remove old IO wrappers * rework helloworld.lua to work with the IO lib * do some stuff in helloworld.lua better (part of FS#10379, by James Callahan) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21541 a1c6a512-1295-4272-9138-f99709370657
2009-06-25Lua: add the package libraryMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21506 a1c6a512-1295-4272-9138-f99709370657
2009-06-24Lua: expose BUTTON_* definesMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21500 a1c6a512-1295-4272-9138-f99709370657
2009-06-24Fix FS#10378: Lua crashes when loading non-existing filesMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21488 a1c6a512-1295-4272-9138-f99709370657
2009-06-15Fix yellowMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21292 a1c6a512-1295-4272-9138-f99709370657
2009-06-15Fix helloworld.lua for mono targets (+ add lcd_mono_bitmap() & ↵Maurus Cuelenaere
lcd_mono_bitmap_part() to Lua API) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21291 a1c6a512-1295-4272-9138-f99709370657
2009-06-09Correct the includes; the old way broke parallel builds.Magnus Holmgren
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21234 a1c6a512-1295-4272-9138-f99709370657
2009-06-01Lua: add touchscreen_set_mode & current_path (+ some constants)Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21165 a1c6a512-1295-4272-9138-f99709370657
2009-06-01Lua: add bitlib (makes bitwise operators possible)Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21164 a1c6a512-1295-4272-9138-f99709370657
2009-05-28Lua: make sure action.h gets C preprocessed before processing itMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21123 a1c6a512-1295-4272-9138-f99709370657
2009-05-27Fix yellow & redMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21107 a1c6a512-1295-4272-9138-f99709370657
2009-05-27Lua: add support for os libraryMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21106 a1c6a512-1295-4272-9138-f99709370657
2009-05-25Lua: re-use the viewport pointer; also use the shorter lua_getfield() & ↵Maurus Cuelenaere
lua_setfield() notations (thanks Antoine Cellerier) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21080 a1c6a512-1295-4272-9138-f99709370657
2009-05-25Fix some typosMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21077 a1c6a512-1295-4272-9138-f99709370657
2009-05-25Lua: port viewports + add test_viewports.luaMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21076 a1c6a512-1295-4272-9138-f99709370657
2009-05-25Fix mingw & cygwin buildsMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21075 a1c6a512-1295-4272-9138-f99709370657
2009-05-25* read_bmp_*(): add FORMAT_RETURN_SIZEMaurus Cuelenaere
* Lua: add luaL_checkboolean() & luaL_optboolean() * Lua: add read_bmp_file git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21074 a1c6a512-1295-4272-9138-f99709370657
2009-05-24Lua: /me should learn about C arrays.. :/Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21065 a1c6a512-1295-4272-9138-f99709370657