Tom Hacohen [Wed, 6 May 2015 17:03:57 +0000 (18:03 +0100)]
Eo tests: Add the needed define for accessing protected calls. (2)
I don't know how came I missed that one the last time.
Tom Hacohen [Fri, 17 Apr 2015 13:31:19 +0000 (14:31 +0100)]
Eo: Add eo_do_part.
This is a convenience macro to be used by the common pattern of getting
a part and then immediately calling functions on it. For example,
without this macro, you'd have to write code like:
Eo *part;
eo_do(obj, part = efl_part_name_get("partname"));
eo_do(part, a_set(7));
while using the helper function trims it to:
eo_do_part(obj, efl_part_name_get("partname"), a_set(7));
@feature
Tom Hacohen [Wed, 6 May 2015 16:05:38 +0000 (17:05 +0100)]
Eo tests: Add the needed define for accessing protected calls.
Fixes the warnings. Thanks to cedric for reporting.
Tom Hacohen [Fri, 1 May 2015 14:59:57 +0000 (15:59 +0100)]
Eo base: Reorder the eolian file to be in a sensible order.
Tom Hacohen [Fri, 1 May 2015 14:47:35 +0000 (15:47 +0100)]
Eo base: Fix eo_constructor's declaration.
Remove it from the constructors section.
This was wrong. This place is for functions that are allowed to be
passed to eo_add() and should be used by bindings to create
constructors.
This is wrong for both cases, as this should always be called, not
optional.
Also remove the redundant legacy: null.
Tom Hacohen [Fri, 1 May 2015 14:36:13 +0000 (15:36 +0100)]
Eo: Improve documentation.
Tom Hacohen [Fri, 1 May 2015 12:10:01 +0000 (13:10 +0100)]
Eo: Take eo out of beta.
This is following a last review and a discussion on IRC. Eo has been
stable (apart of a decision a few months ago to support more compilers)
for a long while. Developers are already using it for a while, and it's
stupid to break it for them anyway, so we might as well make this
promise now. There are no plans to change it anymore, and it's been
heavily used and tested throughout the EFL for a few releases now.
I'm tagging it as a feature, although it's not, I'm doing it for the
automatic changelog generation. :)
@feature.
Tom Hacohen [Fri, 1 May 2015 11:57:40 +0000 (12:57 +0100)]
Eo base: mark composite API as not ready.
Daniel Kolesa [Wed, 6 May 2015 14:05:55 +0000 (15:05 +0100)]
Merge branch 'devs/q66/elua_lib_overhaul'
This merge introduces a solid, documented API for the Elua library,
allowing people to embed Elua into their own applications. For now
this library is beta and will remain so for a while, in case more
changes are necessary.
Daniel Kolesa [Thu, 30 Apr 2015 12:35:11 +0000 (13:35 +0100)]
elua lib: use -1 for default values in localeconv
Daniel Kolesa [Thu, 30 Apr 2015 10:50:09 +0000 (11:50 +0100)]
elua lib: add API to retrieve lconv from lua
Daniel Kolesa [Thu, 30 Apr 2015 10:15:48 +0000 (11:15 +0100)]
elua lib: add a func to retrieve the current translation lang
Daniel Kolesa [Mon, 27 Apr 2015 10:34:29 +0000 (11:34 +0100)]
elua lib: remove unnecessary checks (always initialized)
Daniel Kolesa [Mon, 27 Apr 2015 10:30:33 +0000 (11:30 +0100)]
elua lib: fix elua_util_app_load + docs
Daniel Kolesa [Fri, 24 Apr 2015 15:01:24 +0000 (16:01 +0100)]
elua lib: use Eina_Bool as return val in some utils
Daniel Kolesa [Thu, 23 Apr 2015 15:13:27 +0000 (16:13 +0100)]
elua lib: fix tests
Daniel Kolesa [Thu, 23 Apr 2015 15:02:58 +0000 (16:02 +0100)]
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.
Daniel Kolesa [Thu, 23 Apr 2015 14:39:37 +0000 (15:39 +0100)]
elua: include fix
Daniel Kolesa [Thu, 23 Apr 2015 14:30:12 +0000 (15:30 +0100)]
elua: remove long opts (not necessary or useful)
Daniel Kolesa [Mon, 20 Apr 2015 16:04:33 +0000 (17:04 +0100)]
elua lib: docs for elua_util_error_report + remove unnecessary arg
Daniel Kolesa [Mon, 20 Apr 2015 16:00:16 +0000 (17:00 +0100)]
elua lib: docs for elua_util_script_run
Daniel Kolesa [Mon, 20 Apr 2015 15:53:34 +0000 (16:53 +0100)]
elua lib: docs for elua_util_app_load
Daniel Kolesa [Mon, 20 Apr 2015 15:52:21 +0000 (16:52 +0100)]
elua lib: docs for elua_util_string_run
Daniel Kolesa [Mon, 20 Apr 2015 15:51:25 +0000 (16:51 +0100)]
elua lib: docs for elua_util_file_run
Daniel Kolesa [Mon, 20 Apr 2015 15:49:53 +0000 (16:49 +0100)]
elua lib: docs for elua_util_require
Daniel Kolesa [Mon, 20 Apr 2015 15:38:52 +0000 (16:38 +0100)]
elua lib: docs for elua_io_loadfile
Daniel Kolesa [Mon, 20 Apr 2015 15:35:55 +0000 (16:35 +0100)]
elua lib: docs for elua_state_io_setup
Daniel Kolesa [Mon, 20 Apr 2015 15:34:35 +0000 (16:34 +0100)]
elua lib: docs for elua_state_modules_setup
Daniel Kolesa [Mon, 20 Apr 2015 15:33:38 +0000 (16:33 +0100)]
elua lib: docs for elua_state_i18n_setup
Daniel Kolesa [Mon, 20 Apr 2015 15:12:22 +0000 (16:12 +0100)]
elua lib: docs for elua_state_lua_state_get
Daniel Kolesa [Mon, 20 Apr 2015 15:10:49 +0000 (16:10 +0100)]
elua lib: docs for elua_state_appload_ref_push
Daniel Kolesa [Mon, 20 Apr 2015 15:10:31 +0000 (16:10 +0100)]
elua lib: docs for elua_state_require_ref_push
Daniel Kolesa [Mon, 20 Apr 2015 15:09:37 +0000 (16:09 +0100)]
elua lib: docs for elua_state_include_path_add
Daniel Kolesa [Mon, 20 Apr 2015 15:08:36 +0000 (16:08 +0100)]
elua lib: add docs for elua_state_prog_name_get
Daniel Kolesa [Mon, 20 Apr 2015 14:06:01 +0000 (15:06 +0100)]
elua lib: add docs for the dir retrieval APIs.
Daniel Kolesa [Mon, 20 Apr 2015 14:03:53 +0000 (15:03 +0100)]
elua lib: add doc for elua_state_dirs_fill
Daniel Kolesa [Mon, 20 Apr 2015 13:57:43 +0000 (14:57 +0100)]
elua lib: add docs for elua_state_dirs_set
Daniel Kolesa [Mon, 20 Apr 2015 13:49:10 +0000 (14:49 +0100)]
elua lib: add state_free doc
Daniel Kolesa [Mon, 20 Apr 2015 13:47:47 +0000 (14:47 +0100)]
elua lib: add state_from_lua_state_get doc
Daniel Kolesa [Mon, 20 Apr 2015 13:45:08 +0000 (14:45 +0100)]
elua lib: add state_new doc
Daniel Kolesa [Mon, 20 Apr 2015 13:41:50 +0000 (14:41 +0100)]
elua lib: add init/shutdown doc
Daniel Kolesa [Mon, 20 Apr 2015 13:38:18 +0000 (14:38 +0100)]
elua lib: start adding documentation
Daniel Kolesa [Thu, 16 Apr 2015 15:30:05 +0000 (16:30 +0100)]
elua lib: hide some APIs that should not be public
Daniel Kolesa [Thu, 16 Apr 2015 15:20:55 +0000 (16:20 +0100)]
elua lib: test elua_util_script_run
Daniel Kolesa [Thu, 16 Apr 2015 15:06:48 +0000 (16:06 +0100)]
elua lib: test elua_util_file_run
Daniel Kolesa [Thu, 16 Apr 2015 14:38:28 +0000 (15:38 +0100)]
elua lib: unset environment vars in tests
Daniel Kolesa [Thu, 16 Apr 2015 14:36:17 +0000 (15:36 +0100)]
elua lib: test raw file load
Daniel Kolesa [Thu, 16 Apr 2015 14:33:10 +0000 (15:33 +0100)]
elua lib: test error reporting + lua stack state
Daniel Kolesa [Thu, 16 Apr 2015 14:25:37 +0000 (15:25 +0100)]
elua lib: test more utility APIs
Daniel Kolesa [Thu, 16 Apr 2015 14:23:33 +0000 (15:23 +0100)]
elua lib: test some util APIs
Daniel Kolesa [Thu, 16 Apr 2015 14:16:15 +0000 (15:16 +0100)]
elua lib: tests for require/appload refs
Daniel Kolesa [Thu, 16 Apr 2015 14:11:43 +0000 (15:11 +0100)]
elua lib: setup funcs tests
Daniel Kolesa [Thu, 16 Apr 2015 14:08:02 +0000 (15:08 +0100)]
elua lib: test elua_state_dirs_fill
Daniel Kolesa [Thu, 16 Apr 2015 13:58:42 +0000 (14:58 +0100)]
elua lib: tests for core dirs + fix core dirs
Daniel Kolesa [Thu, 16 Apr 2015 13:08:28 +0000 (14:08 +0100)]
elua lib: test progname
Daniel Kolesa [Thu, 16 Apr 2015 13:02:21 +0000 (14:02 +0100)]
elua: test state retrieval
Daniel Kolesa [Thu, 16 Apr 2015 12:45:08 +0000 (13:45 +0100)]
elua: initial test (state creation/deletion)
Daniel Kolesa [Thu, 16 Apr 2015 09:55:27 +0000 (10:55 +0100)]
elua lib: add test suite
Daniel Kolesa [Tue, 14 Apr 2015 15:14:51 +0000 (16:14 +0100)]
elua lib: error_report is now in util namespace
Daniel Kolesa [Tue, 14 Apr 2015 13:14:50 +0000 (14:14 +0100)]
elua lib: API rename
Daniel Kolesa [Mon, 13 Apr 2015 15:21:25 +0000 (16:21 +0100)]
elua lib: unify API conventions
Daniel Kolesa [Mon, 13 Apr 2015 14:42:02 +0000 (15:42 +0100)]
elua: cleanup launcher
Daniel Kolesa [Fri, 10 Apr 2015 16:10:08 +0000 (17:10 +0100)]
elua: cleanup main runtime
Daniel Kolesa [Fri, 10 Apr 2015 16:04:07 +0000 (17:04 +0100)]
elua lib: add elua_state_setup_modules + use
Daniel Kolesa [Fri, 10 Apr 2015 15:58:27 +0000 (16:58 +0100)]
elua lib: move i18n initialization there
Daniel Kolesa [Fri, 10 Apr 2015 15:45:05 +0000 (16:45 +0100)]
elua: utilize the new elua_util APIs
Daniel Kolesa [Fri, 10 Apr 2015 15:36:26 +0000 (16:36 +0100)]
elua lib: add elua_util_ APIs
Daniel Kolesa [Fri, 10 Apr 2015 13:41:19 +0000 (14:41 +0100)]
elua: use the new progname API
Daniel Kolesa [Fri, 10 Apr 2015 13:39:20 +0000 (14:39 +0100)]
elua lib: add a way to retrieve the progname
Daniel Kolesa [Fri, 10 Apr 2015 13:36:26 +0000 (14:36 +0100)]
elua lib: add progname to state
Daniel Kolesa [Fri, 10 Apr 2015 13:04:50 +0000 (14:04 +0100)]
elua: remove -e param (we're not a REPL)
Daniel Kolesa [Fri, 10 Apr 2015 11:10:57 +0000 (12:10 +0100)]
elua: utilize the new APIs for handling require/appload
Daniel Kolesa [Fri, 10 Apr 2015 11:05:54 +0000 (12:05 +0100)]
elua lib: add APIs to retrieve refs to require/appload
Daniel Kolesa [Fri, 10 Apr 2015 11:02:08 +0000 (12:02 +0100)]
elua lib: add APIs for include path management
Daniel Kolesa [Fri, 10 Apr 2015 10:44:30 +0000 (11:44 +0100)]
elua: remove elua_prefix from main runtime
Daniel Kolesa [Fri, 10 Apr 2015 10:42:09 +0000 (11:42 +0100)]
elua: new API elua_state_dirs_fill + utilize
Daniel Kolesa [Fri, 10 Apr 2015 10:29:34 +0000 (11:29 +0100)]
elua: remove path decision from register_require
Daniel Kolesa [Thu, 9 Apr 2015 16:33:35 +0000 (17:33 +0100)]
elua: remove EFL_RUN_IN_TREE hack (pass cmdline args)
Daniel Kolesa [Thu, 9 Apr 2015 15:12:15 +0000 (16:12 +0100)]
elua lib: manage bound modules within Elua_State
Daniel Kolesa [Thu, 9 Apr 2015 13:37:12 +0000 (14:37 +0100)]
elua lib: make Elua_State fields private (opaque pointers)
Daniel Kolesa [Thu, 9 Apr 2015 13:35:37 +0000 (14:35 +0100)]
elua: use the new state get API
Daniel Kolesa [Thu, 9 Apr 2015 13:34:21 +0000 (14:34 +0100)]
elua lib: add elua_state_lua_state_get
Daniel Kolesa [Thu, 9 Apr 2015 13:21:18 +0000 (14:21 +0100)]
elua lib: const correctness
Daniel Kolesa [Thu, 9 Apr 2015 13:17:38 +0000 (14:17 +0100)]
elua lib: new APIs to retrieve dirs
Daniel Kolesa [Thu, 9 Apr 2015 12:56:08 +0000 (13:56 +0100)]
elua lib: more Elua_State usage
Daniel Kolesa [Thu, 9 Apr 2015 12:48:06 +0000 (13:48 +0100)]
elua lib: elua_io_loadfile now uses Elua_State
Daniel Kolesa [Thu, 9 Apr 2015 10:06:48 +0000 (11:06 +0100)]
elua lib: use eina safety checks
Daniel Kolesa [Wed, 8 Apr 2015 15:46:30 +0000 (16:46 +0100)]
elua: use the dir paths from Elua_State
Daniel Kolesa [Wed, 8 Apr 2015 15:43:14 +0000 (16:43 +0100)]
elua lib: add elua_state_dirs_set
Daniel Kolesa [Wed, 8 Apr 2015 15:30:44 +0000 (16:30 +0100)]
elua: no need for luaL_openlibs, the lib does that
Daniel Kolesa [Wed, 8 Apr 2015 14:11:53 +0000 (15:11 +0100)]
elua: remove the smart cb wrapper (ffi callbacks work fine for us)
Daniel Kolesa [Wed, 8 Apr 2015 14:03:30 +0000 (15:03 +0100)]
elua: pass Elua_State through Main_Data
Daniel Kolesa [Wed, 8 Apr 2015 13:54:43 +0000 (14:54 +0100)]
elua: Elua_state for elua_loadapp
Daniel Kolesa [Wed, 8 Apr 2015 13:52:06 +0000 (14:52 +0100)]
elua lib: Elua_State for elua_state_setup_i18n
Daniel Kolesa [Wed, 8 Apr 2015 13:46:31 +0000 (14:46 +0100)]
elua: use more Elua_State
Daniel Kolesa [Wed, 8 Apr 2015 13:43:52 +0000 (14:43 +0100)]
elua: elua_report_error now takes Elua_State*
Daniel Kolesa [Wed, 8 Apr 2015 13:29:58 +0000 (14:29 +0100)]
elua lib: add elua_state_from_lua_get
Daniel Kolesa [Wed, 8 Apr 2015 13:14:49 +0000 (14:14 +0100)]
elua: use elua_state_new/free
Daniel Kolesa [Wed, 8 Apr 2015 13:00:57 +0000 (14:00 +0100)]
elua lib: add elua_state_new and elua_state_free
Daniel Kolesa [Wed, 8 Apr 2015 12:56:19 +0000 (13:56 +0100)]
elua lib: add Elua_State (used later to hold elua-specific data)