Commit Graph

30423 Commits

Author SHA1 Message Date
Tom Hacohen 663ea6cf53 Eo tests: Add the needed define for accessing protected calls. (2)
I don't know how came I missed that one the last time.
2015-05-06 18:03:57 +01:00
Tom Hacohen 6cb22bae35 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
2015-05-06 17:56:05 +01:00
Tom Hacohen 875bc15146 Eo tests: Add the needed define for accessing protected calls.
Fixes the warnings. Thanks to cedric for reporting.
2015-05-06 17:05:38 +01:00
Tom Hacohen 3dae6d9209 Eo base: Reorder the eolian file to be in a sensible order. 2015-05-06 15:46:19 +01:00
Tom Hacohen 47b63d0a1b 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.
2015-05-06 15:46:18 +01:00
Tom Hacohen c3c12ab4ad Eo: Improve documentation. 2015-05-06 15:46:18 +01:00
Tom Hacohen b26088d558 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.
2015-05-06 15:46:18 +01:00
Tom Hacohen 1506ec30ba Eo base: mark composite API as not ready. 2015-05-06 15:46:18 +01:00
Daniel Kolesa c77b91529b 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.
2015-05-06 15:05:55 +01: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 e9aadea402 elua lib: fix tests 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 0d8b38a2ac elua: include fix 2015-05-06 15:05:22 +01:00
Daniel Kolesa 5cd8e4e67b elua: remove long opts (not necessary or useful) 2015-05-06 15:05:22 +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 145cd1a615 elua lib: test elua_util_script_run 2015-05-06 15:05:21 +01:00
Daniel Kolesa 4da4f7a534 elua lib: test elua_util_file_run 2015-05-06 15:05:21 +01:00
Daniel Kolesa 9e28b90010 elua lib: unset environment vars in tests 2015-05-06 15:05:21 +01:00
Daniel Kolesa 5bfa8e8b14 elua lib: test raw file load 2015-05-06 15:05:21 +01:00
Daniel Kolesa 07133df0b5 elua lib: test error reporting + lua stack state 2015-05-06 15:05:21 +01:00
Daniel Kolesa e8a4f47f93 elua lib: test more utility APIs 2015-05-06 15:05:21 +01:00
Daniel Kolesa 3b17064c10 elua lib: test some util APIs 2015-05-06 15:05:21 +01:00