profile/ivi/eina.git
12 years agoMore documentation for eina_model.
barbieri [Thu, 9 Feb 2012 19:13:54 +0000 (19:13 +0000)]
More documentation for eina_model.

Patch by: "Jonas M. Gastal" <jgastal@profusion.mobi>

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67797 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_model: rename all "search" to "criteria_match"
barbieri [Thu, 9 Feb 2012 16:29:50 +0000 (16:29 +0000)]
eina_model: rename all "search" to "criteria_match"

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67796 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_model: helper function to setup subclass during runtime.
barbieri [Thu, 9 Feb 2012 16:20:16 +0000 (16:20 +0000)]
eina_model: helper function to setup subclass during runtime.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67795 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina examples: Formatted model example a bit.
tasn [Thu, 9 Feb 2012 12:29:56 +0000 (12:29 +0000)]
Eina examples: Formatted model example a bit.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67791 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina model: Made i_method_resolve a macro (for interface as well)
tasn [Thu, 9 Feb 2012 10:32:14 +0000 (10:32 +0000)]
Eina model: Made i_method_resolve a macro (for interface as well)

Same as the previous commit about "Type" this time about Interface.
This will also hopefully remove the likelihood for hacks.
Previous functions are still available as method_offset_resolve.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67786 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_sched: fix rt priority drop
lucas [Thu, 9 Feb 2012 00:06:14 +0000 (00:06 +0000)]
eina_sched: fix rt priority drop

Thanks to cedric for noticing this bug. Priority in userspace are in the
opposite order as in kernel space.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67776 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina model: Added an eina model example for inheritance.
tasn [Wed, 8 Feb 2012 16:39:19 +0000 (16:39 +0000)]
Eina model: Added an eina model example for inheritance.

Patch by Yakov Goldberg.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67767 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina model: Made _method_resolve a macro to remove the need for offsetof.
tasn [Wed, 8 Feb 2012 15:37:07 +0000 (15:37 +0000)]
Eina model: Made _method_resolve a macro to remove the need for offsetof.

This will also hopefully remove the likelihood for hacks.
Previous functions are still available as method_offset_resolve.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67765 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_model: correctly retrieve the memory from value.
barbieri [Wed, 8 Feb 2012 15:13:25 +0000 (15:13 +0000)]
eina_model: correctly retrieve the memory from value.

val->value.ptr is just valid on 64bits platforms, as on 32bits both
pointers of the Eina_Value_Struct fits in the 8bytes of val->value.buf.

Always use the function to correctly retrieve it.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67764 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina model: Fix another issue with the method resolve functios.
tasn [Tue, 7 Feb 2012 13:24:27 +0000 (13:24 +0000)]
Eina model: Fix another issue with the method resolve functios.

Make it possible to resolve foo (the last item).
struct _My_Object_Type
{
   Eina_Model_Type parent_class;
   ...
   void (*foo)(Eina_Model *, int);
};

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67733 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina Model: Fix wrong error checking in the method resolve functions.
tasn [Tue, 7 Feb 2012 13:17:13 +0000 (13:17 +0000)]
Eina Model: Fix wrong error checking in the method resolve functions.

This enables resolving method foo...
struct _My_Object_Type
{
   Eina_Model_Type parent;
   void (*foo)(Eina_Model *, int);
   ...
}

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67732 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agofix @dates in each header file
jihoon [Sun, 5 Feb 2012 23:37:45 +0000 (23:37 +0000)]
fix @dates in each header file

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67705 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: use new Evil API to detect absolute path name
caro [Sun, 5 Feb 2012 09:41:25 +0000 (09:41 +0000)]
Eina: use new Evil API to detect absolute path name

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67702 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: append and prepend __ to gcc attributes
caro [Sun, 5 Feb 2012 09:34:17 +0000 (09:34 +0000)]
Eina: append and prepend __ to gcc attributes

Avoid conflicts with macros that have been previously defined
with the same name than the attribute

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67701 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoChange eina_mode_child_search to more descriptive
barbieri [Thu, 2 Feb 2012 12:32:13 +0000 (12:32 +0000)]
Change eina_mode_child_search to more descriptive
 eina_model_child_criteria_match.

Patch by: "Jonas M. Gastal" <jgastal@profusion.mobi>

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67688 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoBetter documentation for eina_model.
barbieri [Thu, 2 Feb 2012 12:31:46 +0000 (12:31 +0000)]
Better documentation for eina_model.

Patch by: "Jonas M. Gastal" <jgastal@profusion.mobi>

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67687 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value: fix struct type.
barbieri [Tue, 31 Jan 2012 21:05:20 +0000 (21:05 +0000)]
eina_value: fix struct type.

 1. consider case where the struct was not set for flush and others;
 2. flush previous struct on pset;
 3. setup the new struct members memory on pset;
 4. always use ops->alloc and ops->free if they are provided;

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67662 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agounbreak eina_value
discomfitor [Tue, 31 Jan 2012 17:31:48 +0000 (17:31 +0000)]
unbreak eina_value

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67643 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina stringshare: fixed up the previous commit a bit.
tasn [Tue, 31 Jan 2012 17:27:57 +0000 (17:27 +0000)]
Eina stringshare: fixed up the previous commit a bit.

Fixed wrong usage of Eina_Stringshare - Thanks k-s.
Omited the star from the typedef - Thanks Sacihel.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67642 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina stringshare: Added Eina_Stringshare a stringshare visual hint.
tasn [Tue, 31 Jan 2012 17:12:23 +0000 (17:12 +0000)]
Eina stringshare: Added Eina_Stringshare a stringshare visual hint.

It's interchangeable with const char *, it's juts there as a visual hint
for functions expecting stringshared values. Docs are not enough...

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67641 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoadd new eina value dummy type TIMESTAMP which is identical to ULONG
discomfitor [Tue, 31 Jan 2012 16:55:10 +0000 (16:55 +0000)]
add new eina value dummy type TIMESTAMP which is identical to ULONG

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67639 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoadd missing @since 1.2
barbieri [Tue, 31 Jan 2012 16:47:36 +0000 (16:47 +0000)]
add missing @since 1.2

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67638 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value: add EINA_VALUE_TYPE_MODEL
barbieri [Tue, 31 Jan 2012 16:45:59 +0000 (16:45 +0000)]
eina_value: add EINA_VALUE_TYPE_MODEL

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67637 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_model: change the way extensions are done.
barbieri [Tue, 31 Jan 2012 15:26:48 +0000 (15:26 +0000)]
eina_model: change the way extensions are done.

Thanks to Tasn review it was noticed that subclasses using "const void *value"
with sub-structure would have to resolve their methods manually, quite bad.

Then the extension will happen with structures inside structures, as
previously used in Evas_Smart_Class. To allow the system to resolve
the methods and keep it, it is now specificed the type_size.

A new function is added to help extensions:
eina_model_type_method_resolve(), together with few helper macros.

To allow Eina_Model_Type to be augmented with more methods without
breaking the ABI, 4 slots are left there. We expect we got it right
from beginning and these will never be used, but we can never be sure
;-)

Last but not least, similar changes were done to Eina_Model_Interface
for consistency matters.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67635 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina test model: Use EINA_VALUE_STRUCT_MEMBER and the new EINA_C_ARRAY_LENGTH.
tasn [Sun, 29 Jan 2012 15:38:04 +0000 (15:38 +0000)]
Eina test model: Use EINA_VALUE_STRUCT_MEMBER and the new EINA_C_ARRAY_LENGTH.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67590 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: Added EINA_C_ARRAY_LENGTH.
tasn [Sun, 29 Jan 2012 15:38:01 +0000 (15:38 +0000)]
Eina: Added EINA_C_ARRAY_LENGTH.

This macro returns the length of a standard C array.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67589 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina test model: Get offsets and sizes properly.
tasn [Sun, 29 Jan 2012 12:57:36 +0000 (12:57 +0000)]
Eina test model: Get offsets and sizes properly.

Make the tests work on multiple platforms and also let people who read the
code see how to do it properly.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67584 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: fix previous commit
caro [Fri, 27 Jan 2012 07:52:30 +0000 (07:52 +0000)]
Eina: fix previous commit

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67564 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina model: fix a memory leak in the model's "to_string" function.
tasn [Thu, 26 Jan 2012 16:42:00 +0000 (16:42 +0000)]
Eina model: fix a memory leak in the model's "to_string" function.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67551 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: fix compilation errors in Eina_RWLock code when building code on Windows > XP
caro [Thu, 26 Jan 2012 07:21:27 +0000 (07:21 +0000)]
Eina: fix compilation errors in Eina_RWLock code when building code on Windows > XP

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67545 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agobugfix: reset iterator to head before the second lookup.
barbieri [Wed, 25 Jan 2012 17:06:29 +0000 (17:06 +0000)]
bugfix: reset iterator to head before the second lookup.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67539 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value_struct_member_value: helper to be used by esql and possibly others.
barbieri [Wed, 25 Jan 2012 16:58:57 +0000 (16:58 +0000)]
eina_value_struct_member_value: helper to be used by esql and possibly others.

It is common to already known the member, then no need to query
it. This provides optimized retrieval for people that can manage it.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67538 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoSmall fixes to eina_model documentation.
barbieri [Wed, 25 Jan 2012 13:48:32 +0000 (13:48 +0000)]
Small fixes to eina_model documentation.

Patch by: "Jonas M. Gastal" <jgastal@profusion.mobi>

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67535 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina model: Fix the example in the docs to compile.
tasn [Wed, 25 Jan 2012 12:05:20 +0000 (12:05 +0000)]
Eina model: Fix the example in the docs to compile.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67534 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agovalue got the helper, will be useful in other cases as well.
barbieri [Tue, 24 Jan 2012 22:56:17 +0000 (22:56 +0000)]
value got the helper, will be useful in other cases as well.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67518 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agomore efficient model properties based on struct.
barbieri [Tue, 24 Jan 2012 22:17:57 +0000 (22:17 +0000)]
more efficient model properties based on struct.

this is a killer, should be very efficient in memory and speed to
set/get items: instead of a hash of properties, keep them in a C
struct!

The constraint is that properties have fixed types defined at compile
time and cannot be deleted, but this is expected in many cases (ie:
esql rows).

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67517 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoreset log level after it's done testing.
barbieri [Tue, 24 Jan 2012 22:15:06 +0000 (22:15 +0000)]
reset log level after it's done testing.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67516 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: fix requirements and a comment message
caro [Tue, 24 Jan 2012 22:05:46 +0000 (22:05 +0000)]
Eina: fix requirements and a comment message

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67515 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: update alloca() declaration from latest autoconf doc.
caro [Tue, 24 Jan 2012 07:21:33 +0000 (07:21 +0000)]
Eina: update alloca() declaration from latest autoconf doc.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67483 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: Windows version is managed by Evil, now. I'm not sure I have to update ChangeLog.
caro [Tue, 24 Jan 2012 07:08:23 +0000 (07:08 +0000)]
Eina: Windows version is managed by Evil, now. I'm not sure I have to update ChangeLog.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67482 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agodereference pointer before using
sachiel [Mon, 23 Jan 2012 16:51:02 +0000 (16:51 +0000)]
dereference pointer before using

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67479 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agobeef eina_error tests.
barbieri [Mon, 23 Jan 2012 00:25:12 +0000 (00:25 +0000)]
beef eina_error tests.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67461 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agofix paths to be relative to project build root.
barbieri [Sun, 22 Jan 2012 22:00:07 +0000 (22:00 +0000)]
fix paths to be relative to project build root.

"make doc" was doing "cd doc" and paths were relative to it, misleading.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67459 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agohelp buildbot and user know where the html files are.
barbieri [Sun, 22 Jan 2012 18:07:04 +0000 (18:07 +0000)]
help buildbot and user know where the html files are.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67454 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agobuildbot: new attempt at coverage support.
barbieri [Sun, 22 Jan 2012 15:09:51 +0000 (15:09 +0000)]
buildbot: new attempt at coverage support.

I've changed a bit the rules, let's see if it works with buildbot
(out-of-tree builds).

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67449 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: remove warning when compiling with mingw-w64
caro [Sun, 22 Jan 2012 12:08:06 +0000 (12:08 +0000)]
Eina: remove warning when compiling with mingw-w64

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67447 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: DOS2UNIX eina_file_win32.c
caro [Sun, 22 Jan 2012 08:57:50 +0000 (08:57 +0000)]
Eina: DOS2UNIX eina_file_win32.c

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67445 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: remove unused variable
caro [Sun, 22 Jan 2012 08:56:13 +0000 (08:56 +0000)]
Eina: remove unused variable

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67444 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina "Fix" printf conversion format on Windows. printf family on Windows is just...
caro [Sun, 22 Jan 2012 08:55:02 +0000 (08:55 +0000)]
Eina "Fix" printf conversion format on Windows. printf family on Windows is just plain weirdness

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67443 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: formatting
caro [Sat, 21 Jan 2012 08:23:23 +0000 (08:23 +0000)]
Eina: formatting

eina_file_init() and eina_file_shutdown() are global symbols, not local ones

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67423 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: Windows fixes
caro [Sat, 21 Jan 2012 08:21:32 +0000 (08:21 +0000)]
Eina: Windows fixes

add eina_file_path_sanitize() which was missing in the windows port
add locks
synchronize a bit with the linux version

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67422 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoalphabetical order
caro [Sat, 21 Jan 2012 08:19:46 +0000 (08:19 +0000)]
alphabetical order

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67421 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: put m4 files in their own subdir
caro [Sat, 21 Jan 2012 08:02:54 +0000 (08:02 +0000)]
Eina: put m4 files in their own subdir

Warning: you must relaunch autogen.sh for these changes to
be taken into account

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67420 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: include stdlib.h instead of alloca.h (alloca() is not used while malloc() is)
caro [Sat, 21 Jan 2012 07:44:05 +0000 (07:44 +0000)]
Eina: include stdlib.h instead of alloca.h (alloca() is not used while malloc() is)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67419 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina share log refactor.
barbieri [Sat, 21 Jan 2012 07:21:23 +0000 (07:21 +0000)]
eina share log refactor.

Don't print messages from share common, that way we have no way to
know where it happens, moreover the binshare values may lack trailing
'\0'.

Also makes no sense to share the log domain. With separate domains we
can be more selective in what we log/debug.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67418 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_test_model: better use of check macros.
barbieri [Sat, 21 Jan 2012 06:26:56 +0000 (06:26 +0000)]
eina_test_model: better use of check macros.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67417 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_model: fix uninitialized bit
barbieri [Sat, 21 Jan 2012 06:26:32 +0000 (06:26 +0000)]
eina_model: fix uninitialized bit

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67416 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agomatrixsparse: fix pointer after it's freed.
barbieri [Sat, 21 Jan 2012 05:32:39 +0000 (05:32 +0000)]
matrixsparse: fix pointer after it's freed.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67415 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoensure trailing \0
barbieri [Sat, 21 Jan 2012 04:52:27 +0000 (04:52 +0000)]
ensure trailing \0

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67414 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agocheck if file was parsed fine.
barbieri [Sat, 21 Jan 2012 04:49:54 +0000 (04:49 +0000)]
check if file was parsed fine.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67413 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agomore safety test checks for file and unicode.
barbieri [Sat, 21 Jan 2012 04:44:17 +0000 (04:44 +0000)]
more safety test checks for file and unicode.

jsut add infra and reduce output noise.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67412 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoimprove counter tests wrt safety.
barbieri [Sat, 21 Jan 2012 04:32:33 +0000 (04:32 +0000)]
improve counter tests wrt safety.

TODO: parse dump and see if it's valid.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67411 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoinstall eina_model.h
barbieri [Sat, 21 Jan 2012 04:22:18 +0000 (04:22 +0000)]
install eina_model.h

thanks JihoonKim

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67410 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agobeef inlist tests wrt safety pointers
barbieri [Sat, 21 Jan 2012 04:20:32 +0000 (04:20 +0000)]
beef inlist tests wrt safety pointers

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67409 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoimprove magic tests, check output to see if it happened
barbieri [Sat, 21 Jan 2012 03:59:03 +0000 (03:59 +0000)]
improve magic tests, check output to see if it happened

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67408 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agooops, use the copied va_list.
barbieri [Sat, 21 Jan 2012 03:57:09 +0000 (03:57 +0000)]
oops, use the copied va_list.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67407 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoimprove log tests.
barbieri [Sat, 21 Jan 2012 03:36:02 +0000 (03:36 +0000)]
improve log tests.

actually check stuff instead of relying on user to do so, also
produces no output if is correct.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67406 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agowelcome eina_model.
barbieri [Sat, 21 Jan 2012 01:30:09 +0000 (01:30 +0000)]
welcome eina_model.

This is a simple to use generic hierarchical data access. It includes
properties, children, reference counting and notifications (callbacks).

It can be understood in the same lines as GObject or PyObject, but I
believe the best usage is just to provide data models, not generic
Object Oriented Programming in C.

It misses most of documentation, although the important bits are
there. Need help here :-/

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67405 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoMy bad.. the type is referring to something out of the macro
sachiel [Fri, 20 Jan 2012 20:18:10 +0000 (20:18 +0000)]
My bad.. the type is referring to something out of the macro

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67404 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agotype-o... see what I did there? Yes, I'm an idiot.
sachiel [Fri, 20 Jan 2012 19:31:32 +0000 (19:31 +0000)]
type-o... see what I did there? Yes, I'm an idiot.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67402 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_unicode: add safety checks.
barbieri [Fri, 20 Jan 2012 13:00:01 +0000 (13:00 +0000)]
eina_unicode: add safety checks.

they are not so expensive and will help detect bugs.

also, safety can be disabled at compile time... if performance is so
critical.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67393 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_unicode: fix header inclusion.
barbieri [Fri, 20 Jan 2012 12:52:15 +0000 (12:52 +0000)]
eina_unicode: fix header inclusion.

library files should ALWAYS include config.h, they should not include
Eina.h using "<Eina.h>" to avoid messing with system's version.

Last but definitely not least: include safety checks BEFORE your local
header, otherwise the macros EINA_ARG_NONNULL() will remove every
check for null pointers! eina_safety_checks.h redefines it to empty so
compiler does not optimize these things.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67392 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_test_clist: foce usage of local eina, not system.
barbieri [Fri, 20 Jan 2012 12:44:40 +0000 (12:44 +0000)]
eina_test_clist: foce usage of local eina, not system.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67390 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoFrom: Guillaume Friloux <guillaume.friloux@asp64.com>
Guillaume Friloux [Fri, 20 Jan 2012 02:58:57 +0000 (02:58 +0000)]
From: Guillaume Friloux <guillaume.friloux@asp64.com>
Subject: Re: [E-devel] Various patches in eina's doc

update authors in doc patch.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67369 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: fix inarray macro.
cedric [Thu, 19 Jan 2012 15:13:07 +0000 (15:13 +0000)]
eina: fix inarray macro.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67346 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agouse $(MAKE) instead of make, echo the built doc package.
barbieri [Thu, 19 Jan 2012 14:07:35 +0000 (14:07 +0000)]
use $(MAKE) instead of make, echo the built doc package.

This removes the annoying:

   make[2]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.

and with the package name I can upload it easily to somewhere else.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67343 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agodocs: remove some warnings and make eina/eet doc more uniform.
barbieri [Thu, 19 Jan 2012 13:26:40 +0000 (13:26 +0000)]
docs: remove some warnings and make eina/eet doc more uniform.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67339 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoOops, forgot to fix some warnings for eina docs out-of-tree generation.
barbieri [Thu, 19 Jan 2012 12:25:42 +0000 (12:25 +0000)]
Oops, forgot to fix some warnings for eina docs out-of-tree generation.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67336 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agodoxyen -u + minor changes, let's see if warnings are reduced.
barbieri [Thu, 19 Jan 2012 12:23:37 +0000 (12:23 +0000)]
doxyen -u + minor changes, let's see if warnings are reduced.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67335 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina: Fix compilation of eina_semaphore_lock() (Windows port)
caro [Thu, 19 Jan 2012 06:33:42 +0000 (06:33 +0000)]
Eina: Fix compilation of eina_semaphore_lock() (Windows port)

Patch by Shinwoo Kim

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67317 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: Add FIXME
englebass [Thu, 19 Jan 2012 00:36:20 +0000 (00:36 +0000)]
eina: Add FIXME

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67310 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: formatting
englebass [Thu, 19 Jan 2012 00:36:05 +0000 (00:36 +0000)]
eina: formatting

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67309 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina: be able to track and display our memory over head when using malloc.
cedric [Wed, 18 Jan 2012 17:47:05 +0000 (17:47 +0000)]
eina: be able to track and display our memory over head when using malloc.

NOTE: it is worth enabling it and see EINA_LOG_INFO displaying how much memory
we are wasting. Should help tune our memory allocator usage.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67296 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoFrom: Guillaume Friloux <guillaume.friloux@asp64.com>
Guillaume Friloux [Wed, 18 Jan 2012 04:32:37 +0000 (04:32 +0000)]
From: Guillaume Friloux <guillaume.friloux@asp64.com>

Hello again e people, i have play a bit with eina's comments to get
proper namings and fix broken references.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67289 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agovoid impl for eina_lock stuff should return "innocuous" values - ie
raster [Wed, 18 Jan 2012 04:27:13 +0000 (04:27 +0000)]
void impl for eina_lock stuff should return "innocuous" values - ie
pretend things succeed ad on a lockless platform u cant have threads
anyway :)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67288 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoupdate all minor versions to 2 (or 6) - and yes. i missed making most
raster [Wed, 18 Jan 2012 02:32:36 +0000 (02:32 +0000)]
update all minor versions to 2 (or 6) - and yes. i missed making most
be 1.1 (or 1.5) for the last release. too late. THIS is why i'm sick
and tired of all the bloody separate libs that have to be versiioned
and build and released separately. :( too many places to go fix up per
release.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67284 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina benchmark: Fixed compilation warnings.
tasn [Sun, 15 Jan 2012 11:20:59 +0000 (11:20 +0000)]
Eina benchmark: Fixed compilation warnings.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67230 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina value: Fixed signed and unsigned comparison.
tasn [Sun, 15 Jan 2012 10:32:10 +0000 (10:32 +0000)]
Eina value: Fixed signed and unsigned comparison.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67227 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoEina tests: Fixed binbuf test.
tasn [Sun, 15 Jan 2012 10:10:05 +0000 (10:10 +0000)]
Eina tests: Fixed binbuf test.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67225 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agominor improvements to doc (just to trigger buildbot)
barbieri [Sun, 15 Jan 2012 04:33:55 +0000 (04:33 +0000)]
minor improvements to doc (just to trigger buildbot)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67223 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value: remove left overs.
barbieri [Fri, 13 Jan 2012 10:12:16 +0000 (10:12 +0000)]
eina_value: remove left overs.

thanks to stefan_schmidt for spotting it.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67183 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value: add array of struct test.
barbieri [Thu, 12 Jan 2012 23:31:42 +0000 (23:31 +0000)]
eina_value: add array of struct test.

works nice :-)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67159 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value: add struct type.
barbieri [Thu, 12 Jan 2012 22:58:31 +0000 (22:58 +0000)]
eina_value: add struct type.

efficient storage with named access, can specify compare, alloc, free
and other operations for even better management.

no changelog/news as this is under eina_value, all new for 1.2 release.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67155 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value_blob: nicer convertion from string, array and blob.
barbieri [Thu, 12 Jan 2012 19:39:16 +0000 (19:39 +0000)]
eina_value_blob: nicer convertion from string, array and blob.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67154 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value: simpler and faster code using newer eina_inarray_alloc_at()
barbieri [Thu, 12 Jan 2012 19:16:46 +0000 (19:16 +0000)]
eina_value: simpler and faster code using newer eina_inarray_alloc_at()

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67153 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_inarray: add useful function to open space in array.
barbieri [Thu, 12 Jan 2012 19:08:26 +0000 (19:08 +0000)]
eina_inarray: add useful function to open space in array.

no changelog or news as eina_inarray is new and this is already stated
in these files.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67152 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value: use mempool.
barbieri [Thu, 12 Jan 2012 18:50:43 +0000 (18:50 +0000)]
eina_value: use mempool.

thanks to discomfitor about the tip.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67151 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value: improve docs and add blob operations helper.
barbieri [Thu, 12 Jan 2012 17:45:51 +0000 (17:45 +0000)]
eina_value: improve docs and add blob operations helper.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67149 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value: improve docs a bit
barbieri [Thu, 12 Jan 2012 17:35:50 +0000 (17:35 +0000)]
eina_value: improve docs a bit

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67148 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

12 years agoeina_value: hash now adopts given Eina_Hash.
barbieri [Thu, 12 Jan 2012 17:27:53 +0000 (17:27 +0000)]
eina_value: hash now adopts given Eina_Hash.

This should allow users to setup the hash manually, in an efficient
way, then make it an Eina_Value.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67147 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33