Commit Graph

76 Commits

Author SHA1 Message Date
Daniel Kolesa d27c27528c elua: load modules from local dirs first
This fixes cases when running scripts locally - local modules
are preferred over systemwide, avoiding possibly outdated system
scripts from being run.
2016-08-08 14:38:39 +01:00
Daniel Kolesa 0d126eab35 elua: enable module lookups in apps location
This will allow for better organization of the docgen script.
2016-07-19 16:19:42 +01:00
Daniel Kolesa 7a9fbd27ab elua: more file utilities in clib 2016-04-16 18:15:57 +01:00
Daniel Kolesa 18c208c7f9 elua: add several file/dir utils used by doc gen
This will be expanded into a proper util lib later.
2016-03-29 13:23:58 +01: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
Vincent Torri 3b44645363 efl: add binary mode to f(re)open() calls
This allows better compatibility with Windows

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-05 21:04:36 +01:00
Daniel Kolesa a3cec656c8 elua: remove non-portable lconv fields (breaks windows) 2015-10-19 11:52:03 +01:00
Daniel Kolesa b90c1bf90e elua lib: sanitize all file paths before writing them
This will prevent random nonsense from being written in.

It changes semantics slightly (documented) and also fixes
CID 1267463.

@fix
2015-06-09 14:01:25 +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 7cc295ae9a elua lib: use -1 for default values in localeconv 2015-05-06 15:05:23 +01:00
Daniel Kolesa 490deb9328 elua lib: add API to retrieve lconv from lua 2015-05-06 15:05:23 +01:00
Daniel Kolesa 3a685d40c0 elua lib: add a func to retrieve the current translation lang 2015-05-06 15:05:23 +01:00
Daniel Kolesa 093c7aa596 elua lib: remove unnecessary checks (always initialized) 2015-05-06 15:05:23 +01:00
Daniel Kolesa db66fe6255 elua lib: fix elua_util_app_load + docs 2015-05-06 15:05:23 +01:00
Daniel Kolesa e73f7f7a40 elua lib: use Eina_Bool as return val in some utils 2015-05-06 15:05:23 +01: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 660a4d7e1c elua lib: docs for elua_util_error_report + remove unnecessary arg 2015-05-06 15:05:22 +01:00
Daniel Kolesa a02bb195d9 elua lib: docs for elua_util_script_run 2015-05-06 15:05:22 +01:00
Daniel Kolesa a5486874d5 elua lib: docs for elua_util_app_load 2015-05-06 15:05:22 +01:00
Daniel Kolesa ca056e51ef elua lib: docs for elua_util_string_run 2015-05-06 15:05:22 +01:00
Daniel Kolesa f9520f7974 elua lib: docs for elua_util_file_run 2015-05-06 15:05:22 +01:00
Daniel Kolesa 1bc450402f elua lib: docs for elua_util_require 2015-05-06 15:05:22 +01:00
Daniel Kolesa 2a8eb85dff elua lib: docs for elua_io_loadfile 2015-05-06 15:05:22 +01:00
Daniel Kolesa 098b135799 elua lib: docs for elua_state_io_setup 2015-05-06 15:05:22 +01:00
Daniel Kolesa 123955994b elua lib: docs for elua_state_modules_setup 2015-05-06 15:05:22 +01:00
Daniel Kolesa 373ad4e9f6 elua lib: docs for elua_state_i18n_setup 2015-05-06 15:05:22 +01:00
Daniel Kolesa 8bd25cc966 elua lib: docs for elua_state_lua_state_get 2015-05-06 15:05:22 +01:00
Daniel Kolesa a27fe217df elua lib: docs for elua_state_appload_ref_push 2015-05-06 15:05:22 +01:00
Daniel Kolesa 9d46c23403 elua lib: docs for elua_state_require_ref_push 2015-05-06 15:05:22 +01:00
Daniel Kolesa 6a8c807f81 elua lib: docs for elua_state_include_path_add 2015-05-06 15:05:22 +01:00
Daniel Kolesa a54fa7abb9 elua lib: add docs for elua_state_prog_name_get 2015-05-06 15:05:22 +01:00
Daniel Kolesa 4d6f254885 elua lib: add docs for the dir retrieval APIs. 2015-05-06 15:05:22 +01:00
Daniel Kolesa eab576db61 elua lib: add doc for elua_state_dirs_fill 2015-05-06 15:05:22 +01:00
Daniel Kolesa fcf865f7ae elua lib: add docs for elua_state_dirs_set 2015-05-06 15:05:21 +01:00
Daniel Kolesa 002dc5a6b9 elua lib: add state_free doc 2015-05-06 15:05:21 +01:00
Daniel Kolesa 8f7c9a3b26 elua lib: add state_from_lua_state_get doc 2015-05-06 15:05:21 +01:00
Daniel Kolesa 8b6dd5a417 elua lib: add state_new doc 2015-05-06 15:05:21 +01:00
Daniel Kolesa f16f21f37d elua lib: add init/shutdown doc 2015-05-06 15:05:21 +01:00
Daniel Kolesa 81e3f753da elua lib: start adding documentation 2015-05-06 15:05:21 +01:00
Daniel Kolesa 7cb8d13980 elua lib: hide some APIs that should not be public 2015-05-06 15:05:21 +01:00
Daniel Kolesa e77ba60a58 elua lib: tests for core dirs + fix core dirs 2015-05-06 15:05:21 +01:00
Daniel Kolesa 7f05cfc0e6 elua lib: error_report is now in util namespace 2015-05-06 15:05:20 +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 24a694026a elua lib: add elua_state_setup_modules + use 2015-05-06 15:05:20 +01:00
Daniel Kolesa 8041b042fe elua lib: move i18n initialization there 2015-05-06 15:05:20 +01:00
Daniel Kolesa 0496762057 elua: utilize the new elua_util APIs 2015-05-06 15:05:20 +01:00
Daniel Kolesa 5aca5e13a1 elua lib: add elua_util_ APIs 2015-05-06 15:05:20 +01:00