Commit Graph

12 Commits

Author SHA1 Message Date
Daniel Kolesa 67d1c0e51c elua: load regular file if bytecode cache fails
If bytecode is requested and fails to load, load original file
instead. Force re-write of bytecode if that succeeds.

This is useful if there is bytecode newer than the source file that
the current Lua version can't load, for example when migrating from
LuaJIT 2.0 to 2.1, which changed bytecode format.

Fixes confusing cases such as in T2728.
2017-08-30 20:21:23 +02:00
Jean-Philippe Andre 24417ff1a5 elua: Fix use of eina_file_mkstemp after previous patch
The API (that didn't work in the first place) was used wrongly
as it was assumed its behaviour was the same as mkstemp (duh!).
It turns out eina's version doesn't replace the input string but
returns a tmpstr instead.

@fix
2016-01-19 18:18:29 +09:00
Vincent Torri 67f44a3cf8 Efreet, Elua : use eina_file_mkstemp instead of mkstemp
Reviewers: jpeg

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3411
2015-12-08 14:24:59 +09:00
Vincent Torri 4f242fb48a efl: add binary mode to fdopen() calls
This allows better compatibility with Windows

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-05 21:05:23 +01:00
Cedric BAIL e1dee32e26 elua: remove the need to order the header correctly for Windows. 2015-05-07 09:53:10 +02:00
Daniel Kolesa 88faba813c elua lib: merge the 3 setup funcs into one
This allows simpler initialization and elua_util_require
can now queue up modules before full initialization is done.
2015-05-06 15:05:23 +01:00
Daniel Kolesa f8f9cc14a7 elua lib: API rename 2015-05-06 15:05:20 +01:00
Daniel Kolesa d8890209af elua lib: unify API conventions 2015-05-06 15:05:20 +01:00
Daniel Kolesa 51a5d09018 elua lib: const correctness 2015-05-06 15:05:19 +01:00
Daniel Kolesa f17e8025b8 elua lib: more Elua_State usage 2015-05-06 15:05:19 +01:00
Daniel Kolesa 128aa3a1ea elua lib: elua_io_loadfile now uses Elua_State 2015-05-06 15:05:19 +01:00
Daniel Kolesa 09869589c9 elua: move caching into the library 2014-12-12 13:39:57 +00:00