Gustavo Sverzut Barbieri
ef2976ec46
thanks vincent.
...
I just did that mistake to see if you were paying attention... /me liar! :-)
SVN revision: 67822
2012-02-10 11:03:18 +00:00
Gustavo Sverzut Barbieri
687e59a102
eina_model: add xref/xunref, xrefs_get and models_usage_dump!
...
Let's try to help debug by allowing extended reference management that
takes in account an identifier. This identifier is accounted on xref
and xunref and must match.
xrefs_get will return the list of such references, for debugging purposes.
eina_models_list_get() was added to return all live models, just
tracked when EINA_MODEL_DEBUG is enabled.
eina_models_usage_dump() was added and use the same infrastructure as
eina_models_list_get() and eina_model_xrefs_get() to aid debugging :-)
SVN revision: 67821
2012-02-10 10:48:39 +00:00
Gustavo Sverzut Barbieri
6d60ece7db
add missing shutdown
...
SVN revision: 67818
2012-02-10 10:34:19 +00:00
Gustavo Sverzut Barbieri
5150befe04
remove @EINA_CPPFLAGS@ from remaining Makefile.am
...
Thanks to Tommy[D] for spotting the problem!
SVN revision: 67799
2012-02-09 21:42:50 +00:00
Gustavo Sverzut Barbieri
232fbec9f1
add Jonas to authors.
...
He worked previously with documentation, now is helping me with
Eina_Model and will keep adding some examples and fixes here and
there.
SVN revision: 67798
2012-02-09 20:26:00 +00:00
Jonas M. Gastal
9f90af4dc7
More documentation for eina_model.
...
Patch by: "Jonas M. Gastal" <jgastal@profusion.mobi>
SVN revision: 67797
2012-02-09 19:13:54 +00:00
Gustavo Sverzut Barbieri
0bcae96ccb
eina_model: rename all "search" to "criteria_match"
...
SVN revision: 67796
2012-02-09 16:29:50 +00:00
Gustavo Sverzut Barbieri
013c986c40
eina_model: helper function to setup subclass during runtime.
...
SVN revision: 67795
2012-02-09 16:20:16 +00:00
Tom Hacohen
0b8df6a240
Eina examples: Formatted model example a bit.
...
SVN revision: 67791
2012-02-09 12:29:56 +00:00
Tom Hacohen
29c291ff3b
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.
SVN revision: 67786
2012-02-09 10:32:14 +00:00
Lucas De Marchi
4c184eff2f
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.
SVN revision: 67776
2012-02-09 00:06:14 +00:00
Tom Hacohen
8144798618
Eina model: Added an eina model example for inheritance.
...
Patch by Yakov Goldberg.
SVN revision: 67767
2012-02-08 16:39:19 +00:00
Tom Hacohen
1dbab17f64
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.
SVN revision: 67765
2012-02-08 15:37:07 +00:00
Gustavo Sverzut Barbieri
68d5bb81bc
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.
SVN revision: 67764
2012-02-08 15:13:25 +00:00
Tom Hacohen
b5de0cf46b
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);
};
SVN revision: 67733
2012-02-07 13:24:27 +00:00
Tom Hacohen
c0ab80f047
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);
...
}
SVN revision: 67732
2012-02-07 13:17:13 +00:00
Jihoon Kim
36c2029d0a
fix @dates in each header file
...
SVN revision: 67705
2012-02-05 23:37:45 +00:00
Vincent Torri
6199e30512
Eina: use new Evil API to detect absolute path name
...
SVN revision: 67702
2012-02-05 09:41:25 +00:00
Vincent Torri
76057ccbe8
Eina: append and prepend __ to gcc attributes
...
Avoid conflicts with macros that have been previously defined
with the same name than the attribute
SVN revision: 67701
2012-02-05 09:34:17 +00:00
Jonas M. Gastal
90f5f268dc
Change eina_mode_child_search to more descriptive
...
eina_model_child_criteria_match.
Patch by: "Jonas M. Gastal" <jgastal@profusion.mobi>
SVN revision: 67688
2012-02-02 12:32:13 +00:00
Jonas M. Gastal
8f35a3d5ab
Better documentation for eina_model.
...
Patch by: "Jonas M. Gastal" <jgastal@profusion.mobi>
SVN revision: 67687
2012-02-02 12:31:46 +00:00
Gustavo Sverzut Barbieri
ceb07e60d1
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;
SVN revision: 67662
2012-01-31 21:05:20 +00:00
Mike Blumenkrantz
128f5aa6e9
unbreak eina_value
...
SVN revision: 67643
2012-01-31 17:31:48 +00:00
Tom Hacohen
518424907e
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.
SVN revision: 67642
2012-01-31 17:27:57 +00:00
Tom Hacohen
ade018086c
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...
SVN revision: 67641
2012-01-31 17:12:23 +00:00
Mike Blumenkrantz
56dc6e9571
add new eina value dummy type TIMESTAMP which is identical to ULONG
...
SVN revision: 67639
2012-01-31 16:55:10 +00:00
Gustavo Sverzut Barbieri
0d72a87ff6
add missing @since 1.2
...
SVN revision: 67638
2012-01-31 16:47:36 +00:00
Gustavo Sverzut Barbieri
948ce4b9ec
eina_value: add EINA_VALUE_TYPE_MODEL
...
SVN revision: 67637
2012-01-31 16:45:59 +00:00
Gustavo Sverzut Barbieri
088ab8dd2b
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.
SVN revision: 67635
2012-01-31 15:26:48 +00:00
Tom Hacohen
7dbd7c03e6
Eina test model: Use EINA_VALUE_STRUCT_MEMBER and the new EINA_C_ARRAY_LENGTH.
...
SVN revision: 67590
2012-01-29 15:38:04 +00:00
Tom Hacohen
92d70212c5
Eina: Added EINA_C_ARRAY_LENGTH.
...
This macro returns the length of a standard C array.
SVN revision: 67589
2012-01-29 15:38:01 +00:00
Tom Hacohen
73830721ce
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.
SVN revision: 67584
2012-01-29 12:57:36 +00:00
Vincent Torri
16b49b02f5
Eina: fix previous commit
...
SVN revision: 67564
2012-01-27 07:52:30 +00:00
Tom Hacohen
a45dd94b03
Eina model: fix a memory leak in the model's "to_string" function.
...
SVN revision: 67551
2012-01-26 16:42:00 +00:00
Vincent Torri
fcd0b658cf
Eina: fix compilation errors in Eina_RWLock code when building code on Windows > XP
...
SVN revision: 67545
2012-01-26 07:21:27 +00:00
Gustavo Sverzut Barbieri
be80cc08ec
bugfix: reset iterator to head before the second lookup.
...
SVN revision: 67539
2012-01-25 17:06:29 +00:00
Gustavo Sverzut Barbieri
3683b0e719
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.
SVN revision: 67538
2012-01-25 16:58:57 +00:00
Jonas M. Gastal
263d6af353
Small fixes to eina_model documentation.
...
Patch by: "Jonas M. Gastal" <jgastal@profusion.mobi>
SVN revision: 67535
2012-01-25 13:48:32 +00:00
Tom Hacohen
4bd08d2ca5
Eina model: Fix the example in the docs to compile.
...
SVN revision: 67534
2012-01-25 12:05:20 +00:00
Gustavo Sverzut Barbieri
73b1d45d15
value got the helper, will be useful in other cases as well.
...
SVN revision: 67518
2012-01-24 22:56:17 +00:00
Gustavo Sverzut Barbieri
73b595df2f
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).
SVN revision: 67517
2012-01-24 22:17:57 +00:00
Gustavo Sverzut Barbieri
19a47340a5
reset log level after it's done testing.
...
SVN revision: 67516
2012-01-24 22:15:06 +00:00
Vincent Torri
78c73ea97a
Eina: fix requirements and a comment message
...
SVN revision: 67515
2012-01-24 22:05:46 +00:00
Vincent Torri
1f27f0b581
Eina: update alloca() declaration from latest autoconf doc.
...
SVN revision: 67483
2012-01-24 07:21:33 +00:00
Vincent Torri
0f16de1de6
Eina: Windows version is managed by Evil, now. I'm not sure I have to update ChangeLog.
...
SVN revision: 67482
2012-01-24 07:08:23 +00:00
Iván Briano
e4178ad8e6
dereference pointer before using
...
SVN revision: 67479
2012-01-23 16:51:02 +00:00
Gustavo Sverzut Barbieri
99b7af6912
beef eina_error tests.
...
SVN revision: 67461
2012-01-23 00:25:12 +00:00
Gustavo Sverzut Barbieri
4e88371068
fix paths to be relative to project build root.
...
"make doc" was doing "cd doc" and paths were relative to it, misleading.
SVN revision: 67459
2012-01-22 22:00:07 +00:00
Gustavo Sverzut Barbieri
1cd6f27baa
help buildbot and user know where the html files are.
...
SVN revision: 67454
2012-01-22 18:07:04 +00:00
Gustavo Sverzut Barbieri
422775911b
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).
SVN revision: 67449
2012-01-22 15:09:51 +00:00
Vincent Torri
7bc418f30f
Eina: remove warning when compiling with mingw-w64
...
SVN revision: 67447
2012-01-22 12:08:06 +00:00
Vincent Torri
f4baf62a91
Eina: DOS2UNIX eina_file_win32.c
...
SVN revision: 67445
2012-01-22 08:57:50 +00:00
Vincent Torri
54b589cfe9
Eina: remove unused variable
...
SVN revision: 67444
2012-01-22 08:56:13 +00:00
Vincent Torri
37ccabf61c
Eina "Fix" printf conversion format on Windows. printf family on Windows is just plain weirdness
...
SVN revision: 67443
2012-01-22 08:55:02 +00:00
Vincent Torri
2b932abc9c
Eina: formatting
...
eina_file_init() and eina_file_shutdown() are global symbols, not local ones
SVN revision: 67423
2012-01-21 08:23:23 +00:00
Vincent Torri
9f844d5699
Eina: Windows fixes
...
add eina_file_path_sanitize() which was missing in the windows port
add locks
synchronize a bit with the linux version
SVN revision: 67422
2012-01-21 08:21:32 +00:00
Vincent Torri
92b7c85e37
alphabetical order
...
SVN revision: 67421
2012-01-21 08:19:46 +00:00
Vincent Torri
b2e1adaaa6
Eina: put m4 files in their own subdir
...
Warning: you must relaunch autogen.sh for these changes to
be taken into account
SVN revision: 67420
2012-01-21 08:02:54 +00:00
Vincent Torri
0b96df92ee
Eina: include stdlib.h instead of alloca.h (alloca() is not used while malloc() is)
...
SVN revision: 67419
2012-01-21 07:44:05 +00:00
Gustavo Sverzut Barbieri
adf2dcfed9
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.
SVN revision: 67418
2012-01-21 07:21:23 +00:00
Gustavo Sverzut Barbieri
76b62698a2
eina_test_model: better use of check macros.
...
SVN revision: 67417
2012-01-21 06:26:56 +00:00
Gustavo Sverzut Barbieri
8fb1d6e036
eina_model: fix uninitialized bit
...
SVN revision: 67416
2012-01-21 06:26:32 +00:00
Gustavo Sverzut Barbieri
22e40d2cf7
matrixsparse: fix pointer after it's freed.
...
SVN revision: 67415
2012-01-21 05:32:39 +00:00
Gustavo Sverzut Barbieri
c4120e4593
ensure trailing \0
...
SVN revision: 67414
2012-01-21 04:52:27 +00:00
Gustavo Sverzut Barbieri
a47da47844
check if file was parsed fine.
...
SVN revision: 67413
2012-01-21 04:49:54 +00:00
Gustavo Sverzut Barbieri
9be2320053
more safety test checks for file and unicode.
...
jsut add infra and reduce output noise.
SVN revision: 67412
2012-01-21 04:44:17 +00:00
Gustavo Sverzut Barbieri
a3d7c51003
improve counter tests wrt safety.
...
TODO: parse dump and see if it's valid.
SVN revision: 67411
2012-01-21 04:32:33 +00:00
Gustavo Sverzut Barbieri
8b9fd10c60
install eina_model.h
...
thanks JihoonKim
SVN revision: 67410
2012-01-21 04:22:18 +00:00
Gustavo Sverzut Barbieri
63a5350974
beef inlist tests wrt safety pointers
...
SVN revision: 67409
2012-01-21 04:20:32 +00:00
Gustavo Sverzut Barbieri
e877d6617d
improve magic tests, check output to see if it happened
...
SVN revision: 67408
2012-01-21 03:59:03 +00:00
Gustavo Sverzut Barbieri
cdac7c3864
oops, use the copied va_list.
...
SVN revision: 67407
2012-01-21 03:57:09 +00:00
Gustavo Sverzut Barbieri
63bae2176c
improve log tests.
...
actually check stuff instead of relying on user to do so, also
produces no output if is correct.
SVN revision: 67406
2012-01-21 03:36:02 +00:00
Gustavo Sverzut Barbieri
7c0357ddeb
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 :-/
SVN revision: 67405
2012-01-21 01:30:09 +00:00
Iván Briano
2283fda5f4
My bad.. the type is referring to something out of the macro
...
SVN revision: 67404
2012-01-20 20:18:10 +00:00
Iván Briano
3c007c2791
type-o... see what I did there? Yes, I'm an idiot.
...
SVN revision: 67402
2012-01-20 19:31:32 +00:00
Gustavo Sverzut Barbieri
fcc86ae34b
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.
SVN revision: 67393
2012-01-20 13:00:01 +00:00
Gustavo Sverzut Barbieri
829c6f58e4
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.
SVN revision: 67392
2012-01-20 12:52:15 +00:00
Gustavo Sverzut Barbieri
f0224e0ecd
eina_test_clist: foce usage of local eina, not system.
...
SVN revision: 67390
2012-01-20 12:44:40 +00:00
Guillaume Friloux
0f2dba299d
From: Guillaume Friloux <guillaume.friloux@asp64.com>
...
Subject: Re: [E-devel] Various patches in eina's doc
update authors in doc patch.
SVN revision: 67369
2012-01-20 02:58:57 +00:00
Cedric BAIL
113348cac9
eina: fix inarray macro.
...
SVN revision: 67346
2012-01-19 15:13:07 +00:00
Gustavo Sverzut Barbieri
44467fed7a
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.
SVN revision: 67343
2012-01-19 14:07:35 +00:00
Gustavo Sverzut Barbieri
09f87ff655
docs: remove some warnings and make eina/eet doc more uniform.
...
SVN revision: 67339
2012-01-19 13:26:40 +00:00
Gustavo Sverzut Barbieri
47198a4132
Oops, forgot to fix some warnings for eina docs out-of-tree generation.
...
SVN revision: 67336
2012-01-19 12:25:42 +00:00
Gustavo Sverzut Barbieri
5f5fe93a51
doxyen -u + minor changes, let's see if warnings are reduced.
...
SVN revision: 67335
2012-01-19 12:23:37 +00:00
Vincent Torri
9a76004770
Eina: Fix compilation of eina_semaphore_lock() (Windows port)
...
Patch by Shinwoo Kim
SVN revision: 67317
2012-01-19 06:33:42 +00:00
Sebastian Dransfeld
b2193b6fd3
eina: Add FIXME
...
SVN revision: 67310
2012-01-19 00:36:20 +00:00
Sebastian Dransfeld
8be657aed8
eina: formatting
...
SVN revision: 67309
2012-01-19 00:36:05 +00:00
Cedric BAIL
4a853cde86
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.
SVN revision: 67296
2012-01-18 17:47:05 +00:00
Guillaume Friloux
537bc81acb
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.
SVN revision: 67289
2012-01-18 04:32:37 +00:00
Carsten Haitzler
46c5dd5329
void impl for eina_lock stuff should return "innocuous" values - ie
...
pretend things succeed ad on a lockless platform u cant have threads
anyway :)
SVN revision: 67288
2012-01-18 04:27:13 +00:00
Carsten Haitzler
0e9a475092
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.
SVN revision: 67284
2012-01-18 02:32:36 +00:00
Tom Hacohen
3b5505aaaa
Eina benchmark: Fixed compilation warnings.
...
SVN revision: 67230
2012-01-15 11:20:59 +00:00
Tom Hacohen
aeef927046
Eina value: Fixed signed and unsigned comparison.
...
SVN revision: 67227
2012-01-15 10:32:10 +00:00
Tom Hacohen
491f887708
Eina tests: Fixed binbuf test.
...
SVN revision: 67225
2012-01-15 10:10:05 +00:00
Gustavo Sverzut Barbieri
7f2ad91c9c
minor improvements to doc (just to trigger buildbot)
...
SVN revision: 67223
2012-01-15 04:33:55 +00:00
Gustavo Sverzut Barbieri
95c845dd5d
eina_value: remove left overs.
...
thanks to stefan_schmidt for spotting it.
SVN revision: 67183
2012-01-13 10:12:16 +00:00
Gustavo Sverzut Barbieri
91c925fc54
eina_value: add array of struct test.
...
works nice :-)
SVN revision: 67159
2012-01-12 23:31:42 +00:00
Gustavo Sverzut Barbieri
b1feb2fe8c
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.
SVN revision: 67155
2012-01-12 22:58:31 +00:00
Gustavo Sverzut Barbieri
32392d38f8
eina_value_blob: nicer convertion from string, array and blob.
...
SVN revision: 67154
2012-01-12 19:39:16 +00:00
Gustavo Sverzut Barbieri
c486211f59
eina_value: simpler and faster code using newer eina_inarray_alloc_at()
...
SVN revision: 67153
2012-01-12 19:16:46 +00:00
Gustavo Sverzut Barbieri
72d4da0022
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.
SVN revision: 67152
2012-01-12 19:08:26 +00:00
Gustavo Sverzut Barbieri
9d424b133b
eina_value: use mempool.
...
thanks to discomfitor about the tip.
SVN revision: 67151
2012-01-12 18:50:43 +00:00
Gustavo Sverzut Barbieri
90e2259b6f
eina_value: improve docs and add blob operations helper.
...
SVN revision: 67149
2012-01-12 17:45:51 +00:00
Gustavo Sverzut Barbieri
9459b0294d
eina_value: improve docs a bit
...
SVN revision: 67148
2012-01-12 17:35:50 +00:00
Gustavo Sverzut Barbieri
9214ac6015
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.
SVN revision: 67147
2012-01-12 17:27:53 +00:00
Gustavo Sverzut Barbieri
47b08d1a16
eina_value: list now adopts given Eina_List.
...
This should allow users to setup the array manually, in an efficient
way, then make it an Eina_Value.
SVN revision: 67146
2012-01-12 17:15:49 +00:00
Gustavo Sverzut Barbieri
d5de2617e0
eina_value: array now adopts given Eina_Inarray.
...
This should allow users to setup the array manually, in an efficient
way, then make it an Eina_Value.
SVN revision: 67145
2012-01-12 17:07:07 +00:00
Gustavo Sverzut Barbieri
bf29583354
eina_value: replace non-posix timercmp() with manual comparison.
...
SVN revision: 67144
2012-01-12 16:48:54 +00:00
Gustavo Sverzut Barbieri
70478893fe
eina_value: add missing @since.
...
SVN revision: 67143
2012-01-12 16:38:53 +00:00
Mike Blumenkrantz
b9ec187bb9
fix docs for first half of eina_value: the second half caused me to start drinking heavily
...
SVN revision: 67112
2012-01-12 03:21:52 +00:00
Gustavo Sverzut Barbieri
113d35f6da
eina_value: add blob type.
...
Nice type that even supports configurable operations such as compare,
free, copy and to_string.
the usual is also supported: provide no ops (operations) and memory
will be left untouched.
nice feature to dump as string :-)
SVN revision: 67109
2012-01-12 03:00:03 +00:00
Gustavo Sverzut Barbieri
ed2183c146
missing file.
...
my bad...
SVN revision: 67108
2012-01-12 02:56:56 +00:00
Gustavo Sverzut Barbieri
a125108ebe
eina_value: add struct timeval.
...
may be useful for esskyuehl.
SVN revision: 67106
2012-01-12 01:31:21 +00:00
Gustavo Sverzut Barbieri
3d701ab72f
fix C++ compile, add test.
...
adding a dummy test so we (read: myself ;-)) remember to compile with
c++ and check errors like missing casts.
SVN revision: 67105
2012-01-12 00:24:22 +00:00
Gustavo Sverzut Barbieri
4e74c624d8
eina_value: add hash.
...
Similar to list and array, but takes string keys instead of position.
It can convert to string, I've added tests for it, but hash algorithm
changes may break the simple comparison I did... and I don't want to
parse the string to be more accurate.
SVN revision: 67103
2012-01-11 23:54:35 +00:00
Gustavo Sverzut Barbieri
0b2ddbd396
eina_value: revert bogus array change, add test.
...
oops! the list commit changed array back! I blame svn not having "git add -p"
and I have to do it by coping files :-/
SVN revision: 67097
2012-01-11 21:55:48 +00:00
Gustavo Sverzut Barbieri
16c03cc014
eina_value: add list type.
...
Similar to array, but less efficient as uses list nodes. If possible
values are stored on list->data itself, otherwise they are allocated
and the pointer goes as list->data.
SVN revision: 67096
2012-01-11 21:52:32 +00:00
Gustavo Sverzut Barbieri
b7539c2ad0
eina_value: convert array to string using [] for single items as well.
...
SVN revision: 67095
2012-01-11 21:50:40 +00:00
Gustavo Sverzut Barbieri
e8710d035b
eina_value: fix error condition handling.
...
SVN revision: 67094
2012-01-11 21:34:49 +00:00
Gustavo Sverzut Barbieri
5e94a82fab
eina_value: optimize detection of basic types.
...
SVN revision: 67090
2012-01-11 19:46:55 +00:00
Gustavo Sverzut Barbieri
25c6251caa
proper include of alloca.h, thanks vtorri for spotting it.
...
SVN revision: 67084
2012-01-11 14:19:51 +00:00
Gustavo Sverzut Barbieri
c502186b3d
make bastards happy
...
SVN revision: 67083
2012-01-11 14:06:07 +00:00
Cedric BAIL
ebbf531b63
eina: massiv fix for Eina_Value.
...
Should be more portable and work with C++.
NOTE: I still see an aliasing break in eina_value_pset, but wasn't
able to figure how to solve it.
SVN revision: 67065
2012-01-11 10:37:13 +00:00
Daniel Juyung Seo
192290dfe9
eina eina_list.h: Refined documentation.
...
SVN revision: 67041
2012-01-11 06:41:04 +00:00
Gustavo Sverzut Barbieri
7a4e904566
add eina_value.
...
eina value is a generic value storage, it's quite efficient to space
(16 bytes) and speed (inlines for basic types).
It's basically a structure describing how to manage memory
(Eina_Value_Type), with default implementation for char, short, int,
long, int64_t (and unsigned variants), float, double, stringshare and
string.
If a type 'value_size' is smaller than 8 bytes, it's stored
inline. Otherwise a value is allocated and managed.
Most of the methods are inline, with special handling for char, short,
int... Then no extra calls are made, allowing the compiler to optimize
them.
For array of a single type it is recommend to use Eina_Value_Array, as
it will efficiently store and access members (just a char if subtype
is EINA_VALUE_TYPE_CHAR, etc).
It can copy itself, compare itself. Including arrays.
It would be nice to have something that converts between EET and this.
SVN revision: 67035
2012-01-11 02:20:26 +00:00
Daniel Juyung Seo
37b1cde295
eina: applied eina_array_count_get -> eina_array_count api change.
...
SVN revision: 67021
2012-01-10 15:34:48 +00:00
Gustavo Sverzut Barbieri
c567b1cb20
add missing @since before vtorri notices it
...
SVN revision: 67005
2012-01-10 00:23:24 +00:00
Gustavo Sverzut Barbieri
45b07ed02d
add eina_inarray.
...
It is an inline array, that is, the members are actually in the
allocated buffer, as opposed to a pointer to its data.
It can be used to manage array of integers, floats or other structures
without fragmenting memory.
The lookups should be fast as memory is linear, then CPU prefetch can
kick in and bring data to cache before it's used.
SVN revision: 67003
2012-01-09 23:24:18 +00:00
Gustavo Sverzut Barbieri
2046694051
magic: define and set eina_error if fails.
...
SVN revision: 67002
2012-01-09 23:14:04 +00:00
Gustavo Sverzut Barbieri
398bf0ee45
Add eina_array_count(), deprecate eina_array_count_get().
...
This makes the API more uniform.
SVN revision: 67001
2012-01-09 23:13:06 +00:00
Youness Alaoui
3b1f533aa6
Eina: Need to keep the CFLAGS/LDFLAGS/LIBS passed to configure from env vars
...
SVN revision: 66965
2012-01-08 07:21:48 +00:00
Youness Alaoui
1a7801e9cd
Eina: Set EINA_CFLAGS/EINA_LDFLAGS before looking for system headers
...
We must check for cflags/ldflags and evil/escape libs before looking
for headers (like sys/mman.h) because they could be provided by one
of those libs. We must also set CFLAGS/LDFLAGS/LIBS variables to the
EINA_CFLAGS/EINA_LDFLAGS/EINA_LIBS vars so they get picked up properly
SVN revision: 66954
2012-01-07 11:39:07 +00:00
Cedric BAIL
682ebd0f02
eina: fix build without Xattr.
...
SVN revision: 66864
2012-01-04 09:41:15 +00:00
Cedric BAIL
a1f2535799
eina: warning--.
...
SVN revision: 66801
2012-01-03 15:24:15 +00:00
Cedric BAIL
edbee63134
eina: detect fault during Eina_File mmap memory access and improve Xattr functions.
...
SVN revision: 66799
2012-01-03 14:59:07 +00:00
Cedric BAIL
fa3ca325d3
eina: let eina_hash_free behave like free.
...
SVN revision: 66694
2011-12-30 13:41:37 +00:00
Cedric BAIL
d92a903ffe
eina: add Eina_Semaphore API.
...
Patch by Vincent Torri.
SVN revision: 66693
2011-12-30 13:38:53 +00:00
Cedric BAIL
8c21aa666d
eina: let eina_hash_free() behave like free().
...
SVN revision: 66636
2011-12-29 14:06:33 +00:00
Cedric BAIL
d42f1a957c
eina: forgotten ChangeLog update in trunk.
...
SVN revision: 66635
2011-12-29 14:03:42 +00:00
Cedric BAIL
feefe8178a
eina: got to aggressive on that one.
...
SVN revision: 66603
2011-12-28 15:01:13 +00:00
Cedric BAIL
30ba201d49
eina: this arg could really be NULL and really simplify our code.
...
SVN revision: 66601
2011-12-28 14:55:19 +00:00
Iván Briano
e421ac90b7
Don't override standard variables, it looks weird. In turn, fix building with automake 1.11.2
...
SVN revision: 66599
2011-12-28 14:13:30 +00:00
Chidambar Zinnoury
b33c67ff9f
eina: indent.
...
SVN revision: 66595
2011-12-28 09:42:40 +00:00
Vincent Torri
35b77e50c4
Eina: better autotools for dirfd
...
SVN revision: 66483
2011-12-23 18:59:24 +00:00
Cedric BAIL
4d01164eb6
eina: forgotten ChangeLog.
...
SVN revision: 66384
2011-12-20 11:09:53 +00:00
Cedric BAIL
ae86b8203f
eina: reorder init as eina_error need eina_stringshare.
...
SVN revision: 66383
2011-12-20 11:00:59 +00:00
Tom Hacohen
94d97101aa
Eina: Fix svn detection for svn 1.7
...
SVN revision: 66142
2011-12-13 08:46:53 +00:00
Cedric BAIL
caebf5cf95
eina: use WRN for warning.
...
SVN revision: 66029
2011-12-08 13:28:32 +00:00
Tom Hacohen
66b3c08aff
Eina bin/(u)strbuf: Added eina_*buf_manage_new_length.
...
Same as eina_*buf_manage_new except for the length parameter.
SVN revision: 66028
2011-12-08 13:10:57 +00:00
Cedric BAIL
6bab74cfd7
eina: make it possible to disable Eina_Log infrastructure.
...
SVN revision: 66025
2011-12-08 12:08:53 +00:00
Mike Blumenkrantz
66792e4a85
fix some format string errors
...
SVN revision: 66016
2011-12-08 04:21:25 +00:00
Mike Blumenkrantz
6b67e93891
fix shadow var warning
...
SVN revision: 66014
2011-12-08 04:18:12 +00:00
Mike Blumenkrantz
8ada55917a
fix eina_log*level_check() to return the value that the docs claim will be returned
...
how did nobody catch this sooner?
SVN revision: 66013
2011-12-08 04:11:54 +00:00
Mike Blumenkrantz
a200550466
update docs for eina_file_dir_list
...
SVN revision: 65997
2011-12-07 22:50:50 +00:00
Vincent Torri
4036add6ad
Eina: missing 'static inline'
...
SVN revision: 65992
2011-12-07 20:28:56 +00:00
Vincent Torri
2c85cff20b
Eina: improve a bit the doc
...
SVN revision: 65987
2011-12-07 12:07:18 +00:00
Carsten Haitzler
58040ce94b
NO! you break api. you made my e sit here with a segv in a getenv.
...
because now many libraries and api's don't have prototyopes for
malloc/calloc and much more and this goes horribly wrong especially on
64bit! the eina headers have provided these includes historically and
removing them is a BREAK in api. apps that used to compile and run
just fine now don't. it's unacceptable to break api.
i'm stuck here in unity for crying out loud! this deservves a big FAT
REVERT for that! :-P
SVN revision: 65983
2011-12-07 01:10:43 +00:00
Cedric BAIL
a285a94120
eina: the new endless story of fixing header in all possible configuration.
...
SVN revision: 65974
2011-12-06 21:33:39 +00:00
Cedric BAIL
05827596b6
eina: last header fix.
...
SVN revision: 65970
2011-12-06 17:05:14 +00:00
Cedric BAIL
2ca68a95c6
eina: fix system header usage.
...
SVN revision: 65969
2011-12-06 16:57:28 +00:00
Cedric BAIL
ca6d71618b
eina: move clist around as needed.
...
SVN revision: 65968
2011-12-06 16:55:50 +00:00
Cedric BAIL
98ced4dd20
eina: only include system header as necessary.
...
SVN revision: 65966
2011-12-06 16:09:56 +00:00
Cedric BAIL
97bd076da0
eina: fix typo.
...
SVN revision: 65921
2011-12-05 21:19:19 +00:00
Cedric BAIL
0d4c616dc5
eina: follow Vincent advice.
...
SVN revision: 65905
2011-12-05 14:25:25 +00:00
Cedric BAIL
a6d8ebc55d
eina: disable log if fnmatch is not present.
...
NOTE: would be better to have an explicit --disable option I think.
SVN revision: 65901
2011-12-05 13:58:09 +00:00
Cedric BAIL
1561954c05
eina: improve system header detection.
...
SVN revision: 65900
2011-12-05 13:57:10 +00:00
Joerg Sonnenberger
30af9a785f
From: Joerg Sonnenberger <joerg@britannica.bec.de>
...
Subject: [E-devel] eina 1.1.0beta patches for/from pkgsrc
Several patches to fix warnings and potential on netbsd/solaris. minor
so i think i'll skip changelog for this.
SVN revision: 65898
2011-12-05 10:17:57 +00:00
Carsten Haitzler
ac4c70ab7b
fix changelogs to mention release.
...
SVN revision: 65860
2011-12-04 01:56:31 +00:00
Mike Blumenkrantz
323cd79c4c
unfrenchify mempool docs
...
SVN revision: 65822
2011-12-02 15:34:11 +00:00
Mike Blumenkrantz
afdbaf8651
+eina_mempool_calloc
...
SVN revision: 65821
2011-12-02 15:27:35 +00:00
Carsten Haitzler
4797954c4d
and now go to normal-like svn revs
...
SVN revision: 65806
2011-12-02 09:45:25 +00:00
Carsten Haitzler
e51c9a6705
revert my 1.x.99 stuff so i can branch.
...
SVN revision: 65803
2011-12-02 09:32:11 +00:00
Carsten Haitzler
b90b289063
and lets bump on to 1.x.99 (or so) for svn... and back to adding snap
...
rev.
SVN revision: 65802
2011-12-02 09:10:56 +00:00
Daniel Juyung Seo
cb771bb445
eina eina_str.h: Fixed documentation typo.
...
SVN revision: 65711
2011-11-30 07:44:36 +00:00
Cedric BAIL
74e8fac021
eina: remove warning when building without siginfo_t.
...
SVN revision: 65437
2011-11-20 14:03:09 +00:00
Cedric BAIL
c89e2ea21f
eina: module don't need dirent.h anymore.
...
SVN revision: 65340
2011-11-17 11:18:12 +00:00
Cedric BAIL
e672dceee2
eina: shutup warning when thread are disabled.
...
SVN revision: 65339
2011-11-17 11:15:54 +00:00
Vincent Torri
ef54722308
evil >= 1.0.0
...
SVN revision: 65299
2011-11-16 17:47:58 +00:00
Cedric BAIL
8bc845b84b
eina: remove useless include.
...
NOTE: I don't know why it was there, but it shouldn't.
Please report any build issue you encounter.
SVN revision: 65291
2011-11-16 10:13:24 +00:00
Carsten Haitzler
9e655af267
update release candidate trees to their release version in preparation
...
for alpha
SVN revision: 65280
2011-11-16 05:34:37 +00:00
Boris Faure
15f0f3e044
eina: update news/changelog
...
SVN revision: 65268
2011-11-15 14:24:53 +00:00
Carsten Haitzler
08552f503f
eina README updated
...
SVN revision: 65236
2011-11-15 11:25:10 +00:00
Vincent Torri
fc5e116745
Eina: fix grep usage
...
replace \+ by + as it should be
add -E option to grep, handle the + in expression
patch by Fabien Romano from OpenBSD
SVN revision: 65207
2011-11-14 22:11:27 +00:00
Vincent Torri
5e673a311f
Eina: warning--
...
patch by Fabien Romano from OpenBSD
SVN revision: 65206
2011-11-14 22:08:02 +00:00
Vincent Torri
13261e2909
whitespace--
...
SVN revision: 65202
2011-11-14 21:37:42 +00:00
Vincent Torri
c251d486dc
Eina: Fix warning
...
Patch by Fabien Romano
SVN revision: 65201
2011-11-14 21:37:25 +00:00
Carsten Haitzler
e171abd5d6
1 - too many in underline
...
SVN revision: 65122
2011-11-13 06:11:43 +00:00
Carsten Haitzler
c305ba5215
NEWS file like ecore - per vtorri's suggestion
...
SVN revision: 65120
2011-11-13 06:08:35 +00:00
Carsten Haitzler
5bdaef94d4
eina NEWS file has summary from changelog. damn we did a lot.
...
SVN revision: 65057
2011-11-11 09:07:20 +00:00
Boris Faure
37efd502fe
eina: add murmur3 hash
...
SVN revision: 65017
2011-11-10 10:58:19 +00:00
Carsten Haitzler
1410e0e3b6
fix clang complaint:
...
http://dev.enlightenment.fr/~discomfitor/eina-2011-11-08/report-izvfa3.html#EndPath
SVN revision: 64973
2011-11-09 07:15:48 +00:00
Carsten Haitzler
0c778a4205
another spacing baddie -> fixed
...
SVN revision: 64972
2011-11-09 06:35:45 +00:00
Carsten Haitzler
40ecca4ce6
remove errant space.
...
SVN revision: 64971
2011-11-09 06:34:03 +00:00
Youness Alaoui
187f4eee8b
Eina: Port eina to the Ps3 by including Escape
...
SVN revision: 64778
2011-11-05 17:49:30 +00:00
Cedric BAIL
6d9d15423a
eina: don't hide symbol if we can build them in.
...
SVN revision: 64762
2011-11-05 14:01:18 +00:00
Vincent Torri
fad8b29ec1
whitespace--
...
SVN revision: 64590
2011-10-31 23:45:22 +00:00
Vincent Torri
a9c800a110
Eina: init TLS key...
...
SVN revision: 64589
2011-10-31 23:45:07 +00:00
Youness Alaoui
78268b076f
Eina: Add Eina_TLS typedefs for win32 and void
...
SVN revision: 64583
2011-10-31 20:44:55 +00:00
Cedric BAIL
e40386c4f9
eina: fallback for case where file system doesn't handle MAP_HUGETLB properly.
...
SVN revision: 64181
2011-10-19 16:09:14 +00:00
ChunEon Park
07e6862922
eina/stringshare - get rid of white space
...
SVN revision: 64165
2011-10-19 08:36:42 +00:00
Sung W. Park
fef1dc318f
From: "Sung W. Park" <sungwoo@gmail.com>
...
"... I've created a resource context per thread using TLS. Since there is no
TLS support in Eina, I've added 4 APIs for that as well. Another patch has
been submitted but i'll just include it in here as well. ..."
SVN revision: 64120
2011-10-17 05:06:01 +00:00
Boris Faure
0d53d91b67
eina: add eina_strbuf_trim/rtrim/ltrim()
...
SVN revision: 64098
2011-10-15 12:56:27 +00:00
Mike McCormack
3e0c2d16dc
eina: Hook clist into the top level documentation
...
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
SVN revision: 64039
2011-10-13 07:30:34 +00:00
Mike McCormack
8ab7dd7390
eina: Document Eina_Clist
...
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
SVN revision: 64038
2011-10-13 07:06:54 +00:00
Mike McCormack
f7d3373df8
eina: Fix bug in eina_clist_element_init
...
Thanks to Naruto TAKAHASHI for pointing out the problem.
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
SVN revision: 64037
2011-10-13 07:06:44 +00:00
Mike McCormack
ff34e5a0a9
eina: Add eina_clist_element_is_linked()
...
Allows checking whether an entry is linked or not.
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
SVN revision: 64029
2011-10-13 02:22:18 +00:00
Mike McCormack
dd51737725
eina: Add Eina_Clist
...
A clist is an inlist with the following features:
- allows removal of items without knowing which list they are in.
- Two pointers per list item & list head
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
SVN revision: 64007
2011-10-12 04:39:27 +00:00
Vincent Torri
ac14342f6e
Eina: big mistake in efl_attribute.m4. My bad
...
SVN revision: 63934
2011-10-09 19:27:08 +00:00
Carsten Haitzler
4364c5720c
fd leak --
...
SVN revision: 63914
2011-10-07 17:47:55 +00:00
Mike McCormack
3331e39a8f
eina: Only declare _eina_tracking_lock with thread debugging
...
Hopefully fixes compilation on windows
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
SVN revision: 63905
2011-10-07 05:56:51 +00:00
Mike McCormack
d1bfb51324
Revert "[Eina] Use Eina_Lock and not pthread. Fix compilation on Windows."
...
SVN revision: 63877
Reverted due to the following build failure:
eina_main.c:117:16: error: conflicting types for ‘_eina_tracking_lock’
../../src/include/eina_inline_lock_posix.x:83:29: note: previous declaration of ‘_eina_tracking_lock’ was here
make[3]: *** [libeina_la-eina_main.lo] Error 1
_eina_tracking_lock is used for implementation of Eina_Locks, so cannot be an Eina_Lock
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
SVN revision: 63904
2011-10-07 05:56:43 +00:00
Vincent Torri
32c2ed673b
[Eina] Use Eina_Lock and not pthread. Fix compilation on Windows.
...
SVN revision: 63877
2011-10-06 06:34:39 +00:00
Boris Faure
3e2c4c377e
eina: fix r63811
...
SVN revision: 63846
2011-10-05 21:09:10 +00:00
Gustavo Sverzut Barbieri
6ecdda5121
eina: remove couple of warnings
...
SVN revision: 63842
2011-10-05 20:00:29 +00:00
Vincent Torri
39f6f85798
fir leak in an example. patch by Guillaume 'Kuri' Friloux
...
SVN revision: 63841
2011-10-05 14:29:40 +00:00
Boris Faure
e708e12fa9
eina: eina_strbuf_append_length(sb, s, 0) is possible
...
also fix typo in doc, remove a trailing space and myself to authors
SVN revision: 63811
2011-10-04 20:47:15 +00:00
Cedric BAIL
a8d945f0a6
eina: actually sanitize all file inserted in the cache.
...
SVN revision: 63789
2011-10-04 02:33:45 +00:00
Cedric BAIL
7efc00819a
eina: prevent ABI break when turning on/off threads debugging.
...
SVN revision: 63788
2011-10-04 02:33:00 +00:00
Cedric BAIL
d1999e9125
eina: add sub-second resolution correctness.
...
SVN revision: 63787
2011-10-04 02:04:40 +00:00
Cedric BAIL
49fa59342f
eina: forgotten lock in eina_file.
...
SVN revision: 63786
2011-10-04 01:55:41 +00:00
Michael BOUCHAUD
9e9bf24156
eina: fix make dist
...
SVN revision: 63668
2011-09-29 15:13:10 +00:00
Vincent Torri
86ce0f6be9
use another m4 macro for __atribute__
...
SVN revision: 63651
2011-09-29 06:07:40 +00:00
Lucas De Marchi
d091773382
eina: provide a C++-compatible version of _EINA_INLIST_CONTAINER
...
In C++ we can't assign a void pointer to another type pointer without casts. We
now rely on typeof() operator *when using C++*.
We may provide another version later for those compilers without typeof()
support.
SVN revision: 63568
2011-09-23 17:02:02 +00:00
Cedric BAIL
9101e46ae6
eina: correctly track lock when waiting for condition.
...
SVN revision: 63566
2011-09-23 13:17:12 +00:00
Vincent Torri
c23c2982be
another useless header file
...
SVN revision: 63547
2011-09-22 20:36:08 +00:00
Vincent Torri
31fad2deac
useless header file
...
SVN revision: 63546
2011-09-22 20:33:58 +00:00
Carsten Haitzler
495f658861
support mtrace in eina at runtime. easier now to enable via env vars.
...
SVN revision: 63498
2011-09-20 11:28:25 +00:00
Youness Alaoui
bfda6af5e5
Eina: In eina_file_open, only set the CLOEXEC flag if system supports exec
...
SVN revision: 63462
2011-09-18 21:57:10 +00:00
Youness Alaoui
2495880ac0
Eina: mmap: Use HAVE_SIGINT_T instead of ifdefs on WIN32
...
SVN revision: 63461
2011-09-18 21:57:02 +00:00
Youness Alaoui
12b0bf3896
Eina: Always use fpathconfig and never assume NAME_MAX is defined
...
SVN revision: 63460
2011-09-18 21:56:54 +00:00
Vincent Torri
2b7649e676
add sys/types.h check
...
SVN revision: 63455
2011-09-18 10:13:29 +00:00
Vincent Torri
d2bc8ef3a5
comments again
...
SVN revision: 63447
2011-09-17 07:13:02 +00:00
Vincent Torri
22fdf89808
whitespaces-- and comments
...
SVN revision: 63446
2011-09-17 06:29:23 +00:00
Vincent Torri
7de5df4f3a
add @since to doc type
...
SVN revision: 63445
2011-09-17 06:24:00 +00:00
Vincent Torri
715bc38190
fix configure output
...
SVN revision: 63434
2011-09-16 07:34:43 +00:00
Vincent Torri
2016db602b
quotes and cleanup
...
SVN revision: 63433
2011-09-16 07:30:40 +00:00
Youness Alaoui
d9ddb7aa4c
Eina: Disable xattr calls when xattr api is not available
...
SVN revision: 63429
2011-09-16 07:08:37 +00:00
Cedric BAIL
0c6ed213ad
eina: add eina_xattr.{c,h}.
...
SVN revision: 63412
2011-09-15 15:37:28 +00:00
Cedric BAIL
286252b18a
eina: use eina safety check in eina_file.c.
...
SVN revision: 63409
2011-09-15 13:57:27 +00:00
Cedric BAIL
680170b3f9
eina: add XAttr support to eina.
...
SVN revision: 63408
2011-09-15 12:39:40 +00:00
Cedric BAIL
60d03bc2d2
eina: fix eina inlist sorted insert (with and without state)
...
SVN revision: 63398
2011-09-14 22:04:37 +00:00
Vincent Torri
6f054d2c0b
clean generated files
...
SVN revision: 63395
2011-09-14 19:08:50 +00:00
Youness Alaoui
4340f75b0b
Eina: Remove 'unused var' warnings from eina_inline_lock_void include
...
SVN revision: 63340
2011-09-12 03:44:04 +00:00
Youness Alaoui
1f52ee2a39
Eina: Use @EINA_LIBS@ for static linking libs in .pc file
...
SVN revision: 63339
2011-09-12 03:43:55 +00:00
Cedric BAIL
a0fab4b871
eina: threads debugging back to work.
...
SVN revision: 63266
2011-09-07 10:16:27 +00:00
Mike McCormack
81ce922044
eina: Fix broken main loop thread check
...
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
SVN revision: 63263
2011-09-07 08:06:42 +00:00
Tom Hacohen
98b5aa4b36
Eina (u)strbuf: Added eina_(u)strbuf_manage_new.
...
This lets us take a string and use it as the string buffer instead of
copying and allocating.
SVN revision: 63226
2011-09-06 10:58:53 +00:00
Cedric BAIL
336806d264
eina: oops. Thanks Vincent.
...
SVN revision: 63214
2011-09-05 20:26:21 +00:00
Cedric BAIL
6936745755
eina: add eina_inlist_sorted_state_insert and helper.
...
Note: this function help keep a jump table so we reduce
the need to walk over the complete list to insert one
element. It's of course doesn't make it an O(log(n)) in
access time, but it increase it's cost more slowly.
With 10000 items, you can count around 50 pointers
dereferencing and with with 50000 items around 200 pointers
dereferencing.
Of course the comparison stay in O(log(n)).
SVN revision: 63213
2011-09-05 20:15:12 +00:00
Carsten Haitzler
325dbc04ae
fix COPYING to say 2011.
...
SVN revision: 63187
2011-09-05 07:15:41 +00:00
Gustavo Sverzut Barbieri
32110747c9
eina_prefix: use log infrastructure.
...
use eina_log instead of weirdo printfs... multiple levels, greatness
everywhere... helped me debug emotion's warning.
It is always a pain to try to use library log and notice they are not
using their own standards :-/
export EINA_LOG_LEVELS=eina_prefix:4
SVN revision: 63108
2011-09-03 05:31:25 +00:00
Tom Hacohen
1cacec0d41
Eina rbtree: Fixed EINA_RBTREE_GET. Should enclose in parenthesis.
...
SVN revision: 63054
2011-09-01 12:11:24 +00:00
Vincent Torri
f9e44b36d4
Add missing function in lock void
...
Patch by Youness Alaoui
SVN revision: 63018
2011-08-31 08:50:19 +00:00
Mike Blumenkrantz
b45b6fb6af
seriously guys.
...
null checks.
why are there still functions that don't have them after we've hit 1.0?
SVN revision: 62900
2011-08-28 06:30:51 +00:00
Vincent Torri
bdde82fda3
fix main loop stuff on Windows
...
SVN revision: 62864
2011-08-26 16:13:29 +00:00
Vincent Torri
56f0311cd3
define HAVE_DLOPEN also on Windows
...
SVN revision: 62863
2011-08-26 16:01:28 +00:00
Carsten Haitzler
c20670baa2
u know... if u are going to add lots of pthread calls to .x headers
...
that get inlined.. u should be telling apps to enable pthread too at
link time eh? :)
SVN revision: 62850
2011-08-26 04:50:55 +00:00
Carsten Haitzler
3705bda72b
oooooh wowo! that prefix change broke stuff1 it looks ok on elm. revert!
...
SVN revision: 62813
2011-08-25 12:13:16 +00:00
Jérémy Zurcher
c5606319d9
From: Jérémy Zurcher <jeremy@asynk.ch>
...
Subject: [E-devel] patch : eina_prefix + elementary_test
please find attached a small patch for eina_prefix
it prevent segfault when for instance
no elm_app_compile_*_dir_set is called prior to elm_app_info_set
and another one for elementary/src/bin/test*.c which tends to replace
usage of PACKAGE_DATA_DIR with elm_app_data_dir_get
SVN revision: 62795
2011-08-25 10:01:22 +00:00
Gustavo Lima Chaves
b63efee190
[eina] Repeated link, be gone.
...
SVN revision: 62749
2011-08-24 15:13:10 +00:00
Carsten Haitzler
19124f1282
add some comments and debug to eina_preifx. in case we have to test it
...
when packaged under debians new multiarch.
SVN revision: 62706
2011-08-22 23:40:05 +00:00
Cedric BAIL
1ec7bacc52
eina: add eina_main_loop_define.
...
Do not use it.
SVN revision: 62530
2011-08-17 09:42:43 +00:00
ChunEon Park
0b30e759ed
eina - just removed white spaces.
...
SVN revision: 62495
2011-08-16 09:08:02 +00:00
Mike Blumenkrantz
3b3f567975
guys...null checks are not the end of the world.
...
SVN revision: 62360
2011-08-11 21:26:46 +00:00
Mike Blumenkrantz
c2d2867a2b
fix segv from missing null check
...
SVN revision: 62320
2011-08-10 22:42:27 +00:00
Carsten Haitzler
6bc6891370
if we are going to have %d's - use them in the next scanf too.
...
SVN revision: 62282
2011-08-10 04:39:04 +00:00
Mike McCormack
db31bed29e
eina: Use %d to get build time
...
eina_hamster_count() was returning -1 on my machine (Ubuntu 11.04/AMD64),
causing make check to fail.
eina_test_main.c:51:F:Main:eina_hamster:0: Failure 'eina_hamster_count() <= 0' occured
Using %d instead of %i for integers fixes it.
Signed-off-by: Mike McCormack <mj.mccormack@ring3k.org>
SVN revision: 62268
2011-08-09 23:48:47 +00:00
Cedric BAIL
2b247bc166
eina: windows cleanup.
...
Patch by Vincent Torri.
SVN revision: 62246
2011-08-09 09:21:07 +00:00
Cedric BAIL
fb56b5f5e3
eina: add generic macro to generate error when outside of the main loop.
...
SVN revision: 62240
2011-08-09 08:48:57 +00:00
Cedric BAIL
9838bda52f
eina: detect main loop for windows to.
...
SVN revision: 62239
2011-08-09 08:47:57 +00:00
Cedric BAIL
bfa83a2ff5
eina: correct guard of thread code.
...
SVN revision: 62238
2011-08-09 08:46:29 +00:00
Cedric BAIL
c89dfa73b6
eina: make dlopen optional.
...
SVN revision: 62236
2011-08-09 08:39:39 +00:00
Iván Briano
72a46b4342
It may be good to link Eina examples against Eina
...
SVN revision: 62141
2011-08-05 15:59:22 +00:00
Iván Briano
60730094bd
Check Evas too, DSO thingy
...
SVN revision: 62139
2011-08-05 15:39:18 +00:00
Jonas M. Gastal
433c56be47
Eina: Fixing borked eina_stringshare diagram.
...
SVN revision: 62135
2011-08-05 13:45:01 +00:00
Jonas M. Gastal
aefb755102
Eina: Fixing image in pdf doc.
...
SVN revision: 62116
2011-08-04 22:52:29 +00:00
Jonas M. Gastal
8b64d75531
Eina: eina tiler example.
...
SVN revision: 62113
2011-08-04 22:05:46 +00:00
Jonas M. Gastal
05e1dc49c6
Eina: eina_tiler docs(examples to follow).
...
SVN revision: 62112
2011-08-04 22:05:25 +00:00
Jonas M. Gastal
610facb5be
Eina: adding image to eina_stringshare.
...
SVN revision: 62104
2011-08-04 20:44:05 +00:00
Jonas M. Gastal
1e9076c27b
Eina: adding image showing eina array growth.
...
SVN revision: 62103
2011-08-04 20:43:51 +00:00
Tom Hacohen
41f840b9b1
Eina list: eina_list_data_set is *not* pure.
...
SVN revision: 62081
2011-08-04 06:44:19 +00:00
Jonas M. Gastal
7e095c6b70
Eina: Separating eina_lock and company from eina_file's
...
group.
SVN revision: 62067
2011-08-03 19:13:18 +00:00
Cedric BAIL
bcf2d84237
eina: the actual patch.
...
SVN revision: 62052
2011-08-03 12:01:35 +00:00
Cedric BAIL
5a42968177
eina: fix eina_share_common_ref/del
...
patch by Myungjae Lee <mjae.lee@samsung.com>.
SVN revision: 62051
2011-08-03 12:00:46 +00:00
Carsten Haitzler
601a4e3cef
improve eina main page and links
...
SVN revision: 62038
2011-08-03 04:55:12 +00:00
Tom Hacohen
ea689302c5
Eina: Moved valgrind check to the libararies check section.
...
As suggested by vtorri.
SVN revision: 61990
2011-08-02 10:50:13 +00:00
Carsten Haitzler
29864666c9
that's it - remove autom4te.cache dirs again... - keep having to many
...
problems about it storing invalid config when the same build trees are
shared between multiple architectures and machines. :( better we
build right than build fast.
SVN revision: 61974
2011-08-02 04:13:33 +00:00
Cedric BAIL
770e7fe863
eina: forgotten since.
...
SVN revision: 61957
2011-08-01 14:59:51 +00:00
Cedric BAIL
811b050ee8
eina: better implementation.
...
SVN revision: 61900
2011-07-29 15:37:39 +00:00
Cedric BAIL
2b574523d2
eina: add eina_main_loop_is.
...
SVN revision: 61896
2011-07-29 14:56:42 +00:00
Jonas M. Gastal
cd8cd93209
Eina: Groups shouldn't be inside themselves, and both groups
...
and conditionals need to be properly closed..
SVN revision: 61413
2011-07-15 18:37:44 +00:00
Jonas M. Gastal
2d6dec2b4e
Eina: Making html tags in doc appear only in html doc.
...
SVN revision: 61412
2011-07-15 18:35:45 +00:00
Jonas M. Gastal
eff8c0568e
Eina: Giving some pages better names and fixing a typo.
...
SVN revision: 61411
2011-07-15 18:33:41 +00:00
Lucas De Marchi
6fb6089ea1
eina: fix common misspellings
...
Misspellings detected by codespell.
SVN revision: 61405
2011-07-15 14:31:31 +00:00
Jonas M. Gastal
f99a16d27d
Eina: add descriptions to eina accessor and eina strbuf.
...
SVN revision: 61404
2011-07-15 14:07:03 +00:00
Vincent Torri
70d3c66bd7
Eina: link against iconv, use rt_libs to hold -lrt and add -lrt to eina.pc.in's Libs.private
...
SVN revision: 61358
2011-07-14 07:18:11 +00:00
Vincent Torri
f9fe039a95
Eina : configure.ac : improve shm_open detection
...
* Do not use spaces around '=' in configure scripts
* formatting
* put -lrt in EINA_LIBS instead of LIBS
SVN revision: 61357
2011-07-14 06:58:59 +00:00
Cedric BAIL
43e1e44168
eina: fix typo.
...
SVN revision: 61329
2011-07-13 09:25:49 +00:00
Cedric BAIL
fc8f5a4be9
eina: fix eina shm_open detection.
...
SVN revision: 61328
2011-07-13 09:21:55 +00:00
Cedric BAIL
5d21b6699b
eina: fix build on NetBSD.
...
NOTE: we need a fallback for shm_open that will work on BSD system.
SVN revision: 61324
2011-07-13 08:51:19 +00:00