Commit Graph

239 Commits

Author SHA1 Message Date
Tom Hacohen e8ad8e3a93 Eo: Added simple benchmark infra (not really testing anything atm).
SVN revision: 75712
2012-08-26 13:18:44 +00:00
Tom Hacohen cf03cc1c7b Eo: Moved a magic check from an internal function to the external function.
SVN revision: 75626
2012-08-23 15:04:48 +00:00
Tom Hacohen ef5e9f83ab Eo: Remove volatile from the GCC issue workaround.
It seems that just setting to a temp var is enough to make GCC not
optimise it out. It seems GCC's problem is with the void cast.
Also, fixed another place that had the same issue.

SVN revision: 75624
2012-08-23 14:24:32 +00:00
Tom Hacohen fabeecd5ea Eo: Fixed issue with eo_add ops.
This "fix" is actually just making sure gcc doesn't optimise things
wrong. If anyone has an idea how to do it better, please let me know.
klass is usually a function and needs to be evaluated before the call to
eo_add_internal.

SVN revision: 75623
2012-08-23 12:14:07 +00:00
Tom Hacohen 41c490609c Eo: Added a non-default constructor test.
SVN revision: 75616
2012-08-23 10:47:11 +00:00
Tom Hacohen b6c1892463 Eo: Added some negative refcount tests (with manual_free).
SVN revision: 75615
2012-08-23 10:37:46 +00:00
Tom Hacohen 410488aabe Eo: Added eo_add_custom and support for passing ops to eo_add.
We can no do things like eo_add(CLASS, parent, age_set(7), score_set(100)),
or pass different constructors to object creation by using eo_add_custom and
passing the constructor.

SVN revision: 75614
2012-08-23 10:35:14 +00:00
Tom Hacohen 5421fc5757 Eo: Use our own magic check macro instead of Eina's
SVN revision: 75549
2012-08-22 13:10:08 +00:00
Tom Hacohen 7ac9e7cd4f Eo: Add an error if we get to a negative refcount.
SVN revision: 75505
2012-08-21 12:15:54 +00:00
Tom Hacohen 8a2c9acb0b Eo: WRN -> ERR. We do (in EFL) logging wrong.
Warnings should be on by default and not abused.
Now I had to change the WRN -> ERR because JackDanielZ is a crybaby,
and the issue described above.

SVN revision: 75504
2012-08-21 12:08:48 +00:00
Tom Hacohen cf46d00796 Eo: Removed static class support.
SVN revision: 75452
2012-08-20 07:56:17 +00:00
Tom Hacohen ab7104e4ae Eo: Also fix the case when the chain is not allocated.
Continuation to previous commit.

SVN revision: 74619
2012-07-31 07:34:27 +00:00
Tom Hacohen 7595ce698d Eo: Fixed an issue with mixins and super calls.
SVN revision: 74617
2012-07-31 07:15:33 +00:00
Tom Hacohen 58d6248b20 Eo: Changed ops prints to be DOMAIN:OP_NAME. Easier to follow.
SVN revision: 74442
2012-07-26 13:15:28 +00:00
Tom Hacohen 6ae96d43ff Eo: Make func override warning an error instead (prev commit).
Make JackDanielZ happy...

SVN revision: 74437
2012-07-26 12:34:04 +00:00
Tom Hacohen d368088e59 Eo: Add a warning when trying to override a function that was already set for a class.
SVN revision: 74436
2012-07-26 12:21:01 +00:00
Tom Hacohen fc5eaf662d Eo: Fixed bug with calling multiple ops in some cases.
SVN revision: 74313
2012-07-23 08:43:35 +00:00
Tom Hacohen fc73ddb332 Eo: Fixed super of different functions.
I.e calling super a_get from an a_set implementation.
This slows things down a bit.

SVN revision: 74062
2012-07-18 12:27:09 +00:00
Tom Hacohen bf6a819dde Eo: Minor fixes to copy_all and clean.
SVN revision: 73876
2012-07-15 12:27:56 +00:00
Tom Hacohen 14dcf973c5 Eo: Fixed test case.
SVN revision: 73867
2012-07-15 07:56:02 +00:00
Tom Hacohen 826020be36 Eo: Oops, commit missing files.
SVN revision: 73617
2012-07-12 12:31:13 +00:00
Tom Hacohen 153b94bcae Eo: Allow interfaces to have class constructors/destructors.
SVN revision: 73606
2012-07-12 08:43:59 +00:00
Tom Hacohen 5e68a8aa43 Eo: Properly handle tests and their deps in the build system.
SVN revision: 73533
2012-07-10 14:02:08 +00:00
Tom Hacohen d19b940099 Eo: Avoid unneeded copies with kls-itr.
SVN revision: 73532
2012-07-10 14:02:03 +00:00
Tom Hacohen b018d8cfcf Eo: eo_do is much faster now.
I simplified the kls-itr code so there'll be less overhead when doing eo_do.

SVN revision: 73531
2012-07-10 14:02:00 +00:00
Tom Hacohen 52d23bf084 Eo: Slight kls-itr cleanups.
SVN revision: 73530
2012-07-10 14:01:57 +00:00
Tom Hacohen 3018a6a4c4 Eo: Cosmetic changes.
SVN revision: 73529
2012-07-10 14:01:54 +00:00
Tom Hacohen b2adf3424b Eo: Changed the way we construct op ids.
This simplifies the code, and improves the overall speed and memory
consumption.
Be advised that this breaks ABI, recompile your stuff.

SVN revision: 73528
2012-07-10 14:01:45 +00:00
Tom Hacohen 08e6d4912d Eo: added a version field to the class description.
SVN revision: 73494
2012-07-09 09:09:46 +00:00
David Walter Seikel 57ce7d92db Let it build with cmake 2.8.1 and older.
SVN revision: 73087
2012-07-01 06:25:31 +00:00
Tom Hacohen f5a4d9782e Eo: Removed the const op concept.
Too ambiguous to be worth it...

SVN revision: 72914
2012-06-27 03:58:45 +00:00
Tom Hacohen ed8bec5577 Eo: Fixed wrong kls_itr inits and error message prints.
SVN revision: 72913
2012-06-27 03:58:39 +00:00
Tom Hacohen aa4ee17c19 Eo: Added an eo_isa example.
SVN revision: 72793
2012-06-25 09:07:39 +00:00
Tom Hacohen 1a5199d5d3 Eo: Added a simple example.
SVN revision: 72781
2012-06-25 06:52:08 +00:00
Tom Hacohen ab39c0d399 Eo: Fix return value of eo_do_super to depend on error_set.
And added tests to check it.

SVN revision: 72550
2012-06-20 15:56:17 +00:00
Tom Hacohen 54b9313197 Eo: Fixed eo_isa to work with comp objects and fixed eo_data_get's checks.
eo_data_get() now has correct checks again.
eo_isa now correctly handles composite objects, interfaces and etc.

SVN revision: 72123
2012-06-14 10:29:39 +00:00
Tom Hacohen 487f76b994 Eo: Implemented eo_isa(). It checks if an object implements a class.
This works for class/interface/mixins but not for composite objects.

SVN revision: 72083
2012-06-13 11:39:12 +00:00
Tom Hacohen 3eb70c2b57 Eo: Save both mixins and interfaces, not just mixins.
SVN revision: 72082
2012-06-13 11:39:02 +00:00
Tom Hacohen d099b82f9a Eo: Implement handling of eo_do errors and use it.
I'm now using it for constructor errors as well.

SVN revision: 72081
2012-06-13 11:38:56 +00:00
Tom Hacohen c019546d92 Eo: Actually, no reason why to force inheritance from base class.
You'll be using functionality if you don't but you still don't have to.
It's not perfect though, I still need to make it possible in other
places.

SVN revision: 71934
2012-06-11 07:41:11 +00:00
Tom Hacohen bc42fd3c1e Eo: Force classes to inherit from EO_BASE_CLASS.
SVN revision: 71931
2012-06-11 07:35:02 +00:00
Tom Hacohen 1d3b0bf164 Eo examples: evas_obj -> exevas_obj (example evas).
Fix it not to clash anymore with the Evas work.

SVN revision: 71928
2012-06-11 06:34:46 +00:00
Tom Hacohen 59b2545ded Eo: Fix internal code using eo_composite functions.
SVN revision: 71908
2012-06-10 15:02:49 +00:00
Tom Hacohen 76c8673b1d Eo: eo_composite_object_* -> eo_composite_*.
SVN revision: 71907
2012-06-10 15:02:44 +00:00
Tom Hacohen b122dd0dc5 Eo composite: Reordered parameters and improved docs.
SVN revision: 71906
2012-06-10 14:56:20 +00:00
Tom Hacohen 1fabc3a749 Eo: Removed EINA_CONST.
SVN revision: 71905
2012-06-10 14:56:15 +00:00
Tom Hacohen 32fbb7723c Eo: Restructure source tree to be like the rest of the EFL.
SVN revision: 71904
2012-06-10 14:56:06 +00:00
Tom Hacohen 1aef778d98 Eo: Turn evas example back on.
SVN revision: 71903
2012-06-10 14:13:34 +00:00
Tom Hacohen 786c2b749b Eo: Fixed error message.
SVN revision: 71902
2012-06-10 14:13:30 +00:00
Tom Hacohen c612697a4e Eo: move manual_free functions to the right doc group
SVN revision: 71901
2012-06-10 14:05:00 +00:00