Daniel Kolesa
c562b38588
eolian: properly get the legacy attribute of a method/property
2014-08-22 17:01:36 +01:00
Daniel Kolesa
b75014a024
eolian: refactor the struct/enum field APIs
2014-08-22 16:56:41 +01:00
Daniel Kolesa
f35b5e35df
eolian: guard eo types in legacy headers
2014-08-22 14:40:01 +01:00
Daniel Kolesa
19d8209266
eolian: clean up type generation + fix function pointers
2014-08-22 14:04:22 +01:00
Daniel Kolesa
189bc4512d
eolian: fix type generation for function pointers
2014-08-22 13:45:20 +01:00
Carsten Haitzler
9415a1d310
embryo_cc - fix usless array check
...
fix CID 1039346
2014-08-22 20:14:58 +09:00
Carsten Haitzler
14008d3111
embryo_cc - fix uselss array existance check
...
fix CID 1039345
2014-08-22 20:14:58 +09:00
Carsten Haitzler
e9afad0b07
check strrchr to be sure
...
this fixes CID 1039342
2014-08-22 20:14:58 +09:00
Carsten Haitzler
554563cc21
fix fopen return check and error
...
fixes CID 1039341
2014-08-22 20:14:57 +09:00
Carsten Haitzler
ceee029484
ethumbd - check eldbus_service_object_data_get return like everywhere
...
this fixes CID 1039338
2014-08-22 20:14:57 +09:00
Carsten Haitzler
32e5189952
embryo_cc - check fseeek return and complain
...
fixes CID 996788
2014-08-22 20:14:57 +09:00
Mike Blumenkrantz
84b985b45c
edje_cc only prints kitten-harming message with nosave
2014-08-21 15:03:28 -04:00
Mike Blumenkrantz
82c0f67f02
de-frenchify edje_cc --no-save option
2014-08-21 15:02:46 -04: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
Cedric BAIL
9e8ece571b
edje: edje_cc - warn people when they do bad things.
2014-08-21 12:04:53 +02:00
Irfan Abdul
3709a908d7
edje: Edje_cc - fix not storing edc sources in .edj file with --no-save option
...
Reviewers: govi, raster, jpeg, zmike, cedric
Subscribers: cedric
@fix
Differential Revision: https://phab.enlightenment.org/D1292
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-08-21 12:04:53 +02:00
Daniel Kolesa
fce1e61ff5
eolian: fix shadow warnings
2014-08-21 09:26:06 +01:00
Daniel Kolesa
452497eac5
eolian: remove a bunch of pointless stringshare refs + fix in lua
2014-08-21 09:26:05 +01:00
Daniel Kolesa
423cfb5f61
eolian/generator: support for legacy-only functions
2014-08-21 09:26:05 +01:00
Daniel Kolesa
bbdb655bdb
elua: update lualian
2014-08-21 09:26:05 +01:00
Daniel Kolesa
e6954d143d
eolian: drop Eina_Value
...
Because of Eina_Value being less than optimal in our usage, we're dropping it in Eolian.
This simplifies the code and makes it easier to bind to other languages, which
will aid new generators. Also, we're dropping long double support from eo files
and expressions as it causes an ABI breakage in gcc 4.4.
2014-08-21 09:26:05 +01:00
Daniel Kolesa
913e0f09fa
eolian: get rid of the data hash in Eolian_Function
2014-08-21 09:26:05 +01:00
Daniel Kolesa
1688749ce9
eolian: add support for opaque struct types (+ tests)
2014-08-21 09:26:05 +01:00
Daniel Kolesa
2df5eae338
eolian/generator: support for private and protected events
2014-08-21 09:26:04 +01:00
Daniel Kolesa
93726c86a3
eolian: get rid of eolian_parameter_information_get
2014-08-21 09:26:04 +01:00
Daniel Kolesa
ad3dbe834b
eolian: API refactoring
...
Remove eolian_implement_information_get. Also, fix some nasty lookup problems.
2014-08-21 09:26:04 +01:00
Daniel Kolesa
057e01d67f
eolian: API refactoring
...
Start getting rid of the terrible _information_get APIs, starting with events.
2014-08-21 09:26:04 +01:00
Daniel Kolesa
ffbf149da1
eolian: new API: eolian_class_event_scope_get
2014-08-21 09:26:04 +01:00
Daniel Kolesa
a5964f0252
eolian: add comments containing original expressions to generated enum fields
...
This required a new API, eolian_expression_serialize.
2014-08-21 09:26:04 +01:00
Daniel Kolesa
18c2b5082e
eolian: allow usage of stack Eina_Value in expr API
2014-08-21 09:26:04 +01:00
Daniel Kolesa
732e3f417e
eolian: new API: eolian_type_enum_legacy_prefix_set + generator changes
...
This change adds a new API to retrieve the legacy prefix for enum members
and also adds support for generating enums into the C generator. Besides that,
it prevents generation of entire struct contents when the .eo file declares
a named struct inside of a typedef - as the struct itself gets generated later on.
2014-08-21 09:26:04 +01:00
Daniel Kolesa
2e3887b994
eolian: struct/enum fixes and initial test for enums
2014-08-21 09:26:04 +01:00
Daniel Kolesa
8c1b9ed3e2
eolian: initial API for expression evaluation
...
This commit also does several side (related) changes. Particularly, it updates
the Eolian C generator to use the new API, it adds missing expr types (null, char)
and masks, updates the API dealing with default return values to use expressions
instead of strings and does several fixes (mainly in lexer) around the place.
It also disallows single quoted strings as those are reserved for characters.
2014-08-21 09:26:03 +01:00
Daniel Kolesa
520275c66b
eolian: use newly created implicit typedefs in legacy API
...
Also update tests accordingly.
2014-08-21 09:26:03 +01:00
Daniel Kolesa
bb24b60638
eolian: generate implicit typedef for each class
...
And use these typedefs instead of just Eo in API.
2014-08-21 09:26:03 +01:00
Carsten Haitzler
c77accc0b9
eolain impl generator - fix possible null access
...
fix CID 1231994
2014-08-20 09:05:58 +09:00
Carsten Haitzler
2574f1578a
eolian - warning-- for eolian impl generator
2014-08-18 14:56:53 +09:00
Carsten Haitzler
d444e8f5f3
eolain_gen - fix implementation generation - it didn't even compile
...
so the test suites were useless because they didn't ecompile what was
generated. it was missing a ) at the end of calling eo_do_super to
start with. it was missing a call to do_uper fo destructors too. also
it didnt deal with the #include "blah.eo.c" at the file end either so
it produced uncompilable src at the start. again - also fix. this also
fixes test case comparisons to match the now correct generation that
compiles.
2014-08-16 13:09:17 +09:00
Carsten Haitzler
53ddf83842
edje_pick - remove unused var that we just free and nothing else
...
this should fix CID 1039669
2014-08-14 19:25:32 +09:00
Carsten Haitzler
bcbe9f621e
embryo_cc - check return value
...
this matches the check for fgetpos()
2014-08-14 19:11:06 +09:00
Carsten Haitzler
4e85b6b57b
embryo_cc - fix return value checking
...
fixes CID 1039712
2014-08-14 19:09:30 +09:00
Carsten Haitzler
f9cef6f079
epp - fix unchecked return
...
fix CID 1039717
2014-08-14 19:04:38 +09:00
Carsten Haitzler
00d3bd1747
epp - fix unchecked return
...
this fixes CID 1039718
2014-08-14 19:02:39 +09:00
Carsten Haitzler
27ef84e372
edje_decc - fix unchecked return value
...
fix CID 1039719
2014-08-14 19:00:37 +09:00
Carsten Haitzler
2ee14e5997
embryo_cc - make assert clearer
...
this fixes coverity warning CID 1039730
2014-08-14 18:55:02 +09:00
Carsten Haitzler
874e87e8df
fix noop self-assignment
...
this fixes CID 1040028
2014-08-14 18:25:42 +09:00
Carsten Haitzler
e82b61b420
epp - fix bit underflow in bitshift for multibyte
...
this fixes CID 1193200
2014-08-14 17:39:11 +09:00
Carsten Haitzler
c87748a7c1
evas cserve - handle possilbe null ref and fentry pointers
...
this fixes CID 1193209 with possible NULL refs.
2014-08-14 17:16:02 +09:00
Vyacheslav Reutskiy
d08dd13d3d
edje_pick: fix a copied aliases
...
Summary:
@fix
Reviewers: raster, Hermet, seoz, cedric
Subscribers: cedric, seoz, Sachiel
Differential Revision: https://phab.enlightenment.org/D1305
2014-08-14 00:08:07 +09:00
Vyacheslav Reutskiy
c8976fb21e
edje_pick: fix a segfault on 'set' copy
...
Summary:
wrong structure, a Edje_Image_Directory_Set_Entry, used for copy
a set's data to new file.
@fix
Reviewers: raster, seoz, cedric, Hermet
Reviewed By: Hermet
Subscribers: Sachiel, cedric, seoz
Differential Revision: https://phab.enlightenment.org/D1304
2014-08-14 00:03:18 +09:00
Carsten Haitzler
970968daab
embyro-cc - fix coverity overruun issue
...
overrun in fatal msg access - fix CID 1039315
2014-08-13 17:14:53 +09:00
Carsten Haitzler
84e032a252
embryo_cc - coverity mem access issue - fix
...
this fixes CID 1039316 in case error num is beyond errmsg bounds
2014-08-13 17:13:12 +09:00
Carsten Haitzler
b0e9886635
embryo_cc - fix coverity buffer overrun
...
fixes CID 1039317
2014-08-13 16:19:17 +09:00
Carsten Haitzler
6974a67f6f
evas - cserve - dummy slave - shut coverity up and unmap mmaped mem
...
while right, coverity doest know that this is just a dummy example,
so... make it happy by unmapping. fixes CID 1193218
2014-08-13 15:24:00 +09:00
Carsten Haitzler
db447bece5
fix non 0 terminated buffer in ethmubd slave
...
this fixes a potential non 0 terminated string buffer in ethumb slave
process - harmless for apps, but might happen. this fixes CID 1193232
2014-08-12 22:24:43 +09:00
Savio Sena
3b24c6ce91
eolian-cxx: Scan all files only when explicitly requested.
...
Fix T1463
2014-08-08 15:12:31 -03:00
Stefan Schmidt
2fa2c11910
edje_cc_handler: Fix build break from recent Edcref changes
...
Having correct syntax is needed here. ;)
2014-08-08 16:25:51 +02:00
Davide Andreoli
62af2b9bd1
Edcref: final doc improvements.
...
* Be consistent with the way we specify parameters
* A last css refinement
2014-08-08 15:54:38 +02:00
Davide Andreoli
1eca781d1d
Edcref: fixed (I hope) the doc for parts aliases
2014-08-08 15:54:38 +02:00
Davide Andreoli
cb84a5f994
Edcref: try to give sections titles more context
...
Also fixed some incorrect @context
Changed the @edcsubsection tags so they live in first line of the doccomment, this way you can read them when the file is folded-closed, improving the code readability.
2014-08-08 15:54:38 +02:00
Davide Andreoli
c00875818b
Edcref: tab-- , they tend to break the html render
2014-08-08 15:54:38 +02:00
Davide Andreoli
5fd1e27dce
edcref: move the Links functions so they dont break descriptions docs
...
Plus some other small doc adjustment
2014-08-08 15:54:38 +02:00
Davide Andreoli
b2b4e62dd3
edcref: move 3 params to be in the correct section
2014-08-08 10:37:03 +02:00
Davide Andreoli
6653ce2306
edcref: be consistent wrt params
2014-08-08 10:27:26 +02:00
Davide Andreoli
34c75a29f6
Edcref: and finally apply a cool style
...
Now the edc ref is decently readable
2014-08-08 02:30:33 +02:00
Davide Andreoli
a8a7158801
edcref: fix the base_scale property docs
...
base_scale is a property, so document it propertly
Also added missing @since
2014-08-08 02:30:33 +02:00
Daniel Zaoui
99888ceaec
Eolian/Generator: fix generation of class functions.
...
The generation for legacy was missing. The patch removes too the EINA_UNUSED
flag for static functions data.
2014-08-07 16:06:22 +03:00
Davide Andreoli
ba7ea64d97
edcref: review all the @since usage
...
* put them inside the @property block they belongs
* do not show micro version (1.7 instead of 1.7.0)
2014-08-07 14:41:25 +02:00
Davide Andreoli
25ce050920
edcref: quick access list: fix a link and make it more compact
2014-08-07 13:21:31 +02:00
Davide Andreoli
657d973858
edcref: unbreak formatting of the page
...
Every @block need a @context, or the table will broken up and formatting will be bad.
Also be a bit less redundant
2014-08-07 12:28:46 +02:00
Davide Andreoli
4e5d70511a
edcref: small typo in doc
2014-08-07 11:01:36 +02:00
Gwanglim Lee
52fab4e55d
edje: fix coverity defects
...
Summary:
CID 1214113: logically dead code
CID 1230295: dereference null return value
CID 1230296: use after free
@fix
Test Plan: N/A
Reviewers: raster, cedric, jpeg, q66
Reviewed By: q66
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D1275
2014-08-06 10:55:32 +01:00
Daniel Kolesa
8c677a1f0e
eolian: fread fix
...
Instead of 1 element of size N, we should read N elements of size 1 in
order to sensibly compare the result with the result of calling ftell.
2014-08-04 10:56:35 +01:00
Daniel Kolesa
97dc9cac36
ethumbd_slave: fix coverity defect
...
Fixes CID 1193232 (string not null terminated)
2014-08-04 10:44:35 +01:00
Daniel Kolesa
23761ed627
edje_cc_handlers: fix coverity defects
...
Fixes CID 1193224, 1193225, 1193226, 1193227, 1193230 (resource leak)
2014-08-04 10:26:06 +01:00
Daniel Kolesa
91bf465d52
eolian/generator: coverity fix
...
Fixes CID 1229130 (ignoring number of bytes read)
2014-08-04 09:59:36 +01:00
Daniel Kolesa
64c2b292ba
eolian: preliminary eo file support for builtin true/false/null
...
Real API will use the new expression system, but that won't get into 1.11.
2014-07-28 10:16:15 +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
58a9de0309
eolian/generator: properly generate the data arg on class methods
...
For class methods, we need to generate unused void*, not a pointer to data struct.
2014-07-24 15:32:34 +01:00
Daniel Kolesa
178022ab65
eolian/generator: add support for class methods/properties
2014-07-24 12:15:55 +01:00
Daniel Zaoui
805d746910
Eolian: Generate typedefs and structs.
...
This patch permits the generation of typedefs and structs in the
legacy and Eo header files. It includes tests.
2014-07-24 11:59:34 +03:00
Daniel Zaoui
fe3602b0d8
Eolian: little refactoring of the C generator.
...
This change is a preparation for the generation of the types and a
little cleaning.
2014-07-24 11:59:34 +03:00
Jaehwan Kim
7e5d2606cc
edje: Add dpi feature.
...
Summary:
This dpi is used to get the scale for each collection.
If each collection has a described dpi, it calculates a proper scale
based on the dpi and dpi which is described in the collection.
@feature
Test Plan:
If add dpi to collection of edc, the edje will save the value as the dpi of the collection.
For example, if the dpi of your device is 100, you just set dpi: 100 in the collection of edc.
If the edj is loaded in another device(dpi is 200), it will scaled 2 times.
It is possible that the described dpi of application and theme are different.
In that case, application and theme have a different scale.
It makes the edj that made in different environment works in one device.
Reviewers: seoz, zmike, JackDanielZ, Hermet, woohyun, cedric, raster
Reviewed By: raster
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D1190
2014-07-24 14:50:25 +09:00
Daniel Kolesa
0c3487cd3d
eolian/generator: fix coverity issues
...
Fixes CID 1228663 and 1228634.
2014-07-24 00:32:06 +01:00
Daniel Kolesa
a3182948ad
eolian: use libgen.h basename
2014-07-23 19:37:03 +01:00
Daniel Kolesa
315d5de11d
eolian: use just filename (not path) for eolian_class_get_by_file
2014-07-23 17:15:00 +01:00
Daniel Kolesa
88cc1167e9
eolian: eolian_parameters_get -> eolian_function_parameters_get
2014-07-23 14:17:19 +01:00
Daniel Kolesa
fd0210f30e
eolian: list_get -> get, find_by -> get_by
2014-07-23 14:13:21 +01:00
Daniel Kolesa
8d775fc96d
eolian_cxx: fix migration to iterators
2014-07-23 13:45:25 +01:00
Daniel Zaoui
0efeeaf1c0
Eolian: modify APIs to return iterators instead of lists.
...
The change affects the C and the C++ generators.
2014-07-23 13:45:25 +01:00
Daniel Zaoui
48d0570786
Eolian/Generator: simplify eo_do invocation.
...
Since eo_do returns the Eo operation result, we can generate:
{
return eo_do(obj, ...);
}
instead of:
{
int ret;
eo_do(obj, ret = ...);
return ret;
}
2014-07-22 13:44:51 +03:00
Savio Sena
721d8ca144
eolian-cxx: Oops. Fixing function_return_is_explicit_void the right way.
2014-07-21 22:56:31 -03:00
Savio Sena
b3bd72cd11
eolian-cxx: Handle exclicitly void-return getters.
...
Whenever a getter explicitly defines a void return the generated code
shall not convert single-parameter getters in any ways.
Actually the correct approach would be to delegate all conversions to
Eolian Database instead of for the generators.
2014-07-21 22:13:54 -03:00
Savio Sena
6e8c063f27
eolian-cxx: Added missing keyword.
...
Keyword "register" is also used in Elementary.
2014-07-21 21:11:33 -03:00
Savio Sena
07b75b9997
eolian-cxx: Handle C++ keywords in function names.
...
When function names are C++ keywords append '_' to it.
2014-07-21 20:17:44 -03:00
Daniel Kolesa
3b8a03cf7b
eolian/generator: remove check_same
2014-07-21 17:13:43 +01:00
Daniel Kolesa
a19adb71b9
eolian/generator: add code to check if the newly generated output is the same as old output - disabled for now because of build system issues
2014-07-21 16:00:57 +01:00
Felipe Magno de Almeida
7e84cc0154
eo-cxx: Added a few complex types to lookup table
2014-07-18 18:57:14 -03:00
Felipe Magno de Almeida
3abc94696e
Fixed type looking up for complex types
2014-07-18 18:57:14 -03:00
Felipe Magno de Almeida
2ff390e087
Changed uses of std::abort to assert's with better description
2014-07-18 18:57:14 -03:00
Savio Sena
e807421f60
eolian-cxx: Fixed complex-types.
2014-07-18 18:57:13 -03:00
Savio Sena
5d61edabd8
eolian-cxx: Fixed the translation of classnames
2014-07-18 18:57:13 -03:00
Felipe Magno de Almeida
637a97a0f5
eolian-cxx: Fixed using eo::base for extension_inheritance
...
Extended the logic for rewriting the eo::base to efl::eo::base for
parents to extension inheritance.
2014-07-18 18:57:13 -03:00
Savio Sena
67e187bebc
eolian-cxx: Fixed the translation of the native type.
2014-07-18 18:57:13 -03:00
Savio Sena
78e396ac19
eolian-cxx: Initial version of complex types / callbacks / events implementation.
2014-07-18 18:57:13 -03:00
Tom Hacohen
076d816364
Eolian generator: Disable system dir scan.
...
This was causing trouble for cross compilation.
Thanks to q66 for the fix and cedric for reporting.
2014-07-17 16:07:57 +01:00
Chris Michael
30b048b3b0
ecore-drm: Remove ecore_drm binary files
...
We no longer need the ecore_drm_launch binary to open input devices.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-07-15 09:42:01 -04: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
5d4cc031f9
eolian: s/dflt/default/g
2014-07-11 14:30:22 +01:00
Daniel Kolesa
888dc3b6fe
eolian: remove eolian_show and replace it with variants for class/struct/typedef/all.
2014-07-11 13:10:04 +01:00
Daniel Kolesa
883c4ca7df
eolian: events now use Eolian_Type* instead of stringshare
2014-07-11 11:47:37 +01:00
Jean-Philippe Andre
8ce52c2380
Edje: Add support for ETC1+Alpha
...
If the image is not opaque and etc1 is selected, choose
ETC1_ALPHA as encoding format.
2014-07-11 16:40:34 +09:00
Daniel Kolesa
a26546bc6b
eolian: the entire API is now const correct
2014-07-09 21:31:03 +01:00
Daniel Kolesa
dc1ea844a7
eolian_cxx: pass everything by ref
2014-07-09 21:02:41 +01:00
Daniel Kolesa
580aea04cd
eolian: refactoring step six
...
Move Eolian_Function as well, plus fix const correctness of several API funcs.
2014-07-09 20:59:31 +01:00
Savio Sena
012b586c8b
eolian-cxx: Pass references instead of pointers.
...
Fix Eolian-Cxx API to pass references instead of pointers.
2014-07-09 15:55:24 -03:00
Daniel Kolesa
accdd50f50
eolian: refactoring step five
...
Move from all instances of Eolian_Type to Eolian_Type*.
2014-07-09 17:18:02 +01:00
Daniel Kolesa
1a4f87d365
eolian: refactoring step four
...
Move from all isntances of Eolian_Function_Parameter to Eolian_Function_Parameter* plus const fixes.
2014-07-09 17:01:19 +01:00
Daniel Kolesa
c9119b0c88
eolian: refactoring step three
...
Move from all instances of Eolian_Event and Eolian_Implement to Eolian_Event* and Eolian_Implement*.
2014-07-09 16:45:58 +01:00
Daniel Kolesa
96eaaaf074
eolian: refactoring step two
...
Move from all instances of Eolian_Class to Eolian_Class*.
2014-07-09 16:33:19 +01:00
Daniel Kolesa
892c5cba5f
eolian: fix coverity defects
2014-07-09 10:19:42 +01:00
Daniel Kolesa
53fb9515e9
eolian/generator: add asterisk on inout too
2014-07-08 14:15:36 +01:00
wonguk.jeong
f803ba27b7
ethumb: fix setup related API problem
...
Summary:
setup related API was not working at all due to below problems
1. dbus type signature is wrong. it's array of dictionary not array of struct
2. since quality value was assigned to compress value, there was a problem during saving png image (out of bound)
3. orientation_set API was not working except NONE and ORIGINAL
@fix
Test Plan: make thumbnail by using elm_thumb_add -> orientation set to 90 CCW -> check whether image is rotated properly or not
Reviewers: raster, cedric
CC: seoz, cedric
Differential Revision: https://phab.enlightenment.org/D1138
Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-07-07 19:11:02 +02:00
Daniel Kolesa
5168297fdb
eolian: new API: eolian_system_directory_scan, use it
2014-07-07 16:48:54 +01:00
Savio Sena
4e6825d6ac
eolian-cxx: Removed Wshadow warnings.
...
Summary:
Removes Wshadow warnings by prepending/appending radices to
the target variables and parameters.
Reviewers: felipealmeida
CC: cedric
Differential Revision: https://phab.enlightenment.org/D1118
2014-07-04 20:04:32 -03:00
Daniel Kolesa
84451db638
eolian: have eolian_all_classes_list_get instead of eolian_class_names_list_get
2014-07-03 22:12:31 +01:00
Daniel Kolesa
a1588f66e5
eolian_cxx: no need to normalize
2014-07-01 16:10:21 +01:00
Savio Sena
ce63b16f40
eolian-cxx: Make proper handling of namespaces.
...
Summary:
The generation of class prefixes was not taking into account the full
classname -- the namespace was not being prepended to it. Fixed that and
also re-organized the code a bit, removed some Wshadow warnings also.
This commit fixes 'make examples' and 'make check'.
Reviewers: tasn, cedric, q66
CC: felipealmeida, smohanty, cedric
Differential Revision: https://phab.enlightenment.org/D1100
2014-07-01 10:55:45 +01:00
Daniel Kolesa
dd22cf8148
eolian/generator: shadow fix
2014-06-30 21:53:08 +01:00
Daniel Kolesa
14a85859c5
eolian: _CLASS -> _CLASS/INTERFACE/MIXIN
2014-06-30 21:29:50 +01:00
Daniel Kolesa
c05493b480
eolian-cxx: Added namespaces and more (see below)
...
Implemented namespaces
Added eolian_wrappers.hh with C++ code wrapping Eolain API
Changed eolian_cxx program options. Now they're eolian_gen's
Added functions to safe_str.hh (safe_lower, safe_upper, normalize_spaces, path_base)
Added a mocked version of type_lookup.hh in advance. The full
version will come as soon as complex-types are added.
Made apply again by Daniel Kolesa, original implementation by Savio Sena.
2014-06-30 19:35:06 +01:00
Daniel Kolesa
7b54a0101c
eolian: new type API
...
This new API supports function pointer types, multiple type subtypes, const attribute without parsing
the name string, own attribute for any partial type and more. This commit also updates the C and C++
generators so that they compile and generate correct code.
@feature
2014-06-30 17:20:39 +01:00
Daniel Kolesa
d870125231
elua: use the new dedup API in lualian
2014-06-30 17:20:07 +01:00
Daniel Kolesa
8a82e0fdf4
eolian_cxx: use the new eolian dedup API
2014-06-30 17:20:07 +01:00
Daniel Kolesa
c0576cee73
eolian: new API: eolian_function_full_c_name_get - reduces duplication of code
2014-06-30 17:20:06 +01:00
Daniel Kolesa
5e5655463c
eolian_cxx/generator: support for eot files
2014-06-30 17:20:06 +01:00
Daniel Kolesa
ac22afec8a
elua: update lualian against latest changes
2014-06-30 17:20:06 +01:00
Daniel Kolesa
7a8ef6d02a
eolian: introducing support for .eot files
...
.eot files are similar to .eo, but they can't contain classes; all .eot files found in include paths
are parsed and information is added into the database. They're there for typedefs and eventually also
enums, structs and constants.
@feature
2014-06-30 17:20:06 +01:00
Vorobiov Vitalii
49344287ac
Documentation: adding missed documentation to edcref (map.color param)
...
Summary:
There is param (of the map block in part's description) that allows user to
set a color for specified vertex/point of that part.
That param was undocumented so actually no one know that this param is exist and can be used in edj file.
Two main fixes:
- adding documentation for map.color param in edc reference.
- adding .edc source code example for seeing how map.color param works.
@fix
Reviewers: cedric, Hermet, raster, seoz
Reviewed By: cedric
CC: cedric, reutskiy.v.v
Differential Revision: https://phab.enlightenment.org/D1083
2014-06-24 17:11:09 +03: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
cc3809d295
eolian_cxx: support API deduplication like the main generator
2014-06-20 21:11:21 +01:00
Daniel Kolesa
43e2349203
eolian/generator: public api func name deduplication, spank tasn if it breaks
2014-06-20 17:09:03 +01:00
Daniel Kolesa
74181192ad
eolian: fix error handling and memory leaks
2014-06-19 16:04:08 +01:00
Jean-Philippe Andre
b06af7ace0
Edje: Add LOSSY_ETC2 to Edje_Edit
...
Found out using edje_inspector...
2014-06-18 16:28:37 +09:00
Jean-Philippe Andre
e8d7c46253
Edje: Add support for ETC2 through LOSSY_ETC2 images
...
Declare your images as LOSSY_ETC2 to encode them as ETC2.
Add options to edje_cc to disable etc2.
Use ETC2 support from Eet.
@feature
2014-06-13 17:58:08 +09:00
Jean-Philippe Andre
d0d9dbfdba
Evas: Add encoding parameter to the savers
...
ecore_evas_convert: Add -e/--encoding option
This uses directly the encoding parameter.
For now, used only by the TGV saver, but there is no other way
to specify between ETC1 and ETC2. And we don't have a mixed ETC1+2
mode (yet).
@feature
2014-06-13 16:05:48 +09: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
Daniel Kolesa
b168a515e2
elua: sanitize keywords and extract info in xgettext (include default keywords for lua), dgettext and dngettext compatibility calls
2014-06-10 15:48:51 +01:00
Daniel Kolesa
00bec70b69
elua: initial work on parser part of the extractor
2014-06-10 15:48:51 +01:00
Daniel Kolesa
3f4fd784c2
elua: file search function
2014-06-10 15:48:51 +01:00
Daniel Kolesa
7c449a14e1
elua: make xgettext use excluded_files, do some re-mappings, and have a default search dir
2014-06-10 15:48:51 +01:00
Daniel Kolesa
02ef160621
evil: add fork, adjust elua to use that
2014-06-10 15:48:51 +01:00
Daniel Kolesa
9c42595225
elua: popenv fix (read proper stack items as args), getopt fix (fixed array append), xgettext: use cutil.popenv
2014-06-10 15:48:51 +01:00
Daniel Kolesa
e9b555c57b
elua: popenv function
2014-06-10 15:48:51 +01:00
Daniel Kolesa
a04948c02f
elua: fork_win cleanup
2014-06-10 15:48:51 +01:00
Daniel Kolesa
420f7a869a
elua: include fork_win.c in compilation
2014-06-10 15:48:51 +01:00
Daniel Kolesa
88ca0dbf3f
elua: custom non-shell popen implementation
2014-06-10 15:48:51 +01:00
Daniel Kolesa
30415f9261
elua: fork impl for windows
2014-06-10 15:48:51 +01:00
Daniel Kolesa
fd6c1f6888
elua: comment is a valid token in xgettext
2014-06-10 15:48:51 +01:00
Daniel Kolesa
5b7f44ea5b
elua: add build_args function to core cutil library, for building normalized args string in a platform independent way
2014-06-10 15:48:51 +01:00
Daniel Kolesa
9bb3667e2b
elua: xgettext is again at least partially functional
2014-06-10 15:48:51 +01:00
Daniel Kolesa
139502dc76
elua: handle all xgettext args correctly
2014-06-10 15:48:51 +01:00
Daniel Kolesa
b1bfd90d40
elua: xgettext progress, currently broken
2014-06-10 15:48:51 +01:00
Daniel Kolesa
708aaeeb12
elua: pass opts to callback
2014-06-10 15:48:51 +01:00
Daniel Kolesa
6d739a8746
elua: ngettext support
2014-06-10 15:48:51 +01:00
Daniel Kolesa
63ccaee7fd
elua: ability to specify custom opts table for each desc in getopt
2014-06-10 15:48:51 +01:00
Daniel Kolesa
bc2b6b503f
elua: simplified getopt (allocates fewer tables)
2014-06-10 15:48:51 +01:00
Daniel Kolesa
01a4fd89d2
elua: do not include the : in arg[0]
2014-06-10 15:48:51 +01:00
Daniel Kolesa
ab05d47d7c
elua: free format buffers immediately
2014-06-10 15:48:51 +01:00
Daniel Kolesa
e8b356858b
elua: never pcall in format, instead keep track of the types properly
2014-06-10 15:48:51 +01:00
Daniel Kolesa
ebbce82403
elua: perform conversion beforehand
2014-06-10 15:48:51 +01:00
Daniel Kolesa
654653bc4a
elua: check types manually instead of pcall in one place for format
2014-06-10 15:48:51 +01:00
Daniel Kolesa
5eccfb29b7
elua: some more checking for no value
2014-06-10 15:48:51 +01:00
Daniel Kolesa
0c7b3e5d6b
elua: format bug fix
2014-06-10 15:48:51 +01:00
Daniel Kolesa
b304316b81
elua: better error handling for format
2014-06-10 15:48:51 +01:00
Daniel Kolesa
3da9de3d41
elua: use string buffer in all places for format plus extra optimizations
2014-06-10 15:48:50 +01:00
Daniel Kolesa
a6e50fa9c7
elua: use custom string buffer impl for format (avoids multiple table allocs and calls to string.char)
2014-06-10 15:48:50 +01:00
Daniel Kolesa
8738ca957d
elua: slight optimization of format func
2014-06-10 15:48:50 +01:00
Daniel Kolesa
006a49ddda
elua: relatively slow but very powerful string formatter with support for positional and named format arguments, invoked via %
2014-06-10 15:48:50 +01:00
Daniel Kolesa
e33efdb745
elua: xgettext: support for -X
2014-06-10 15:48:50 +01:00
Daniel Kolesa
c0baa15b11
elua: insert input files always after opts
2014-06-10 15:48:50 +01:00
Daniel Kolesa
d90bba655f
elua: expand the input file lists for xgettext call (we want to leave out lua files)
2014-06-10 15:48:50 +01:00
Daniel Kolesa
bebe011676
elua: use the new app loading system
2014-06-10 15:48:50 +01:00
Daniel Kolesa
544bf37c30
elua: a general system for application loading without having to specify explicit path
2014-06-10 15:48:50 +01:00
Daniel Kolesa
85367d35be
elua: match file extensions in a case insensitive way
2014-06-10 15:48:50 +01:00
Daniel Kolesa
38ae60f744
elua: more checks
2014-06-10 15:48:50 +01:00
Daniel Kolesa
69a64dd620
elua: a bit more informative getopt plus better arg handling when calling to xgettext
2014-06-10 15:48:50 +01:00
Daniel Kolesa
344c1cbaf1
elua: more informative getopt
2014-06-10 15:48:50 +01:00
Daniel Kolesa
55b7973e56
elua: xgettext lexer enhancements
2014-06-10 15:48:50 +01:00
Daniel Kolesa
23c27f06c5
elua: simplified source
2014-06-10 15:48:50 +01:00
Daniel Kolesa
b71231d93d
elua: typo fix
2014-06-10 15:48:50 +01:00