Daniel Zaoui
dd5a49081c
Eolian: Merge of Eolian C generator
...
This patchset includes the parser for the meta-data (.eo) files and
the generator of C and H files.
.eo files are not included and will be added one after the other during
the splitting of the C files.
The APIs supplied by Eolian are beta APIs. Expect changes.
2014-03-03 14:15:34 +02:00
Yossi Kantor
1287177ac2
Eolian: New features/bugs fixes
...
1) Include files now have include guards
2) --gh option generates legacy header with --legacy flag and eo header
without --legacy flag
3) EOLIAN keyword is introduced to mark functions used by generated
file.
4) * for comments when comment text is empty
2014-03-03 14:09:57 +02:00
Tom Hacohen
b3beeb4244
Eolian: Updated Eolian_Helper.
...
In order to use, you need to do as follows:
Add
include /src/Makefile_Eolian_Helper.am
To the Makefile.am that uses it.
Put .eo files in extra dist, e.g:
EXTRA_DIST = elm_code.eo
Add all the files you'd like to generate in BUILT_SOURCES, e.g:
BUILT_SOURCES = elm_code.eo.c elm_code.eo.h elm_code.eo.legacy.h
2014-03-03 14:09:57 +02:00
Yossi Kantor
67dd5ef497
Eolian: New generation feature tested and bugs fixed
...
1) Underscore for static global names
2) Escape special characters for in-code descriptions
3) Proper spaces for generated lines
2014-03-03 14:09:57 +02:00
Daniel Zaoui
87f661e08e
Eolian: support non null parameters.
...
The generation is only needed in legacy headers.
2014-03-03 14:09:57 +02:00
Tom Hacohen
8cc58ed7cb
Eolian: Fixed pc file to correctly generate.
...
First of all, it's now correctly generated, unlike before.
Second of all, it now lists eoincludedir, the directory for all
of the .eo include files.
2014-03-03 14:09:57 +02:00
Daniel Zaoui
210051ebb3
Eolian/Generator: fix data type for implement function
2014-03-03 14:09:57 +02:00
Daniel Zaoui
10d7bffc4a
Eolian: support warn_unused variables.
2014-03-03 14:09:56 +02:00
Daniel Zaoui
2db3cdb5e3
Eolian: Valgrind cleaning
2014-03-03 14:09:56 +02:00
Daniel Zaoui
21533a0079
Eolian/Generator: errors handling improvement.
...
Errors occuring during generation are now propagated to the main (i.e
exit code).
Logs have been ported to EINA_LOG instead of printf.
2014-03-03 14:09:56 +02:00
Daniel Zaoui
baaf92c93a
Eolian/Generator: implementation prototype change
...
Since we know the type of the private data given as parameter of the
implemented function, we can set it instead of void *.
2014-03-03 14:09:56 +02:00
Daniel Zaoui
60919ecbe6
Eolian/Generator: improve command line arguments and logging.
...
Now --gh/--gc don't require an additional argument.
If eolian_gen is called with --gc and some file.eo, the tool will
generate file.eo.c.
You can force another filename by using the -o with an argument.
Moreover, logging has been added to the generator.
2014-03-03 14:09:56 +02:00
Yossi Kantor
521701ff70
Eolian: naming convention for implemented functions
...
The format is now _<current_class>_<inherited_class>_function_name.
2014-03-03 14:09:56 +02:00
Daniel Zaoui
02f4c112ca
Eolian/Generator: add private data to the prototypes of implementations
2014-03-03 14:09:56 +02:00
Daniel Zaoui
7b42be92d5
Eolian/Library: oops, use INF before log domain creation
2014-03-03 14:09:56 +02:00
Yossi Kantor
c7beca12ec
Eolian: Class type and class constructor/destructor generation added
2014-03-03 14:09:56 +02:00
Daniel Zaoui
748a01c47f
Eolian/Library: add log domain and NULL checks
2014-03-03 14:09:56 +02:00
Daniel Zaoui
920c035c57
Eolian: Support of virtual pure functions.
...
Virtual pure can be defined in Eolian format by adding in the section
implements virtual::class_name::func_name[::func_type].
2014-03-03 14:09:55 +02:00
Daniel Zaoui
f7dce9c8c9
Eolian/Generator: update options and return value from main.
...
-v is used instead of -V
returns 1 when an error occurred
useless print removed when scanning include directories
2014-03-03 14:09:55 +02:00
Daniel Zaoui
4d7e908e49
Eolian/Lexer: support class::constructor/destructor
2014-03-03 14:09:55 +02:00
Daniel Zaoui
5ae7cc962f
Eolian: Format changes
...
- Support keys/values for properties instead of params
- Direction for parameters syntax changed from in to @in...
- obj:const changed to const in .eo
2014-03-03 14:09:55 +02:00
Daniel Zaoui
a8661af73e
Eolian: update .gitignore
2014-03-03 14:09:55 +02:00
Daniel Zaoui
ba2cdd723d
Eolian/Lexer: fix bug occuring during generation.
...
A string set by the lexer and used by the generator was set to NULL
instead of "constructor"/"destructor".
2014-03-03 14:09:55 +02:00
Daniel Zaoui
61b180448a
Eolian/Generator: improve the files management.
...
Now, the .eo file given as parameter doesn't have to be into the given
include paths.
2014-03-03 14:09:55 +02:00
Daniel Zaoui
b8cc668a9f
Eolian/Lexer: inherits now is specified near the class name.
...
No more section inherits is supported.
2014-03-03 14:09:55 +02:00
Daniel Zaoui
857bdca899
Eolian/Lexer: remove default ctor/dtor.
...
They are now supported inside the section implements.
2014-03-03 14:09:55 +02:00
Daniel Zaoui
2f34bcac4b
Eolian/Lexer: support of class types.
...
Now, .eo format has to supply the class type class, abstract, mixin or
interface.
Example: class Elm_Button {...
2014-03-03 14:09:55 +02:00
Daniel Zaoui
9add4c695c
Eolian: remove --class option.
...
Now, the .eo file needs to be supplied instead of the class.
2014-03-03 14:09:54 +02:00
Yossi Kantor
17abdbdd43
Eolian: Code review fixes
...
1) API defined under EFL_BETA_API_SUPPORT
2) Init counters for init and shutdown
3) void for no-parameters functions
2014-03-03 14:09:54 +02:00
Daniel Zaoui
4ec1ae2d0f
Eolian/Lexer: the ';' is now optional after '}'.
2014-03-03 14:09:54 +02:00
Daniel Zaoui
7a114b18af
Eolian/Generator: oups, didn't mean to push that.
2014-03-03 14:09:54 +02:00
Daniel Zaoui
8de58b9757
Eolian/Lexer: rename signals to events.
2014-03-03 14:09:54 +02:00
Daniel Zaoui
a934780714
Eolian-generator: fix crash during generation
...
It happens when no description is supplied for an event.
2014-03-03 14:09:54 +02:00
Tom Hacohen
4b24559ea6
Eolian: Split eolian build helper a different file.
...
This will let other modules use it more easily, and also make it easier
to borrow it to other repos.
2014-03-03 14:09:54 +02:00
Daniel Zaoui
ab8d877150
Eolian/Generator: support legacy as option.
...
For the moment, the option works for C files. Have to add support for H
files.
2014-03-03 14:09:54 +02:00
Daniel Zaoui
327202ef37
Eolian/Generator: port options to getopt
...
Even if we want to remove the appending options, we still support them.
We will remove them later.
2014-03-03 14:09:54 +02:00
Tom Hacohen
fabea6399c
Eolian: Added an helper to call eolian_gen from within the project.
2014-03-03 14:09:54 +02:00
Tom Hacohen
e4534ed0f2
Eolian: Renamed the eolian tool to eolian_gen.
2014-03-03 14:09:54 +02:00
Tom Hacohen
57c8f7ff38
Eolian: Fixed EXTRA_DIST.
2014-03-03 14:09:54 +02:00
Tom Hacohen
5a4f68d472
Eolian: Added eolian to the build system.
2014-03-03 14:09:53 +02:00
Tom Hacohen
036e3eeaa3
Eolian: Add EAPI to API calls.
2014-03-03 14:09:53 +02:00
Daniel Zaoui
5dea8ee0a8
Eolian: first import.
...
Imported by Tom, from the eolian repo which was written by:
Daniel Zaoui <daniel.zaoui@samsung.com>
Yakov Goldberg <yakov.g@samsung.com>
Yossi Kantor <yossi.kantor@samsung.com>
Savio Sena <savio@expertisesolutions.com.br>
Jérémy Zurcher <jeremy@asynk.ch>
Signed-off-by: Tom Hacohen <tom@stosb.com>
2014-03-03 14:09:53 +02:00
Cedric Bail
92a24dea79
edje: @feature to include license in edje file.
...
This will close T1027.
2014-03-03 08:39:53 -03:00
Cedric Bail
f3ba81f7c1
ecore_avahi: remove useless printf.
2014-02-28 19:58:25 -03:00
Cedric Bail
7d3e7ad748
ecore_avahi: @fix timeout to avoid pitfall of forever frozen timer.
...
@backport.
2014-02-28 19:57:44 -03:00
Cedric Bail
c08c0b05a3
evas: add libdrm as a dependency.
2014-02-28 16:21:00 -03:00
Chris Michael
807f944696
Evas: Fix build issue when building without drm
...
@bugfix: Fix issue of building efl without drm or drm hw accel options
By default drm & drm hw acceleration is off as an option. This caused
a problem when passing no options to autogen due to a missing define.
This commit fixes that mess by only defining HAVE_DRM_HW_ACCEL If we
actually have the deps for it, rather than using an AM_CONDITIONAL as
it did previously.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 14:46:44 +00:00
Stefan Schmidt
b70ff13404
examples/eina: Check return value of eina_iterator_next
...
If we define an API with warn_unused_result we should actually
check the result in our examples.
2014-02-28 14:37:53 +01:00
Stefan Schmidt
4e2e2ea01e
examples: Use EINA_UNUSED in examples to silence a ton of warning
...
First step to get the examples compiling output in a useful state.
With all the warning noise one would never see the important messages.
If you add new code please make sure its warning free.
2014-02-28 14:37:53 +01:00
Chris Michael
886c8d55b7
evas-drm: Ddd support for setting vsync with env variable.
...
@feature: Add support for EVAS_DRM_VSYNC environment variable to
@feature: Add support for marking a Framebuffer as dirty.
@bugfix: Fix color mask values for evas conversion functions.
@bugfix: Start with using the Backbuffer for drawing.
@bugfix: Fix previous Slowness with evas_cache image data.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-02-28 13:13:17 +00:00