Commit Graph

281 Commits

Author SHA1 Message Date
Daniel Kolesa 8077e14fd6 elua: support for environment variable library path lookups in util.lib_load
This allows us to get rid of the LD_LIBRARY_PATH hack and thus make it more
cross-plaform as well as fix some bad behavior (with the hack it still looked
up the systemwide library if present instead of preferring in-tree)
2014-11-03 13:20:54 +00:00
Daniel Kolesa 92f369cd1b elua: generate property wrapper bodies with correct arguments in lualian 2014-10-17 16:52:41 +01:00
Daniel Kolesa 6311472e97 elua: generate __properties in lualian 2014-10-17 16:44:55 +01:00
Daniel Kolesa cf895efbb5 elua: we don't need property system in object core anymore 2014-10-17 15:19:06 +01:00
Daniel Kolesa 9cb6ccf686 elua: initial, restricted support for property syntax and property/event inheritance 2014-10-10 13:48:25 +01:00
Daniel Kolesa 8528d937e8 elua: remove testing elementary bindings 2014-10-10 13:04:35 +01:00
Daniel Kolesa a2d0e6042e elua: fix class c get function in lualian and make lua files rebuild on lualian changes 2014-10-08 09:58:40 +01:00
Daniel Kolesa 48c79d39f8 elua: add support for ctor func as last param 2014-10-07 15:06:32 +01:00
Daniel Kolesa f33101ea8c elua/autotools: generate .eo.lua files out of all eo files at build time
Also change the generator a bit so that it doesn't rely on lib name information
and fix the runtime to properly source lua files within tree.
2014-10-06 13:28:09 +01:00
Daniel Kolesa bcc61b1f12 elua: name ctor param names according to their func 2014-10-02 15:40:10 +01:00
Daniel Kolesa e293b90d2c elua: when combining ctor params, do not allow repeated param names 2014-10-02 15:26:15 +01:00
Daniel Kolesa ed8062cb19 elua: translate param names that are lua keywords into acceptable variants 2014-10-02 15:20:01 +01:00
Daniel Kolesa 99803b013f elua: generate the object ctor function 2014-10-02 14:55:30 +01:00
Daniel Kolesa 8a9c3a028e eolian: call the methods/properties from constructors directly for now 2014-10-02 14:40:58 +01:00
Daniel Kolesa 47a41298a3 elua: initial/incomplete support for constructors in lualian 2014-10-02 14:25:08 +01:00
Daniel Kolesa b1e16b482b elua: remove some more obsolete code (gen_ctor is no longer relevant) 2014-10-02 13:39:30 +01:00
Daniel Kolesa 596d01a83a elua: lualian type fix 2014-10-02 12:39:47 +01:00
Daniel Kolesa bd4b0d7a9d elua: remove obsolete code from lualian 2014-10-02 11:34:55 +01:00
Daniel Kolesa a2bde0bf96 eolian: new API: eolian_class_c_get_function_name_get
This allows bindings to easily retrieve name of the C function used to
retrieve the Eo_Class. Also, update the Lua Eolian bindings and generator.
2014-10-02 11:00:06 +01:00
Daniel Kolesa 17c9aeb80c elua: properly support _class_get funcs in lualian 2014-10-02 10:34:14 +01:00
Daniel Kolesa 39add190a7 elua: register classes with their underscored name 2014-10-01 16:32:29 +01:00
Daniel Kolesa 38ba6d09e3 elua: lualian table index fix 2014-10-01 14:17:54 +01:00
Daniel Kolesa d5f1a58d71 elua: refactor and fix generated lualian output 2014-10-01 10:44:44 +01:00
Daniel Kolesa e50a62fc8d elua: more useful generated output in lualian 2014-10-01 10:18:59 +01:00
Daniel Kolesa 73bf20fe4e elua: properly register the eo class into the system in generated code 2014-09-29 12:40:50 +01:00
Daniel Kolesa afc5dd02f9 elua: update lualian generation code to potentially deal with cycles 2014-09-29 11:52:50 +01:00
Daniel Kolesa 6850f9bb85 elua: begin work on new style constructors 2014-09-26 13:24:58 +01:00
Daniel Kolesa 3c021572db elua: remove ldouble from lualian 2014-09-26 13:16:13 +01:00
Daniel Kolesa 356e36922c elua: lualian event cleanup 2014-09-26 13:11:05 +01:00
Daniel Kolesa 05d4805f39 elua: remove Constructor/Default_Constructor from lualian (obsolete) 2014-09-26 13:10:03 +01:00
Daniel Kolesa fc40591f11 elua: update eolian bindings and generator 2014-09-25 15:53:42 +01:00
Mike Blumenkrantz 5375e154fe fix config.h inclusion across the tree 2014-09-23 15:56:46 -04:00
Daniel Kolesa 599bee0553 elua: update eolian bindings to latest version 2014-09-09 16:30:46 +01:00
Daniel Kolesa cdd4860520 eolian: turn db validation into separate API 2014-08-21 16:35:59 +01:00
Daniel Kolesa 5d5185f900 elua: support for passing data to modules via require 2014-08-21 15:32:03 +01:00
Daniel Kolesa efa40a5bb2 elua: first namespace is root module name, remove -M 2014-08-21 15:17:19 +01:00
Daniel Kolesa bbdb655bdb elua: update lualian 2014-08-21 09:26:05 +01:00
Daniel Kolesa 3636f5c9a8 elua: make generator work again
Also adds to_array API to Lua eina iterators.
2014-07-25 17:11:20 +01:00
Jean Guyomarc'h 56ce6d8e74 Unregister eina_log domain
Reviewers: cedric, q66

Reviewed By: q66

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1233
2014-07-25 11:08:47 +01:00
Daniel Kolesa 3be0dce99d eolian: builtin types size, ssize, intptr, uintptr, ptrdiff 2014-07-14 16:51:38 +01:00
Daniel Kolesa 7b9276042d elua: update lualian types 2014-07-14 16:35:22 +01:00
Daniel Kolesa 10ea6e9f0f elua: use the type API in lualian (but only basics of it) 2014-07-14 16:08:31 +01:00
Daniel Kolesa 30e8d8a735 elua: make the lua generator generate things again - type stuff will need re-work 2014-07-14 15:37:32 +01:00
Daniel Kolesa d870125231 elua: use the new dedup API in lualian 2014-06-30 17:20:07 +01:00
Daniel Kolesa ac22afec8a elua: update lualian against latest changes 2014-06-30 17:20:06 +01:00
Daniel Kolesa 7ea7542e9e elua: eo_prefix fix + add method name deduplication to lua generator 2014-06-23 14:16:12 +01:00
Daniel Kolesa 4995d1a4b0 elua: fix up some names and fix a name conflict on windows 2014-06-12 10:57:08 +01:00
Daniel Kolesa 808aa0ce50 elua: remove build_args, it's useless by now with our popen variant 2014-06-11 11:16:55 +01:00
Daniel Kolesa 0f4e617e9f elua: alignment 2014-06-11 11:15:11 +01:00
Daniel Kolesa cd29d76ce5 elua: fix coverity issues 2014-06-11 11:12:27 +01:00
Daniel Kolesa 9db8aa3b3f elua: use #ifdef ENABLE_NLS 2014-06-11 10:47:12 +01:00
Daniel Kolesa f0d008abf8 elua: lose support for loadfile modes for the time being 2014-06-11 10:41:02 +01:00
Chris Michael 3fd6061505 elua: Fix building of binary
If we have ENABLE_NLS then we need to #include <locale.h> for the
'setlocale' function else we get an implicit function declaration
warning, and a build failure due to LC_ALL not being defined

@fix

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-06-10 15:52:50 -04:00
Daniel Kolesa 319034d683 elua: fix warnings with -Wextra -Wshadow 2014-06-10 15:48:54 +01:00
Daniel Kolesa 17698c9c7e elua: xgettext fixes 2014-06-10 15:48:53 +01:00
Daniel Kolesa 6df8766b6a elua: some janitoring (add newlines to the end of files) 2014-06-10 15:48:53 +01:00
Daniel Kolesa f8852d88ec elua: better caching behavior (try to use bytecode first) 2014-06-10 15:48:53 +01:00
Daniel Kolesa 4ebdf91ca8 elua: use eina_prefix 2014-06-10 15:48:53 +01:00
Daniel Kolesa ff519ccc4a elua: move __ctor_common, __do_start, __do_end out of the object (as it's effectively empty now, it can be generated) 2014-06-10 15:48:53 +01:00
Daniel Kolesa 072f318d44 elua: generator fix 2014-06-10 15:48:53 +01:00
Daniel Kolesa 4d5f4537c9 do not generate __M if not needed 2014-06-10 15:48:53 +01:00
Daniel Kolesa e5bdfdfff0 elua: better namespace handling in lualian generator (support more than 1 level of namespace) 2014-06-10 15:48:53 +01:00
Daniel Kolesa 39cdde7280 elua: prevent method calls on bad objects 2014-06-10 15:48:53 +01:00
Daniel Kolesa 5ee0d530ca elua: propagate property definitions down the inheritance hierarchy 2014-06-10 15:48:53 +01:00
Daniel Kolesa b665bdbd8a elua: eolian binding fix plus support namespaces in the lualian generator 2014-06-10 15:48:53 +01:00
Daniel Kolesa 822c517f93 elua: initial xgettext call parsing 2014-06-10 15:48:53 +01:00
Daniel Kolesa 890660d485 elua: String and Call objects in xgettext generator - includes methods to automatically decide flags for String, making things a lot easier (thanks to chaining) 2014-06-10 15:48:53 +01:00
Daniel Kolesa 83032e611d elua: store flags for hashing as well 2014-06-10 15:48:53 +01:00
Daniel Kolesa 2d5806294a elua: never actually fail parsing (keep error messages for debug, hidden by default) 2014-06-10 15:48:53 +01:00
Daniel Kolesa 9c3f65640c elua: pre-parse flags in xgettext app 2014-06-10 15:48:53 +01:00
Daniel Kolesa e32a1d7e78 elua: xgettext's semantics are WTF, but okay, emulate it 2014-06-10 15:48:53 +01:00
Daniel Kolesa d0ff647776 elua: new util: table.uniq, and use it in xgettext generator 2014-06-10 15:48:53 +01:00
Daniel Kolesa aab605e36a elua: properly copy flags around 2014-06-10 15:48:52 +01:00
Daniel Kolesa ef2ad4f473 elua: fix xgettext --extract-all 2014-06-10 15:48:52 +01:00
Daniel Kolesa 378b376cc8 elua: complete lexer (lex all valid tokens) 2014-06-10 15:48:52 +01:00
Daniel Kolesa 9d5b2d433e elua: prepare xgettext for flag comments and try to emulate xgettext's silly behavior when it comes to concatenating comments 2014-06-10 15:48:52 +01:00
Daniel Kolesa d8caf323d8 elua: fix xgettext 2014-06-10 15:48:52 +01:00
Daniel Kolesa 88473de76a elua: fixed up the xgettext lua lexer/parser/generator 2014-06-10 15:48:52 +01:00
Daniel Kolesa be3e046865 elua: can only specify a keyword once 2014-06-10 15:48:52 +01:00
Daniel Kolesa 819b65090b elua: support for -a (--extract-all) option in xgettext 2014-06-10 15:48:52 +01:00
Daniel Kolesa 926282026b elua: merge comments in xgettext generator 2014-06-10 15:48:52 +01:00
Daniel Kolesa 7950c55965 elua: respect add-location / no-location options in xgettext 2014-06-10 15:48:52 +01:00
Daniel Kolesa ee8cdc5411 elua: group messages with the same contents together, generate grouped line info 2014-06-10 15:48:52 +01:00
Daniel Kolesa 7cf6a8abb0 elua: line information in the generated output 2014-06-10 15:48:52 +01:00
Daniel Kolesa a0b8f72ae9 elua: respect msgstr prefix and suffix in xgettext 2014-06-10 15:48:52 +01:00
Daniel Kolesa b638f4d034 elua: respect comment tags in the lexer 2014-06-10 15:48:52 +01:00
Daniel Kolesa b2af5ff97e elua: pass opts, flags around 2014-06-10 15:48:52 +01:00
Daniel Kolesa 0e5f9bc151 elua: change xgettext lexer to never include delimiters and also expand \n escape sequence in short strings to actual newline (no other escapes get this treatment) 2014-06-10 15:48:52 +01:00
Daniel Kolesa 297f9a821a elua: almost functional xgettext generator 2014-06-10 15:48:52 +01:00
Daniel Kolesa d8010702e8 elua: initial stuff for the xgettext generator, check existence of all input files beforehand in the app, and other fixes 2014-06-10 15:48:52 +01:00
Daniel Kolesa a98b916a74 elua: get_cmdline_from_argv cleanup + use _popen on windows 2014-06-10 15:48:52 +01:00
Daniel Kolesa 4311dc0439 elua: fclose before realpath 2014-06-10 15:48:52 +01:00
Daniel Kolesa 489b5fac11 elua: do not use fork in our "array popen" impl; instead serialize args in a platform specific way 2014-06-10 15:48:52 +01:00
Daniel Kolesa 6558d1ccc9 elua: reformat C source to EFL style 2014-06-10 15:48:52 +01:00
Daniel Kolesa 5f1e08bddf elua: remove prefix stripping from lualian 2014-06-10 15:48:52 +01:00
Daniel Kolesa 6614d02a69 elua: update lualian against latest eolian API 2014-06-10 15:48:52 +01:00
Daniel Kolesa 6896f2949e elua: xgettext parser: proper keyword parsing 2014-06-10 15:48:51 +01:00
Daniel Kolesa a47dc77a8a elua: xgettext parser argument parsing 2014-06-10 15:48:51 +01:00
Daniel Kolesa 812a601548 elua: extend the xgettext parser a bit 2014-06-10 15:48:51 +01:00
Daniel Kolesa 839ce0f651 elua: xgettext keyword fix 2014-06-10 15:48:51 +01:00