SuccessChanges

Summary

  1. Merged in lua_fix (pull request #683) lua scripting: lots of fixes, plus API testing script
  2. Merged in daniel_fort/magic-lantern/clean_localsyms (pull request #692) Remove localsyms in modules/lua
  3. Changed so that removing localsyms is given it it's own action.
  4. Moved rm localsyms to right after it is used.
  5. Changed to removing it immediately after we are finished with it in the build rule.
  6. Remove localsyms in modules/lua when running "make clean"
  7. Merged in Audionut/test/lua-features (pull request #701) Add forum link to lua readme
  8. Add forum link to lua readme
  9. format_memory_size: fix rounding
  10. format_memory_size: allow sizes > 4 GB
  11. Lua: wait for keypress after loading all scripts.
  12. Lua: added "make install_extra" to copy extra scripts in the main script dir on the card, for autoloading
  13. logger.lua: use line buffering (can be made optional if speed becomes a problem)
  14. Menu script routines: fix "menu not found" error messages
  15. Lua: moved less-polished scripts to "extra" directory, so they don't get auto-started
  16. Lua: when running "make install", copy all scripts, preserving directory structure
  17. Lua: route all print operations to stdin/stdout
  18. console.c: export console_puts (for Lua stdio)
  19. sokoban.lua: fix typo
  20. Focus backend: consider unknown status codes as "success" (fixes follow focus in movie mode, tested on 5D3 + 24/2.8 STM)
  21. Lua scripts: tweaks for menu consistency (help lines, capital ON/OFF)
  22. api_test.lua: use proper printf
  23. Lua scripts: use standard I/O instead of console.write
  24. Fix bracketing regression introduced in 5bdf000
  25. Merged unified into lua_fix
  26. api_test.lua: basic tests for file i/o and stdio
  27. Lua: add dryos.remove (similar to os.remove)
  28. Lua: basic support for standard streams (stdin, stdout, stderr)
  29. lua_stdio: fix file create
  30. lua_stdio: fix file append
  31. Merge lua_stdio into lua_fix
  32. Lua: show console at startup, until all scripts are loaded
  33. Lua: increased stack size for script tasks, just in case
  34. module backend: fix key handling regression in other modules, introduced in b0891f9
  35. lua_stdio: report file size on stat calls; primitive errno handling
  36. Lua: fix old comment
  37. api_test.lua: verify changing exposure directly via camera.iso/shutter/aperture/ec/flash_ec
  38. lua_camera: fix setting ISO via camera.iso (should be the same as camera.iso.value)
  39. Lua: use plain printf for normal messages
  40. lua property: cleanup prop message queue -> better, more defensive checks and error handling, fix memory leak seems to fix some apparent memory issues and err70s with copy2m
  41. lua scripting: don't load scripts that start with "_" fixes issue with hidden files created by OSX Finder #2496
  42. lua_movie: fix movie mode checks (should fix rec_delay.lua on many cameras)
  43. Lua: moved camera.af_mode to lens.af_mode (to be consistent with lens.af)
  44. Lua: camera.movie returns MODE.MOVIE even on cameras without a dedicated movie mode (fixes recdelay.lua on many cameras)
  45. Lua: proper error handling if strict.lua is missing
  46. Lua: print script menus to console
  47. api_test.lua: minor fix
  48. api_test.lua: updated focus tests to include commands with wait=false
  49. lens.c: reworked lens_focus a bit (fix crash with wait=off and some other tweaks)
  50. editor.lua: use WHEEL_LEFT for decrementing and WHEEL_RIGHT for incrementing (consistent with ML menu)
  51. Lua: check script syntax after compiling the module
  52. api_test.lua: tests for lens.focus
  53. lua_lens.c: more reasonable defaults for lens.focus
  54. lua_camera.c: removed check that breaks copy2m
  55. sokoban.lua: auto-increment level
  56. api_test.lua: tests for Lua strict mode; minor refactoring
  57. Lua: updated scripts for strict.lua
  58. strict.lua: changes to play nice with our existing global metatable
  59. Lua: use strict.lua for all scripts
  60. lua_lens: report focus distance in mm (to be consistent with all other distance fields)
  61. lua_lens: renamed focal_distance to focus_distance
  62. api_test.lua: tests for the "lv" module
  63. Lua: added some new APIs to the "lv" module: lv.paused, lv.running, lv.zoom get/set, lv.wait(num_frames)
  64. close_liveview(): fix operation in movie mode
  65. Pause/ResumeLiveView: minor cleanup/refactoring
  66. Lua: dryos.call disabled by default
  67. lua_camera: don't use SYM_ISO for formatting ISO values (doesn't look nice)
  68. api_test.lua: restore camera parameters after changing them
  69. api_test.lua: bring back the camera printf's (they provide additional info over the generic test, such as formatting exposure values)
  70. api_test.lua: run all generic tests first
  71. logger.lua: do not try to iterate light userdata
  72. lua reflection: remove unecessary duplicate 'fields' in dryos (they are already 'normal' table entries and will get enumerated by lua_next)
  73. Merge fonts into lua_fix
  74. lua logger: also serialize userdata
  75. lua scripting: only call lua_next on tables it's possible we are iterating a userdata, and calling lua_next on userdata causes a hard crash
  76. Merge
  77. lua scripting: update API tests to use logger and 'reflection' features
  78. lua scripting: implement 'reflection' for fields of api modules by using a custom __pairs metamethod and iterator (cherry picked commits from lua_touch branch) this allows us to do e.g.: for k,v in pairs(camera) do printf("%s = %s",k,tostring(v)) end should make writing simple, automatic, generic API tests easier
  79. lua scripting: use logger in editor.lua and speed up file open
  80. lua scripting: use logger in calc.lua
  81. lua scripting: logger.lua - a logging helper
  82. lua scripting: directory.parent should return nil for root directories (i.e. A:/ or B:/)
  83. lua scripting: console.write should not automatically add newlines
  84. Lua: use uncached malloc for buffering stdio files
  85. Lua: hide stdio debug messages by default
  86. Lua: stdio appears to work!
  87. Lua: include extra dependencies in the module itself (not core); use setjmp from core (newlib)
  88. Merged lua_fix into lua_stdio
  89. Lua: compile with stdio functions from dietlibc (not working yet)
  90. fio-ml: use stdio.h instead of defining a custom FILE type
  91. Lua: added a subset of includes from dietlibc-0.33
  92. tcc-glue: made all functions private and removed unused ones
  93. console.c: removed fputs and putchar
  94. Fix Lua after undefined symbols fix
  95. Modules: fix undefined symbols appearing incorrectly in the sym file
  96. module backend: handle fast scrollwheel events (for recent cameras)
  97. editor.lua: fix performance regression introduced in b6ee499
  98. lua scripting: fix calculator issue #2476
  99. api_test.lua: use a larger tolerance when setting aperture as f-number
  100. api_test.lua: aperture tests
  101. Lua: added camera.aperture.min/max
  102. lens.c: added lens_format_aperture
  103. lens.c: changed return value of hdr_set_* (todo: check if bracketing still stops when reaching exposure limits)
  104. lens.c: updated lens_set_aperture_approx; Lua aperture tests almost working
  105. api_test.lua: EC and FEC tests; fix typos
  106. moved round_shutter/aperture/expo_comp and related to lens.c
  107. simplified round_shutter/aperture/expo_comp and added round_flash_expo_comp, used for lens_set_flash_ae
  108. lens.c: refactored lens_set_ae/lens_set_flash_ae
  109. api_test.lua: script API tests, only covering shutter and ISO for now; todo: the rest of the API :P
  110. Lua, camera module: changing ISO works! (I bet this feature was never tested...)
  111. lens.c: use closest match when setting ISO in hdr_set_rawiso; small refactors
  112. Lua, camera module: use higher precision for APEX values
  113. lens.c, prop_set_rawshutter_approx: round towards the nearest shutter (max error 1/8 EV)
  114. lens.c: forgot to rename APEX10 macros
  115. lens.h: updated APEX10 macros to be reversible (converting back and forth should give the same value)
  116. imath.h: added RSCALE (integer scale with rounding, reversible)
  117. Renamed APEX x10 macros
  118. lua scripting: load string library by default: http://www.magiclantern.fm/forum/index.php?topic=14828.msg163029#msg163029
  119. lua scripting: semaphore timeouts: provide more info, don't force the console open
  120. Merged unified into lua_fix
  121. lua_camera: fix pretty-printing of negative EC values
  122. lua_camera: removed apex x10 units (don't see any reason to use them instead of float)
  123. lua_camera: replaced tostring with __tostring, so it will be used with print(camera.shutter) or string.format("%s", camera.shutter) See http://www.lua.org/pil/13.3.html
  124. Lua: added console.clear()
  125. lua scripting: fix dryos.dcim_dir
  126. lua scripting: fix bug in config.lua that prevents submenus' values from loading correctly
  127. lua scripting: use hdr_set_rawshutter instead of lens_set_rawshutter
  128. lua scripting: use hdr_set_rawaperture instead of lens_set_rawaperture
  129. lua scripting: throw errors when setting camera properties fail
  130. lua scripting: fix camera.aperture.value conversions
  131. lua scripting: fix the global shoot() function too
  132. lua scripting: more parameter fixes (lens.focus)
  133. lua scripting: fix data type for camera.shoot parameter http://www.magiclantern.fm/forum/index.php?topic=14828.msg161195#msg161195
Changeset 11933:3ae5729e9737 by a1ex <broscutamaker@gmail.com>:
Merged in lua_fix (pull request #683)<br><br>lua scripting: lots of fixes, plus API testing script
Changeset 11932:1d37239bdb38 by a1ex <broscutamaker@gmail.com>:
Merged in daniel_fort/magic-lantern/clean_localsyms (pull request #692)<br><br>Remove localsyms in modules/lua
Changeset 11931:bc0b226ed24c by Daniel Fort <dan@digiola.com>:
Changed so that removing localsyms is given it it&#039;s own action.
The file was modifiedmodules/lua/Makefile (diff)
Changeset 11930:806124f8c935 by Daniel Fort <dan@digiola.com>:
Moved rm localsyms to right after it is used.
The file was modifiedmodules/lua/Makefile (diff)
Changeset 11929:b451a3c00d72 by Daniel Fort <dan@digiola.com>:
Changed to removing it immediately after we are finished with it in the build rule.
The file was modifiedmodules/Makefile.modules (diff)
The file was modifiedmodules/lua/Makefile (diff)
Changeset 11928:8a5b7b615981 by Daniel Fort <dan@digiola.com>:
Remove localsyms in modules/lua when running &quot;make clean&quot;
The file was modifiedmodules/Makefile.modules (diff)
Changeset 11927:33c8f3c5d522 by a1ex <broscutamaker@gmail.com>:
Merged in Audionut/test/lua-features (pull request #701)<br><br>Add forum link to lua readme
Changeset 11926:5accdab2ff76 by Audionut:
Add forum link to lua readme
The file was modifiedmodules/lua/README.rst (diff)
Changeset 11925:29531ba85499 by alex@thinkpad:
format_memory_size: fix rounding
The file was modifiedsrc/mem.c (diff)
Changeset 11924:8f808dea202b by alex@thinkpad:
format_memory_size: allow sizes &gt; 4 GB
The file was modifiedsrc/mem.c (diff)
The file was modifiedsrc/mem.h (diff)
Changeset 11923:a0ecc040c923 by alex@thinkpad:
Lua: wait for keypress after loading all scripts.
The file was modifiedmodules/lua/lua.c (diff)
Changeset 11922:00e5db24cce5 by alex@thinkpad:
Lua: added &quot;make install_extra&quot; to copy extra scripts in the main script dir on the card, for autoloading
The file was modifiedmodules/lua/Makefile (diff)
Changeset 11921:d6c61c60231d by alex@thinkpad:
logger.lua: use line buffering (can be made optional if speed becomes a problem)
The file was modifiedscripts/lib/logger.lua (diff)
Changeset 11920:82ec3a4fb97b by alex@thinkpad:
Menu script routines: fix &quot;menu not found&quot; error messages
The file was modifiedsrc/menu.c (diff)
Changeset 11919:272e1e437b03 by alex@thinkpad:
Lua: moved less-polished scripts to &quot;extra&quot; directory, so they don&#039;t get auto-started
The file was addedscripts/extra/README.txt
The file was addedscripts/extra/copy2m.lua
The file was addedscripts/extra/menutest.lua
The file was addedscripts/extra/scrnshot.lua
The file was removedscripts/copy2m.lua
The file was removedscripts/menutest.lua
The file was removedscripts/scrnshot.lua
Changeset 11918:dbd5a2cef793 by alex@thinkpad:
Lua: when running &quot;make install&quot;, copy all scripts, preserving directory structure
The file was modifiedMakefile.inc (diff)
The file was modifiedMakefile.top (diff)
The file was modifiedmodules/lua/Makefile (diff)
Changeset 11917:a27fe7632ad8 by alex@thinkpad:
Lua: route all print operations to stdin/stdout
The file was modifiedmodules/lua/Makefile (diff)
The file was modifiedmodules/lua/lua.c (diff)
The file was modifiedmodules/lua/lua/ml-lua-shim.c (diff)
The file was modifiedmodules/lua/lua/ml-lua-shim.h (diff)
The file was modifiedmodules/lua/lua_lv.c (diff)
The file was modifiedmodules/lua/lua_menu.c (diff)
The file was modifiedmodules/lua/lua_property.c (diff)
The file was modifiedmodules/lua/lua_task.c (diff)
Changeset 11916:feafcb4f2578 by alex@thinkpad:
console.c: export console_puts (for Lua stdio)
The file was modifiedsrc/console.c (diff)
Changeset 11915:5c3b3d2696fa by alex@thinkpad:
sokoban.lua: fix typo
The file was modifiedscripts/sokoban.lua (diff)
Changeset 11914:21ed61d1d0fe by alex@thinkpad:
Focus backend: consider unknown status codes as &quot;success&quot;<br>(fixes follow focus in movie mode, tested on 5D3 + 24/2.8 STM)
The file was modifiedsrc/lens.c (diff)
Changeset 11913:e4303deda789 by alex@thinkpad:
Lua scripts: tweaks for menu consistency (help lines, capital ON/OFF)
The file was modifiedscripts/api_test.lua (diff)
The file was modifiedscripts/calc.lua (diff)
The file was modifiedscripts/copy2m.lua (diff)
The file was modifiedscripts/editor.lua (diff)
The file was modifiedscripts/hello.lua (diff)
The file was modifiedscripts/menutest.lua (diff)
The file was modifiedscripts/pong.lua (diff)
The file was modifiedscripts/scrnshot.lua (diff)
The file was modifiedscripts/sokoban.lua (diff)
Changeset 11912:035ab6e615e4 by alex@thinkpad:
api_test.lua: use proper printf
The file was modifiedscripts/api_test.lua (diff)
Changeset 11911:c647a7ac3cd8 by alex@thinkpad:
Lua scripts: use standard I/O instead of console.write
The file was modifiedscripts/api_test.lua (diff)
The file was modifiedscripts/lib/config.lua (diff)
The file was modifiedscripts/lib/logger.lua (diff)
The file was modifiedscripts/sokoban.lua (diff)
Changeset 11910:e7cef847d5c7 by alex@thinkpad:
Fix bracketing regression introduced in 5bdf000
The file was modifiedsrc/shoot.c (diff)
Changeset 11909:1bfe672120dc by alex@thinkpad:
Merged unified into lua_fix
Changeset 11908:1fa0abf8e525 by alex@thinkpad:
api_test.lua: basic tests for file i/o and stdio
The file was modifiedscripts/api_test.lua (diff)
Changeset 11907:796b4429dcb1 by alex@thinkpad:
Lua: add dryos.remove (similar to os.remove)
The file was modifiedmodules/lua/lua_dryos.c (diff)
Changeset 11906:4a307159e0fc by alex@thinkpad:
Lua: basic support for standard streams (stdin, stdout, stderr)
The file was modifiedmodules/lua/lua/ml-lua-shim.c (diff)
Changeset 11905:fcfe209a2a4d by alex@thinkpad:
lua_stdio: fix file create
The file was modifiedmodules/lua/lua/ml-lua-shim.c (diff)
Changeset 11904:08d150225b75 by alex@thinkpad:
lua_stdio: fix file append
The file was modifiedmodules/lua/lua/ml-lua-shim.c (diff)
Changeset 11903:c08dc690984c by alex@thinkpad:
Merge lua_stdio into lua_fix
Changeset 11902:78f79c59ada2 by alex@thinkpad:
Lua: show console at startup, until all scripts are loaded
The file was modifiedmodules/lua/lua.c (diff)
Changeset 11901:a13e5114e4e7 by alex@thinkpad:
Lua: increased stack size for script tasks, just in case
The file was modifiedmodules/lua/lua.c (diff)
The file was modifiedmodules/lua/lua_property.c (diff)
The file was modifiedmodules/lua/lua_task.c (diff)
Changeset 11900:2cc2768bc324 by alex@thinkpad:
module backend: fix key handling regression in other modules, introduced in b0891f9
The file was modifiedsrc/module.c (diff)
Changeset 11899:6b344a92beb7 by alex@thinkpad:
lua_stdio: report file size on stat calls; primitive errno handling
The file was modifiedmodules/lua/lua/ml-lua-shim.c (diff)
Changeset 11898:cc36f5b56c1f by alex@thinkpad:
Lua: fix old comment
The file was modifiedmodules/lua/Makefile (diff)
Changeset 11897:5037374af7cc by alex@thinkpad:
api_test.lua: verify changing exposure directly via camera.iso/shutter/aperture/ec/flash_ec
The file was modifiedscripts/api_test.lua (diff)
Changeset 11896:1a540c1303de by alex@thinkpad:
lua_camera: fix setting ISO via camera.iso (should be the same as camera.iso.value)
The file was modifiedmodules/lua/lua_camera.c (diff)
Changeset 11895:4541487e6932 by alex@thinkpad:
Lua: use plain printf for normal messages
The file was modifiedmodules/lua/lua/ml-lua-shim.h (diff)
Changeset 11894:3cf7c208683b by David Milligan <david.l.milligan@gmail.com>:
lua property: cleanup prop message queue -&gt; better, more defensive checks and error handling, fix memory leak<br><br>seems to fix some apparent memory issues and err70s with copy2m
The file was modifiedmodules/lua/lua_property.c (diff)
Changeset 11893:fa5e9fc6dfc1 by David Milligan <david.l.milligan@gmail.com>:
lua scripting: don&#039;t load scripts that start with &quot;_&quot;<br><br>fixes issue with hidden files created by OSX Finder #2496
The file was modifiedmodules/lua/lua.c (diff)
Changeset 11892:b4ac86f12398 by alex@thinkpad:
lua_movie: fix movie mode checks (should fix rec_delay.lua on many cameras)
The file was modifiedmodules/lua/lua_movie.c (diff)
Changeset 11891:dc56a12226f6 by alex@thinkpad:
Lua: moved camera.af_mode to lens.af_mode (to be consistent with lens.af)
The file was modifiedmodules/lua/lua_camera.c (diff)
The file was modifiedmodules/lua/lua_lens.c (diff)
Changeset 11890:09d87cf332e2 by alex@thinkpad:
Lua: camera.movie returns MODE.MOVIE even on cameras without a dedicated movie mode (fixes recdelay.lua on many cameras)
The file was modifiedmodules/lua/lua_camera.c (diff)
Changeset 11889:8c1f1e205a98 by alex@thinkpad:
Lua: proper error handling if strict.lua is missing
The file was modifiedmodules/lua/lua.c (diff)
Changeset 11888:31d4cc7d117c by alex@thinkpad:
Lua: print script menus to console
The file was modifiedmodules/lua/lua_menu.c (diff)
Changeset 11887:b93fd555ad5c by alex@thinkpad:
api_test.lua: minor fix
The file was modifiedscripts/api_test.lua (diff)
Changeset 11886:4ede48cd5d9f by alex@thinkpad:
api_test.lua: updated focus tests to include commands with wait=false
The file was modifiedscripts/api_test.lua (diff)
Changeset 11885:eb9cba45d089 by alex@thinkpad:
lens.c: reworked lens_focus a bit (fix crash with wait=off and some other tweaks)
The file was modifiedsrc/focus.c (diff)
The file was modifiedsrc/lens.c (diff)
The file was modifiedsrc/lens.h (diff)
Changeset 11884:49e58e94700b by alex@thinkpad:
editor.lua: use WHEEL_LEFT for decrementing and WHEEL_RIGHT for incrementing (consistent with ML menu)
The file was modifiedscripts/editor.lua (diff)
Changeset 11883:8ea4ce5fd458 by alex@thinkpad:
Lua: check script syntax after compiling the module
The file was modifiedmodules/lua/Makefile (diff)
Changeset 11882:d276af57433b by alex@thinkpad:
api_test.lua: tests for lens.focus
The file was modifiedscripts/api_test.lua (diff)
Changeset 11881:82dec5aa65ce by alex@thinkpad:
lua_lens.c: more reasonable defaults for lens.focus
The file was modifiedmodules/lua/lua_lens.c (diff)
Changeset 11880:e8076f147ba2 by alex@thinkpad:
lua_camera.c: removed check that breaks copy2m
The file was modifiedmodules/lua/lua_camera.c (diff)
Changeset 11879:94032f6e739a by alex@thinkpad:
sokoban.lua: auto-increment level
The file was modifiedscripts/sokoban.lua (diff)
Changeset 11878:f09f9296d902 by alex@thinkpad:
api_test.lua: tests for Lua strict mode; minor refactoring
The file was modifiedscripts/api_test.lua (diff)
Changeset 11877:d944781cdb2b by alex@thinkpad:
Lua: updated scripts for strict.lua
The file was modifiedscripts/api_test.lua (diff)
The file was modifiedscripts/editor.lua (diff)
The file was modifiedscripts/pong.lua (diff)
The file was modifiedscripts/sokoban.lua (diff)
Changeset 11876:1821da007ccd by alex@thinkpad:
strict.lua: changes to play nice with our existing global metatable
The file was modifiedscripts/lib/strict.lua (diff)
Changeset 11875:b2c2d52eeec0 by alex@thinkpad:
Lua: use strict.lua for all scripts
The file was addedscripts/lib/strict.lua
The file was modifiedmodules/lua/lua.c (diff)
Changeset 11874:8691fa8c1ac1 by alex@thinkpad:
lua_lens: report focus distance in mm (to be consistent with all other distance fields)
The file was modifiedmodules/lua/lua_lens.c (diff)
Changeset 11873:33220544cc8a by alex@thinkpad:
lua_lens: renamed focal_distance to focus_distance
The file was modifiedmodules/lua/lua_lens.c (diff)
Changeset 11872:5950d536d683 by alex@thinkpad:
api_test.lua: tests for the &quot;lv&quot; module
The file was modifiedscripts/api_test.lua (diff)
Changeset 11871:fe855af12163 by alex@thinkpad:
Lua: added some new APIs to the &quot;lv&quot; module: lv.paused, lv.running, lv.zoom get/set, lv.wait(num_frames)
The file was modifiedmodules/lua/lua_lv.c (diff)
Changeset 11870:eed82e3cc92c by alex@thinkpad:
close_liveview(): fix operation in movie mode
The file was modifiedsrc/movtweaks.c (diff)
Changeset 11869:1ee3cde779c2 by alex@thinkpad:
Pause/ResumeLiveView: minor cleanup/refactoring
The file was modifiedsrc/propvalues.h (diff)
The file was modifiedsrc/zebra.c (diff)
Changeset 11868:2fab2c8cc6bc by alex@thinkpad:
Lua: dryos.call disabled by default
The file was modifiedmodules/lua/lua_dryos.c (diff)
Changeset 11867:94cb5cc3b6e0 by alex@thinkpad:
lua_camera: don&#039;t use SYM_ISO for formatting ISO values (doesn&#039;t look nice)
The file was modifiedmodules/lua/lua_camera.c (diff)
Changeset 11866:1dcdce48039f by alex@thinkpad:
api_test.lua: restore camera parameters after changing them
The file was modifiedscripts/api_test.lua (diff)
Changeset 11865:8b97c4879386 by alex@thinkpad:
api_test.lua: bring back the camera printf&#039;s (they provide additional info over the generic test, such as formatting exposure values)
The file was modifiedscripts/api_test.lua (diff)
Changeset 11864:18bf2d7206eb by alex@thinkpad:
api_test.lua: run all generic tests first
The file was modifiedscripts/api_test.lua (diff)
Changeset 11863:b7ccdde7d46f by alex@thinkpad:
logger.lua: do not try to iterate light userdata
The file was modifiedscripts/lib/logger.lua (diff)
Changeset 11862:eda382b22858 by David Milligan <david.l.milligan@gmail.com>:
lua reflection: remove unecessary duplicate &#039;fields&#039; in dryos (they are already &#039;normal&#039; table entries and will get enumerated by lua_next)
The file was modifiedmodules/lua/lua_dryos.c (diff)
Changeset 11861:352abb055810 by alex@thinkpad:
Merge fonts into lua_fix
Changeset 11860:6cb371956108 by David Milligan <david.l.milligan@gmail.com>:
lua logger: also serialize userdata
The file was modifiedscripts/lib/logger.lua (diff)
Changeset 11859:bef9037eea48 by David Milligan <david.l.milligan@gmail.com>:
lua scripting: only call lua_next on tables<br><br>it&#039;s possible we are iterating a userdata, and calling lua_next on userdata causes a hard crash
The file was modifiedmodules/lua/lua.c (diff)
Changeset 11857:6735a9f06c87 by David Milligan <david.l.milligan@gmail.com>:
lua scripting: update API tests to use logger and &#039;reflection&#039; features
The file was modifiedscripts/api_test.lua (diff)
Changeset 11856:fd36ba34f3ae by David Milligan <david.l.milligan@gmail.com>:
lua scripting: implement &#039;reflection&#039; for fields of api modules by using a custom __pairs metamethod and iterator (cherry picked commits from lua_touch branch)<br><br>this allows us to do e.g.:<br>for k,v in pairs(camera) do<br>&nbsp; printf(&quot;%s = %s&quot;,k,tostring(v))<br>end<br><br>should make writing simple, automatic, generic API tests easier
The file was modifiedmodules/lua/lua.c (diff)
The file was modifiedmodules/lua/lua_battery.c (diff)
The file was modifiedmodules/lua/lua_camera.c (diff)
The file was modifiedmodules/lua/lua_common.h (diff)
The file was modifiedmodules/lua/lua_console.c (diff)
The file was modifiedmodules/lua/lua_display.c (diff)
The file was modifiedmodules/lua/lua_dryos.c (diff)
The file was modifiedmodules/lua/lua_interval.c (diff)
The file was modifiedmodules/lua/lua_key.c (diff)
The file was modifiedmodules/lua/lua_lens.c (diff)
The file was modifiedmodules/lua/lua_lv.c (diff)
The file was modifiedmodules/lua/lua_menu.c (diff)
The file was modifiedmodules/lua/lua_movie.c (diff)
The file was modifiedmodules/lua/lua_property.c (diff)
The file was modifiedmodules/lua/lua_task.c (diff)
Changeset 11855:81618678d562 by David Milligan <david.l.milligan@gmail.com>:
lua scripting: use logger in editor.lua and speed up file open
The file was modifiedscripts/editor.lua (diff)
Changeset 11854:ae9c901d61da by David Milligan <david.l.milligan@gmail.com>:
lua scripting: use logger in calc.lua
The file was modifiedscripts/calc.lua (diff)
Changeset 11853:f8acd159fb61 by David Milligan <david.l.milligan@gmail.com>:
lua scripting: logger.lua - a logging helper
The file was addedscripts/lib/logger.lua
Changeset 11852:1c9af382592a by David Milligan <david.l.milligan@gmail.com>:
lua scripting: directory.parent should return nil for root directories (i.e. A:/ or B:/)
The file was modifiedmodules/lua/lua_dryos.c (diff)
Changeset 11851:c2a136167e99 by David Milligan <david.l.milligan@gmail.com>:
lua scripting: console.write should not automatically add newlines
The file was modifiedmodules/lua/lua_console.c (diff)
Changeset 11850:e22b3bcd05b6 by Alex:
Lua: use uncached malloc for buffering stdio files
The file was modifiedmodules/lua/lua/ml-lua-shim.c (diff)
Changeset 11849:8e3b7b3cb22a by Alex:
Lua: hide stdio debug messages by default
The file was modifiedmodules/lua/lua/ml-lua-shim.c (diff)
Changeset 11848:a89721ddb878 by Alex:
Lua: stdio appears to work!
The file was modifiedmodules/lua/lua/ml-lua-shim.c (diff)
The file was modifiedmodules/lua/lua/ml-lua-shim.h (diff)
Changeset 11847:61ef0db6eeb6 by Alex:
Lua: include extra dependencies in the module itself (not core); use setjmp from core (newlib)
The file was modifiedmodules/lua/Makefile (diff)
The file was modifiedsrc/Makefile.src (diff)
The file was removedmodules/lua/dietlibc/include/setjmp.h
Changeset 11846:bbed7ecd3081 by Alex:
Merged lua_fix into lua_stdio
Changeset 11845:3da420700639 by Alex:
Lua: compile with stdio functions from dietlibc (not working yet)
The file was modifiedmodules/lua/Makefile (diff)
The file was modifiedmodules/lua/dietlibc/include/math.h (diff)
The file was modifiedmodules/lua/dietlibc/include/sys/cdefs.h (diff)
The file was modifiedmodules/lua/lua/lauxlib.c (diff)
The file was modifiedmodules/lua/lua/lauxlib.h (diff)
The file was modifiedmodules/lua/lua/lbaselib.c (diff)
The file was modifiedmodules/lua/lua/liolib.c (diff)
The file was modifiedmodules/lua/lua/lobject.c (diff)
The file was modifiedmodules/lua/lua/lstrlib.c (diff)
The file was modifiedmodules/lua/lua/ml-lua-shim.c (diff)
The file was modifiedmodules/lua/lua/ml-lua-shim.h (diff)
The file was modifiedmodules/lua/lua_globals.c (diff)
Changeset 11844:d03c7645ab6c by Alex:
fio-ml: use stdio.h instead of defining a custom FILE type
The file was modifiedsrc/fio-ml.h (diff)
Changeset 11843:a9ee10ff1ccc by Alex:
Lua: added a subset of includes from dietlibc-0.33
The file was addedmodules/lua/dietlibc/include/alloca.h
The file was addedmodules/lua/dietlibc/include/asm/arm-sigcontext.h
The file was addedmodules/lua/dietlibc/include/asm/sigcontext.h
The file was addedmodules/lua/dietlibc/include/asm/types.h
The file was addedmodules/lua/dietlibc/include/assert.h
The file was addedmodules/lua/dietlibc/include/clocale
The file was addedmodules/lua/dietlibc/include/cstddef
The file was addedmodules/lua/dietlibc/include/cstdlib
The file was addedmodules/lua/dietlibc/include/ctype.h
The file was addedmodules/lua/dietlibc/include/cwchar
The file was addedmodules/lua/dietlibc/include/cwctype
The file was addedmodules/lua/dietlibc/include/endian.h
The file was addedmodules/lua/dietlibc/include/errno.h
The file was addedmodules/lua/dietlibc/include/float.h
The file was addedmodules/lua/dietlibc/include/inttypes.h
The file was addedmodules/lua/dietlibc/include/limits.h
The file was addedmodules/lua/dietlibc/include/locale.h
The file was addedmodules/lua/dietlibc/include/math.h
The file was addedmodules/lua/dietlibc/include/setjmp.h
The file was addedmodules/lua/dietlibc/include/signal.h
The file was addedmodules/lua/dietlibc/include/stdarg.h
The file was addedmodules/lua/dietlibc/include/stddef.h
The file was addedmodules/lua/dietlibc/include/stdint.h
The file was addedmodules/lua/dietlibc/include/stdio.h
The file was addedmodules/lua/dietlibc/include/stdlib.h
The file was addedmodules/lua/dietlibc/include/string.h
The file was addedmodules/lua/dietlibc/include/sys/cdefs.h
The file was addedmodules/lua/dietlibc/include/sys/fsuid.h
The file was addedmodules/lua/dietlibc/include/sys/io.h
The file was addedmodules/lua/dietlibc/include/sys/select.h
The file was addedmodules/lua/dietlibc/include/sys/signal.h
The file was addedmodules/lua/dietlibc/include/sys/stat.h
The file was addedmodules/lua/dietlibc/include/sys/time.h
The file was addedmodules/lua/dietlibc/include/sys/types.h
The file was addedmodules/lua/dietlibc/include/sys/ucontext.h
The file was addedmodules/lua/dietlibc/include/time.h
The file was addedmodules/lua/dietlibc/include/unistd.h
Changeset 11842:b11b12a63855 by Alex:
tcc-glue: made all functions private and removed unused ones
The file was modifiedsrc/tcc-glue.c (diff)
The file was modifiedtcc/tcc.h (diff)
The file was modifiedtcc/tccrun.c (diff)
Changeset 11841:7b104278490c by Alex:
console.c: removed fputs and putchar
The file was modifiedsrc/console.c (diff)
Changeset 11840:cf29a9cb833b by Alex:
Fix Lua after undefined symbols fix
The file was modifiedsrc/Makefile.src (diff)
Changeset 11839:6dd7067b8796 by Alex:
Modules: fix undefined symbols appearing incorrectly in the sym file
The file was modifiedMakefile.filerules (diff)
Changeset 11838:b0891f9ae3a7 by Alex:
module backend: handle fast scrollwheel events (for recent cameras)
The file was modifiedsrc/module.c (diff)
Changeset 11837:75f88a3dc426 by Alex:
editor.lua: fix performance regression introduced in b6ee499
The file was modifiedscripts/editor.lua (diff)
Changeset 11836:6ca929aca71d by David Milligan <david.l.milligan@gmail.com>:
lua scripting: fix calculator issue #2476
The file was modifiedscripts/calc.lua (diff)
Changeset 11835:46911d94d113 by Alex:
api_test.lua: use a larger tolerance when setting aperture as f-number
The file was modifiedscripts/api_test.lua (diff)
Changeset 11834:760289371ef7 by Alex:
api_test.lua: aperture tests
The file was modifiedscripts/api_test.lua (diff)
Changeset 11833:0b70261b633c by Alex:
Lua: added camera.aperture.min/max
The file was modifiedmodules/lua/lua_camera.c (diff)
Changeset 11832:608deb87203a by Alex:
lens.c: added lens_format_aperture
The file was modifiedsrc/lens.c (diff)
The file was modifiedsrc/lens.h (diff)
Changeset 11831:5bdf0005a73a by Alex:
lens.c: changed return value of hdr_set_* (todo: check if bracketing still stops when reaching exposure limits)
The file was modifiedsrc/lens.c (diff)
The file was modifiedsrc/shoot.c (diff)
Changeset 11830:2d1a33300670 by Alex:
lens.c: updated lens_set_aperture_approx; Lua aperture tests almost working
The file was modifiedmodules/lua/lua_camera.c (diff)
The file was modifiedsrc/lens.c (diff)
Changeset 11829:e3cff0eef5c1 by Alex:
api_test.lua: EC and FEC tests; fix typos
The file was modifiedscripts/api_test.lua (diff)
Changeset 11828:1692466ee4bf by Alex:
moved round_shutter/aperture/expo_comp and related to lens.c
The file was modifiedsrc/lens.c (diff)
The file was modifiedsrc/lens.h (diff)
The file was modifiedsrc/shoot.c (diff)
The file was modifiedsrc/shoot.h (diff)
Changeset 11827:abe2508a673f by Alex:
simplified round_shutter/aperture/expo_comp and added round_flash_expo_comp, used for lens_set_flash_ae
The file was modifiedsrc/lens.c (diff)
The file was modifiedsrc/shoot.c (diff)
The file was modifiedsrc/shoot.h (diff)
Changeset 11826:6eae493d2525 by Alex:
lens.c: refactored lens_set_ae/lens_set_flash_ae
The file was modifiedsrc/lens.c (diff)
Changeset 11825:5bedbb4f288a by Alex:
api_test.lua: script API tests, only covering shutter and ISO for now; todo: the rest of the API :P
The file was addedscripts/api_test.lua
Changeset 11824:c0acfcdb9422 by Alex:
Lua, camera module: changing ISO works! (I bet this feature was never tested...)
The file was modifiedmodules/lua/lua_camera.c (diff)
Changeset 11823:b6428c6753a1 by Alex:
lens.c: use closest match when setting ISO in hdr_set_rawiso; small refactors
The file was modifiedsrc/lens.c (diff)
Changeset 11822:c31cddbeafd6 by Alex:
Lua, camera module: use higher precision for APEX values
The file was modifiedmodules/lua/lua_camera.c (diff)
The file was modifiedmodules/lua/lua_common.h (diff)
The file was modifiedsrc/lens.h (diff)
Changeset 11821:9673334abcc7 by Alex:
lens.c, prop_set_rawshutter_approx: round towards the nearest shutter (max error 1/8 EV)
The file was modifiedsrc/lens.c (diff)
Changeset 11820:edba152d963e by Alex:
lens.c: forgot to rename APEX10 macros
The file was modifiedsrc/lens.c (diff)
Changeset 11819:a6c334148fa1 by Alex:
lens.h: updated APEX10 macros to be reversible (converting back and forth should give the same value)
The file was modifiedsrc/lens.h (diff)
Changeset 11818:08c83b4f3e88 by Alex:
imath.h: added RSCALE (integer scale with rounding, reversible)
The file was modifiedsrc/imath.h (diff)
Changeset 11817:44befef4aa37 by Alex:
Renamed APEX x10 macros
The file was modifiedmodules/autoexpo/autoexpo.c (diff)
The file was modifiedmodules/lua/lua_camera.c (diff)
The file was modifiedsrc/lens.h (diff)
Changeset 11816:cd81c8bfb33c by David Milligan <david.l.milligan@gmail.com>:
lua scripting: load string library by default: http://www.magiclantern.fm/forum/index.php?topic=14828.msg163029#msg163029
The file was modifiedmodules/lua/lua.c (diff)
Changeset 11815:f72aa2c49a17 by David Milligan <david.l.milligan@gmail.com>:
lua scripting: semaphore timeouts: provide more info, don&#039;t force the console open
The file was modifiedmodules/lua/lua.c (diff)
The file was modifiedmodules/lua/lua_lv.c (diff)
The file was modifiedmodules/lua/lua_menu.c (diff)
The file was modifiedmodules/lua/lua_property.c (diff)
The file was modifiedmodules/lua/lua_task.c (diff)
Changeset 11814:792edb216101 by a1ex <broscutamaker@gmail.com>:
Merged unified into lua_fix
Changeset 11813:2cc27ef812e1 by Alex:
lua_camera: fix pretty-printing of negative EC values
The file was modifiedmodules/lua/lua_camera.c (diff)
Changeset 11812:dda86362a553 by Alex:
lua_camera: removed apex x10 units (don&#039;t see any reason to use them instead of float)
The file was modifiedmodules/lua/lua_camera.c (diff)
Changeset 11811:ee58da458d50 by Alex:
lua_camera: replaced tostring with __tostring, so it will be used with print(camera.shutter) or string.format(&quot;%s&quot;, camera.shutter)<br>See http://www.lua.org/pil/13.3.html
The file was modifiedmodules/lua/lua_camera.c (diff)
Changeset 11810:15904db557d1 by Alex:
Lua: added console.clear()
The file was modifiedmodules/lua/lua_console.c (diff)
The file was modifiedsrc/console.h (diff)
Changeset 11809:97beaa220d8a by David Milligan <david.l.milligan@gmail.com>:
lua scripting: fix dryos.dcim_dir
The file was modifiedmodules/lua/lua_dryos.c (diff)
Changeset 11808:00799d19a461 by David Milligan <david.l.milligan@gmail.com>:
lua scripting: fix bug in config.lua that prevents submenus&#039; values from loading correctly
The file was modifiedscripts/lib/config.lua (diff)
Changeset 11807:587c4b7c4738 by David Milligan <david.l.milligan@gmail.com>:
lua scripting: use hdr_set_rawshutter instead of lens_set_rawshutter
The file was modifiedmodules/lua/lua_camera.c (diff)
Changeset 11806:bbcd18cb48e0 by David Milligan <david.l.milligan@gmail.com>:
lua scripting: use hdr_set_rawaperture instead of lens_set_rawaperture
The file was modifiedmodules/lua/lua_camera.c (diff)
Changeset 11805:a63cbca69546 by David Milligan <david.l.milligan@gmail.com>:
lua scripting: throw errors when setting camera properties fail
The file was modifiedmodules/lua/lua_camera.c (diff)
Changeset 11804:e38793921f3d by David Milligan <david.l.milligan@gmail.com>:
lua scripting: fix camera.aperture.value conversions
The file was modifiedmodules/lua/lua_camera.c (diff)
Changeset 11803:27ba4e93934a by David Milligan <david.l.milligan@gmail.com>:
lua scripting: fix the global shoot() function too
The file was modifiedmodules/lua/lua_globals.c (diff)
Changeset 11802:30e5d302b7f8 by David Milligan <david.l.milligan@gmail.com>:
lua scripting: more parameter fixes (lens.focus)
The file was modifiedmodules/lua/lua_lens.c (diff)
Changeset 11801:892db3e809cf by David Milligan <david.l.milligan@gmail.com>:
lua scripting: fix data type for camera.shoot parameter<br><br>http://www.magiclantern.fm/forum/index.php?topic=14828.msg161195#msg161195
The file was modifiedmodules/lua/lua_camera.c (diff)