summaryrefslogtreecommitdiff
path: root/src/bin (follow)
AgeCommit message (Collapse)Author
2016-03-11eolian generator: close the file with zero writeDaniel Kolesa
2016-03-11eolian generator: check fwrite return value currectlyDaniel Kolesa
This fixes CID 1327247. @fix
2016-03-10edje: Don't leak array source if we are going to exit functionChris Michael
This patch fixes a potential resource leak where we would previously create a new eina_array and then possibly return from this function (when checking validity of 's' parameter) without freeing the newly created array. Coverity CID1350291 @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-03-08Revert "ecore: Create Promises"Tom Hacohen
Reverting this at Felipe's request following my email. There are many things I strongly object to in this commit. I've touched the surface of those on the ML (which doesn't work at the moment), though we need to better discuss it. The gist: 1. dlsym is a really bad hack that is not even needed. 2. I don't see why eo should even be aware of promises. It's not aware of list, hash and etc. 3. The eolian changes were done wrong. This should have been discussed and consulted before done, even if only because of the amount of hacks it includes and the cross-domain (ecore, eo and eolian) nature of it. This reverts commit f9ba80ab33e0b94dad7ec103e6d261a644f7835f.
2016-03-08eolian_gen: mention the option for generating a stub header in the example useStefan Schmidt
Listed in the available options already but better also list it in the example usage where the other three generation types are listed as well.
2016-03-08eolian_gen: remove unused functions _nextline and _startlineStefan Schmidt
These two have no users and there is no point in keeping them around.
2016-03-06ecore: Create PromisesFelipe Magno de Almeida
Add a promise object that allows Eolian interface to include promises as a way to have asynchronous value return and composibility. The usage is like this in a .eo file: class Foo { methods { bar { params { promise: Promise<int>; } } } } Which will create the following API interface: void foo_bar(Ecore_Promise** promise); and the equivalent declaration for implementation. However, the API function will instantiate the Promise for the user and the implementer of the class.
2016-03-03eolian_cxx: Fix C++ compilation with new Eolian_Type_Type valuesVitor Sousa
2016-03-03eolian: initial conversion of C gen and tests to new type APIsDaniel Kolesa
2016-03-03eolian generator: @class methods take const objectDaniel Kolesa
2016-03-03eolian: generate correct const first param on methods where applicableDaniel Kolesa
2016-03-03eolian generator: use new call syntaxDaniel Kolesa
2016-03-03eolian generator: add obj as first param to header method prototypesDaniel Kolesa
2016-03-01edje epp - fix gcc warning about possible unused var usageCarsten Haitzler (Rasterman)
gcc now is complaining about out ancient cpp code possibly using newlines as undefined. this should keep this warning quiet - there isnt a real performance issue here. bin/edje/epp/cpplib.c: In function ‘cpp_get_token’: bin/edje/epp/cpplib.c:4602:15: warning: ‘newlines’ may be used uninitialized in this function [-Wmaybe-uninitialized] else if (newlines > 0) @fix
2016-02-29efl+edje: add EFL_VERSION_1_18 define for detecting 1.18 feature supportMike Blumenkrantz
this define means that any 1.18 feature can now be detected by testing for the presence of this define, even before the release has gone out for future (non-bugfix) releases, further defines should be created in addition to this one in order to provide detection for features in each version
2016-02-25edje cc: make the unnamed party non-fatal but punishhed by a pauseCarsten Haitzler (Rasterman)
allow old edc code that was bad with no named parts to still build BUT punish with a sleep for 10 seconds to help it be noticed, yet still work.
2016-02-23edje_cc_handlers: font field in new text_class should be NULL at the beginingVitalii Vorobiov
@fix
2016-02-23edje_cc: abort compile when unnamed part existsVyacheslav Reutskiy
Summary: abort compile when unnamed part exists. Reviewers: raster, reutskiy.v.v Reviewed By: reutskiy.v.v Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3723
2016-02-17Edje: add of some new features and fixes for Canvas3d types in edje_calc.perepelits.m
Summary: Adding of new properties for light in edje-3d. Recalculation of main properties in Canvas3D parts to provide animation (only those which I used in widgets). Checking of frame existing when setting material. Reviewers: cedric, raster, Hermet Subscribers: jpeg, artem.popov Differential Revision: https://phab.enlightenment.org/D3694 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-16Edje cc: Fix shadow warnings.Tom Hacohen
2016-02-10eolian: allow silencing of type errors in validationDaniel Kolesa
This allows generators to silence type errors in validation in order to reduce duplicate error messages when generating multiple files. Also adjusted the C generator to only emit type errors when generating Eo header files. @feature
2016-02-05edje_cc: allow omitting "name" keyword in color_classes.color_class blockJee-Yong Um
Summary: This allows developer to omit "name" keyword in color_classes.color_class block in EDC. Reviewers: cedric, jpeg Reviewed By: jpeg Differential Revision: https://phab.enlightenment.org/D3598 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-05edje_cc: fix detecting missing part for insert_before/afterCedric BAIL
Summary: Detecting missing part for insert_before/after is broken. This patch makes the feature work and clarifies error message, and removes redundant internal function. Reviewers: cedric, jpeg Subscribers: raster, jpeg Maniphest Tasks: T2513 Differential Revision: https://phab.enlightenment.org/D3576
2016-02-05edje: introduce color_tree (color_class inheritance)Jee-Yong Um
Summary: The "color_tree" block contains a list of one or more "node" blocks. A "node" block consists of its own color class name and the list of child color classes. At runtime, parent color class will be referred instead, if child color class is set to part but its color values are not defined. Reviewers: raster, Jaehyun_Cho, jpeg, cedric Reviewed By: cedric Subscribers: cedric, kimcinoo Differential Revision: https://phab.enlightenment.org/D3606 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-04Eo: add support for initialising eo after it has been shut down.Tom Hacohen
Until now it wasn't allowed/possible to init (eo_init) eo after it has been shut down (eo_shutdown). This commit fixes that, so now that is fully legal to have as many init/shutdown cycles as you want. There was a previous workaround for this issue: e47edc250dc715a6b0f94be4b1cb81d32e9d97fe. This should allow more flexibility when using the EFL in loadable modules and in various other scenarios. The problem is that the class_get() functions cache the previously created class for efficiency, but the class is freed if eo is shut down, so the cached pointer is actually invalid. The solution to the problem was to maintain a generation count (incremented every time we shut down eo), and compare that to a locally saved version in class_get(). If they don't match, recreate the class, as it has already been freed. @feature
2016-02-03eolian-js: Remove replacing commas by underscores in events.Felipe Magno de Almeida
This was done before when the identifier was used to generate methods. Now using strings to denote events this is not needed anymore.
2016-02-03eolian-js: Modified formating to replace verb position in method namesFelipe Magno de Almeida
Formatting now checks if the last function is a known verb and changes its position to the first word of the method if it is. Making the method use the same coding standard as node.js.
2016-02-02eolian: add parsing and generation of hot eventsDaniel Kolesa
Unfreezable events can now be marked @hot. @feature
2016-01-22edje_cc: remove redundant comments which makes reference seem weirdJee-Yong Um
Summary: Group.Parts.Part.Description.Domain @edcsubription is in wrong place, (actually that is not necessary one.) so it makes Group.Parts.Part.Description.Text block seem weird. Reviewers: jpeg, cedric Differential Revision: https://phab.enlightenment.org/D3597 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-20Revert "edje_cc: fix detecting missing part for insert_before/after"Carsten Haitzler (Rasterman)
This reverts commit 2ca99b8b68bd52ce187c2da54944144f12afb0b6. This breaks elm compile: EDJ default.edj edje_cc: Critical. In group "genlist_arrow": Unable to find part "sel_bevel" for insert_after in part "arrow_img_l".
2016-01-20edje_cc: fix detecting missing part for insert_before/afterJee-Yong Um
Summary: Detecting missing part for insert_before/after is broken. This patch makes the feature work and clarifies error message, and removes redundant internal function. Reviewers: cedric, jpeg Subscribers: jpeg Maniphest Tasks: T2513 Differential Revision: https://phab.enlightenment.org/D3576
2016-01-07efreet: fix undeclared functionJean Guyomarc'h
libgen is needed on OSX because it contains the prototype of basename() which is required in the compiling unit. The result of basename() was therefore implicitely converted into an integer, which could leed to subtile issues. @fix
2016-01-05edje: Fix compiler warning about set but not used variablesChris Michael
When compiling src/bin/edje, we end up with compiler warnings about 'pc' variable being set but not used. This patch just comments out (for now) those variables (as I am unsure if they are going to be used later or not). @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-01-04edje_cc: abort when insert_before/after part doesn't existJee-Yong Um
Summary: edje_cc does not check whether insert_before/after part exists. edje_cc will notify a compilation error to developer when insert_before or insert_after part does not exist. T2513 Reviewers: Hermet, NikaWhite Subscribers: cedric, jpeg Maniphest Tasks: T2513 Differential Revision: https://phab.enlightenment.org/D3517 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04edje: implementation of Edje_3dperepelits.m
Summary: I have a strange feeling that I always commit the same code to edje-3d, I hope it will finish very soon. However here are some important new keywords, descriptors for them, methods for models, structure for providing animation in edje programs and some more changes. Reviewers: raster, Hermet, cedric Reviewed By: cedric Subscribers: jpeg, artem.popov Projects: #efl Differential Revision: https://phab.enlightenment.org/D3437 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-30Edje_cc: support braces for description.proxy attribute.Mykyta Biliavskyi
Fix parsing Group.Parts.Part.Description.Proxy block in cases when uses braces: part { type: PROXY; description { .. proxy { source_clip: 1; source_visible: 1; } .. } } @fix
2015-12-29Evil: integrate the dlfcn code into EvilVincent Torri
This will remove some incompatibilities with other packages, especially for win-builds
2015-12-24edje: add text_classes syntax to EDCJee-Yong Um
Summary: text_class can be defined in text_classes block. T2900 @feature Reviewers: jpeg, raster Subscribers: raster, cedric, Jaehyun_Cho, CHAN, kimcinoo Differential Revision: https://phab.enlightenment.org/D3435
2015-12-23efl-js: JavaScript Eolian bindingFelipe Magno de Almeida
To configure efl sources with bindings to use in nodejs add ––with-js=nodejs in configure flags to generate node files $ configure --with-js=nodejs and compile normally with: $ make $ make install To use, you have to require efl: efl = require('efl') The bindings is divided in two parts: generated and manually written. The generation uses the Eolian library for parsing Eo files and generate C++ code that is compiled against V8 interpreter library to create a efl.node file that can be required in a node.js instance. @feature
2015-12-23efreetd: send ipc for EFREET_EVENT_DESKTOP_CACHE_BUILD...alwaysMike Blumenkrantz
since the conversion from dbus -> ecore-ipc, efreetd has failed to notify when a cache build has completed, instead only sending the current state of the desktop cache: not built fix T2733 @fix
2015-12-23edje - list mouse pressed signals as they are new in edcrefCarsten Haitzler (Rasterman)
2015-12-16edje_cc: redo part type setting to be even more correctMike Blumenkrantz
when changing the type of a part which already has descriptions, it's necessary to avoid copying any of the previous type-specific desc data this should be the last of them... @fix
2015-12-16edje_cc: correctly copy part descriptions when setting part typeMike Blumenkrantz
in the case where a part is inherited, changing the type will lead to broken part/program lookups for the part during resolving in write-out; memcpy alone is not enough to fix this. @fix
2015-12-16edje_cc: move part desc free function within fileMike Blumenkrantz
no funcitonal changes
2015-12-16edje_cc: terminate filter file scriptsMike Blumenkrantz
==24030== Invalid read of size 1 ==24030== at 0x4A0AC77: strcmp (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==24030== by 0x598A9DC: _eet_dictionary_lookup (eet_dictionary.c:69) ==24030== by 0x598AA93: eet_dictionary_string_add (eet_dictionary.c:103) ==24030== by 0x598107B: eet_data_put_string (eet_data.c:857) ==24030== by 0x598213F: eet_data_put_type (eet_data.c:1433) ==24030== by 0x59895AB: eet_data_put_unknown (eet_data.c:4798) ==24030== by 0x598A113: _eet_data_descriptor_encode (eet_data.c:5172) ==24030== by 0x59894A4: eet_data_put_array (eet_data.c:4760) ==24030== by 0x598A113: _eet_data_descriptor_encode (eet_data.c:5172) ==24030== by 0x5989617: eet_data_put_unknown (eet_data.c:4807) ==24030== by 0x598A113: _eet_data_descriptor_encode (eet_data.c:5172) ==24030== by 0x5983E06: eet_data_write_cipher (eet_data.c:2396) ==24030== by 0x5983E92: eet_data_write (eet_data.c:2412) ==24030== by 0x406BC2: data_thread_head (edje_cc_out.c:674) ==24030== by 0x406D51: data_write_header (edje_cc_out.c:717) ==24030== by 0x40B52E: data_write (edje_cc_out.c:2439) ==24030== by 0x40563D: main (edje_cc.c:399) ==24030== Address 0xf45cb7b is 0 bytes after a block of size 347 alloc'd ==24030== at 0x4A089C7: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==24030== by 0x414BAC: mem_alloc (edje_cc_mem.c:15) ==24030== by 0x41B66A: st_filters_filter_file (edje_cc_handlers.c:4718) ==24030== by 0x410EDA: new_statement (edje_cc_parse.c:229) ==24030== by 0x41227C: parse (edje_cc_parse.c:719) ==24030== by 0x412E5C: compile (edje_cc_parse.c:1044) ==24030== by 0x405624: main (edje_cc.c:394) ==24030== ==24030== Invalid read of size 1 ==24030== at 0x4A0AC77: strcmp (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==24030== by 0x598AAFB: eet_dictionary_string_add (eet_dictionary.c:109) ==24030== by 0x598107B: eet_data_put_string (eet_data.c:857) ==24030== by 0x598213F: eet_data_put_type (eet_data.c:1433) ==24030== by 0x59895AB: eet_data_put_unknown (eet_data.c:4798) ==24030== by 0x598A113: _eet_data_descriptor_encode (eet_data.c:5172) ==24030== by 0x59894A4: eet_data_put_array (eet_data.c:4760) ==24030== by 0x598A113: _eet_data_descriptor_encode (eet_data.c:5172) ==24030== by 0x5989617: eet_data_put_unknown (eet_data.c:4807) ==24030== by 0x598A113: _eet_data_descriptor_encode (eet_data.c:5172) ==24030== by 0x5983E06: eet_data_write_cipher (eet_data.c:2396) ==24030== by 0x5983E92: eet_data_write (eet_data.c:2412) ==24030== by 0x406BC2: data_thread_head (edje_cc_out.c:674) ==24030== by 0x406D51: data_write_header (edje_cc_out.c:717) ==24030== by 0x40B52E: data_write (edje_cc_out.c:2439) ==24030== by 0x40563D: main (edje_cc.c:399) ==24030== Address 0xf45cb7b is 0 bytes after a block of size 347 alloc'd ==24030== at 0x4A089C7: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==24030== by 0x414BAC: mem_alloc (edje_cc_mem.c:15) ==24030== by 0x41B66A: st_filters_filter_file (edje_cc_handlers.c:4718) ==24030== by 0x410EDA: new_statement (edje_cc_parse.c:229) ==24030== by 0x41227C: parse (edje_cc_parse.c:719) ==24030== by 0x412E5C: compile (edje_cc_parse.c:1044) ==24030== by 0x405624: main (edje_cc.c:394) @fix
2015-12-16edje_cc: track parts for descriptions, ensure part types match when inheritingMike Blumenkrantz
since it's now possible to inherit parts, it's possible that inheriting from a different part type can lead to memory errors in the case where one part has a larger desc struct than the other @fix
2015-12-16efreet_icon_cache_create: null theme eet file to avoid double freeMike Blumenkrantz
@fix
2015-12-14Eolian gen: Don't fail if file is empty (--gi)Jean-Philippe Andre
@fix
2015-12-10edje_cc: Use ecore_file_file_get() and ecore_file_dir_get() for EDC parsingVincent Torri
Replace current EDC parsing code in edje_cc on Windows with the code using ecore_file_file_get() and ecore_file_dir_get(). Signed-off-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
2015-12-08Edje cc: Fix use of uninitialised value.Tom Hacohen
Slash should be initialised to NULL, as if slash was not found in case we don't even look for it. Also, further restrict slash's scope. @fix