Tom Hacohen
011fd3b1ce
Eina: Fixed usage of gnu extension.
...
(idx, ## __VA_ARGS__) is a gnu extension, fixed to be (__VA_ARGS__).
Should be fine this way. Less descriptive maybe, because now people will
may think it's ok to pass 0 arguments, but there's no avoiding this.
SVN revision: 70194
2012-04-15 09:54:47 +00:00
Jonas M. Gastal
6122b8a8de
Cleanup Doxygens Warnings - eina
...
Warnings resolved for:
eina_clist.h
eina_file.h
eina_hash.h
eina_inlist.h
eina_lalloc.h
eina_lock.h
SVN revision: 70156
2012-04-12 17:44:45 +00:00
Thiago Thamada
0ae4bf95e7
Cleanup Doxygen Warnings - eina
...
Patch by: Thiago Thamada <tiba@profusion.mobi>
SVN revision: 69999
2012-04-10 18:16:09 +00:00
Jihoon Kim
7eace88750
eina: fix typos in doc
...
SVN revision: 69927
2012-04-05 04:24:36 +00:00
Jihoon Kim
7fb7cec16d
eina: fix doc return type
...
Sign-Off By: Jérôme Pinot
SVN revision: 69924
2012-04-05 03:52:51 +00:00
Christopher Michael
255d17ce9e
Eina: Fix doxy typo.
...
SVN revision: 69920
2012-04-04 16:48:23 +00:00
Vincent Torri
a40ca4ab97
Eina: Fix cases where dlopen is wrongly checked because of autoconf cache values
...
SVN revision: 69909
2012-04-03 16:28:40 +00:00
Daniel Juyung Seo
33710dc01d
eet, eina, eio, embryo, ethumb, evas, expedite: Updated .gitignore
...
SVN revision: 69899
2012-04-03 13:43:31 +00:00
Cedric BAIL
792801491e
eina: abort early on free(NULL).
...
SVN revision: 69897
2012-04-03 13:31:29 +00:00
Cedric BAIL
6f6e4a4570
eina: improve debugging message.
...
SVN revision: 69896
2012-04-03 13:28:04 +00:00
Vincent Torri
b65e51b550
update date
...
SVN revision: 69890
2012-04-03 08:03:47 +00:00
Vincent Torri
19d781290a
formatting
...
SVN revision: 69817
2012-03-31 10:12:05 +00:00
Vincent Torri
e1b801eebc
Eina: update ChangeLog (NEWS already filled)
...
SVN revision: 69814
2012-03-31 07:38:01 +00:00
Vincent Torri
cd958cb926
Eina: more doc
...
SVN revision: 69813
2012-03-31 07:32:51 +00:00
Vincent Torri
061c5ec0ba
Eina: add missing API on Windows. Do I need to update ChangeLog and NEWS ?
...
SVN revision: 69811
2012-03-31 06:32:11 +00:00
Vincent Torri
17b49cc072
formatting
...
SVN revision: 69810
2012-03-31 06:30:53 +00:00
Jérôme Pinot
c8eac1ee80
From: Jérôme Pinot <ngc891@gmail.com>
...
Subject: [E-devel] [patch] eina doc leftover
Forgot this one
SVN revision: 69792
2012-03-30 10:13:38 +00:00
Iván Briano
73bed950b0
Hack to avoid freeing old data when calling eina_hash_set() with new_data == NULL. Let's have a minute of silence for all the innocent children that died because of this very grave error.
...
SVN revision: 69763
2012-03-29 17:46:17 +00:00
Jérôme Pinot
f88759f4cb
From: Jérôme Pinot <ngc891@gmail.com>
...
Subject: [E-devel] [patch] eina doxygen doc
Here is a patch that fix several links in the eina doxygen doc. Most of
the problems come from unescaped special characters.
SVN revision: 69746
2012-03-29 11:35:34 +00:00
Cedric BAIL
f2c3f74547
eina: plenty of place set EINA_CFLAGS before that line.
...
SVN revision: 69705
2012-03-28 12:58:50 +00:00
Carsten Haitzler
a2f578c9c5
bring eina's NEWS up to date with changelog.
...
SVN revision: 69625
2012-03-26 04:33:56 +00:00
Vincent Torri
4f27f81542
fix dist
...
SVN revision: 69614
2012-03-25 17:08:13 +00:00
Vincent Torri
44e546c333
better m4 macro
...
SVN revision: 69613
2012-03-25 16:39:51 +00:00
Vincent Torri
cf6a99d620
and -lm in .pc
...
SVN revision: 69610
2012-03-25 11:16:14 +00:00
Vincent Torri
c5ff12764c
didn't mean to commit that
...
SVN revision: 69609
2012-03-25 11:14:48 +00:00
Vincent Torri
f00cf44117
Eina: fix shm_open() check (can be in libc or librt) + various autotools cleaning
...
This works in linux and windows, and should fix shm_detection on BSD (including Mac)
BSD, Mac and solaris users : please check that it compiles and shm_open is detected
SVN revision: 69608
2012-03-25 11:12:32 +00:00
Daniel Juyung Seo
13f1bc5049
eina eina_list.h: Fixed typo in the documentation.
...
SVN revision: 69605
2012-03-25 08:51:02 +00:00
Vincent Torri
2e3ed73101
Eina: Fix a previous commit
...
SVN revision: 69511
2012-03-19 19:31:29 +00:00
Carsten Haitzler
4092638bf7
add back in libs.private/requires to pc files with some fixes for
...
missing.
SVN revision: 69482
2012-03-17 05:37:25 +00:00
Carsten Haitzler
63ed6ac02f
gear up svn for release. one of many steps/things to do.
...
SVN revision: 69481
2012-03-17 04:17:29 +00:00
Cedric BAIL
7f98c388e1
eina: update AUTHORS.
...
SVN revision: 69457
2012-03-16 11:26:23 +00:00
Cedric BAIL
9f4dd88b41
eina: fix build when valgrind is not in a standard location.
...
Patch by Raphael Kubo da Costa <rakuco@freebsd.org>.
SVN revision: 69456
2012-03-16 11:25:14 +00:00
Cedric BAIL
dd3d01f643
eina: backport and ChangeLog for dead lock in Eina_File.
...
SVN revision: 69339
2012-03-14 15:53:14 +00:00
Cedric BAIL
4a5fab140b
eina: fix dead lock issue. This is hidding a bug with eina_hash_pointer_new.
...
SVN revision: 69338
2012-03-14 15:35:12 +00:00
Cedric BAIL
486d214a31
eina: build back on FreeBSD.
...
SVN revision: 69293
2012-03-13 11:25:56 +00:00
Vincent Torri
394e8af271
Eina: use Windows macros
...
SVN revision: 69069
2012-03-08 20:32:15 +00:00
Vincent Torri
2872041d17
Eina: use stat64() instead of GetFileAttributesEx()
...
SVN revision: 69067
2012-03-08 17:58:44 +00:00
cnook
f2c5a4bede
From: cnook <kimcinoo@gmail.com>
...
Subject: [E-devel] [Patch][Eina] eina_file_win32 - using
eina_file_statat();
On windows, Elementary gives build error. cause..
The elm_config.c uses eina_file_statat(); but It is not in the
eina_file_win32.c
So the attached patch comes. Please keep the patch in the up stream.
Thanks.
SVN revision: 69058
2012-03-08 13:54:01 +00:00
Mike Blumenkrantz
da4d59e589
eina 1.2 changelog: docs are now slightly less french
...
SVN revision: 69025
2012-03-07 19:58:17 +00:00
Mike Blumenkrantz
14998f066d
warn--
...
SVN revision: 69022
2012-03-07 19:52:21 +00:00
Vincent Torri
28dbc90790
fix logic
...
SVN revision: 68927
2012-03-07 10:58:58 +00:00
Vincent Torri
47c56224df
Eina: fix leak on windows too
...
SVN revision: 68926
2012-03-07 10:56:55 +00:00
Cedric BAIL
a16dd17686
eina: backport, ChangeLog and NEWS.
...
SVN revision: 68925
2012-03-07 10:45:06 +00:00
Cedric BAIL
4d1dc8ca35
eina: don't reopen file when file didn't change.
...
NOTE: we were leaking file at very high speed !
SVN revision: 68924
2012-03-07 10:40:49 +00:00
Cedric BAIL
fed23d8ca4
eina: fix argument numbering.
...
SVN revision: 68917
2012-03-07 09:38:08 +00:00
Vincent Torri
a6770d97ff
Eina: cosmetic (move eina_file_mmap_faulty to the 'global' part)
...
SVN revision: 68908
2012-03-07 08:58:55 +00:00
Vincent Torri
9bddd8c4a7
Eina: unlock mutex before returning
...
Patch by Shinwoo Kim, modified by me
SVN revision: 68885
2012-03-07 07:25:05 +00:00
Daniel Vieira Franzolin
9816cfd263
Another eina_inarray example.
...
Patch by: "Daniel Vieira Franzolin" <daniel@profusion.mobi>
SVN revision: 68835
2012-03-06 14:27:03 +00:00
Gustavo Sverzut Barbieri
4626ec4435
note the bug spotted by Tasn.
...
SVN revision: 68824
2012-03-06 12:35:24 +00:00
Daniel Vieira Franzolin
a1333a87ad
Fix examples's compilation instructions to work on ubuntu.
...
Patch by: "Daniel Vieira Franzolin" <daniel@profusion.mobi>
SVN revision: 68743
2012-03-05 21:17:30 +00:00
Samuel F. Baggen
df4c97af21
removed useless information about libm dependency which is shipped with libc
...
SVN revision: 68718
2012-03-05 13:26:41 +00:00
Cedric BAIL
49be656f5b
eina: fix warning. Patch by Seo Sanghyeon.
...
SVN revision: 68628
2012-03-02 15:36:54 +00:00
Raphael Kubo da Costa
37efb6c4db
Eina: Add eina_value_array_value_get().
...
Since k-s is on the road this days, we'd better write some code ourselves.
This is array counterpart of eina_value_struct_value_get(), and retrieves
an item from an Eina_Value_Array as an Eina_Value.
Code writing the setter is welcome.
Patch by: "Raphael Kubo da Costa" <kubo@profusion.mobi>
SVN revision: 68581
2012-03-01 17:15:54 +00:00
Cedric BAIL
411a4eb936
eina: faster implementation of Eina_Rbtree by Alexandre Becoulet.
...
SVN revision: 68474
2012-02-27 13:29:47 +00:00
Cedric BAIL
d6a385cff6
eina: fix typos due to merge.
...
SVN revision: 68405
2012-02-24 11:42:47 +00:00
Cedric BAIL
423cc7ba43
eina: add Exotic support.
...
SVN revision: 68398
2012-02-24 11:15:14 +00:00
Carsten Haitzler
0e38e05208
lets not deprecate things just yet shall we?
...
SVN revision: 68369
2012-02-24 00:50:30 +00:00
Cedric BAIL
3597d526eb
eina: forgotten since.
...
SVN revision: 68341
2012-02-23 14:11:18 +00:00
Cedric BAIL
b693dd6035
eina: introduce Eina_Stat to prevent issue when building with different config option.
...
SVN revision: 68315
2012-02-23 11:45:25 +00:00
Jonas M. Gastal
563271a109
Container page improvements.
...
SVN revision: 68278
2012-02-22 16:20:55 +00:00
Jonas M. Gastal
48b90afbbf
Stringshare doc additions.
...
SVN revision: 68271
2012-02-22 13:35:01 +00:00
Jonas M. Gastal
b985aae805
Eina inline array example.
...
SVN revision: 68270
2012-02-22 13:15:38 +00:00
Cedric BAIL
ddbf4f1252
eina: update info in eina_file_stat seems more usefull.
...
SVN revision: 68264
2012-02-22 11:50:29 +00:00
Cedric BAIL
c461a7eed9
eina: add eina_file_stat helper function.
...
SVN revision: 68259
2012-02-22 10:24:11 +00:00
Carsten Haitzler
ec2c700988
since n->filename became non-stringshared only after 1.1 - no
...
changelog needed, but fix eina waring! (thanks shinwoo!!!)
SVN revision: 68256
2012-02-22 09:42:27 +00:00
Vincent Torri
630c6f41d5
Eina: fix win32 RWlocks
...
* initialize all the mutex members in eina_rwlock_new()
* fix assigments in eina_rwlock_take_read() and eina_rwlock_take_write()
SVN revision: 68248
2012-02-22 08:34:38 +00:00
Vincent Torri
4f28f9c0ca
Eina: gnu_printf format attribute was introduced in gcc 4.4
...
SVN revision: 68174
2012-02-20 23:34:15 +00:00
Vincent Torri
b10e9943ce
Eina: remove ugly FMT_* compatibility strings as Evil has now POSIX printf family functions
...
SVN revision: 68087
2012-02-17 20:53:36 +00:00
Vincent Torri
851c947323
Use gnu_printf attribute to detect wrong usage of printf family functions
...
SVN revision: 68086
2012-02-17 20:52:15 +00:00
Vincent Torri
e52cadb377
move standard header file before private ones
...
SVN revision: 68085
2012-02-17 20:51:05 +00:00
Jonas M. Gastal
30d73cffd7
Eina value example with user defined type.
...
SVN revision: 68082
2012-02-17 18:52:58 +00:00
Jonas M. Gastal
a42425297c
Documented example of eina_value struct usage.
...
SVN revision: 68072
2012-02-17 13:24:05 +00:00
Jonas M. Gastal
9770ad9675
Documented example for eina_value.
...
SVN revision: 68071
2012-02-17 13:24:02 +00:00
Cedric BAIL
e0e0d4ddc3
eina: fix forgotten initialization of count during eina_list_split_list.
...
SVN revision: 68067
2012-02-17 11:16:01 +00:00
Leif Middelschulte
2f2f0c1566
Change impl. to follow param name of header.
...
SVN revision: 68065
2012-02-17 10:52:20 +00:00
Leif Middelschulte
e7c134bc58
rename 'size' param of eina_list_sort to 'limit'
...
SVN revision: 68064
2012-02-17 10:48:49 +00:00
Gustavo Sverzut Barbieri
88d6b934aa
eina_model: new events for load/unload.
...
Added the events: loaded and unloaded to notify eina_model_load() and
eina_model_unload() were called.
To be more specific, the interfaces used by EINA_MODEL_TYPE_MIXIN
(Eina_Model_Interface_Properties and Eina_Model_Interface_Children)
also do:
* properties,loaded
* properties,unloaded
* children,loaded
* children,unloaded
SVN revision: 68035
2012-02-16 19:48:13 +00:00
Gustavo Sverzut Barbieri
f7787c0e26
3/3 eina_model: fix inheritance test.
...
HUMAN_POOPER_IFACE must have ANIMAL_POOPER_IFACE as parent interface,
otherwise the order will be incorrect.
The test were also improved in other ways:
* use ck_assert_int_eq() instead of fail_if()... it prints the incorrect value
* check refcount
* unref models
* shutdown eina
SVN revision: 68034
2012-02-16 19:33:50 +00:00
Gustavo Sverzut Barbieri
ca2db67b69
2/3 eina_model: properly eliminate duplicates.
...
We must check for duplicates otherwise we'll have remaining entries
after topological sort.
SVN revision: 68033
2012-02-16 19:31:56 +00:00
Gustavo Sverzut Barbieri
769d2e2210
1/3 eina_model: lookup interfaces in the correct order.
...
We should lookup then in forward order, as they are sorted from
most-specific first, with parents at the end.
This breaks test, will fix in the last commit (3/3).
SVN revision: 68032
2012-02-16 19:30:23 +00:00
Tom Hacohen
e9e9d41cf2
Elm model: Updated examples.
...
Patch by Yakov.
SVN revision: 68027
2012-02-16 12:37:27 +00:00
Jonas M. Gastal
e4f6736b86
Documentation for all eina model functions.
...
SVN revision: 67992
2012-02-15 18:44:50 +00:00
Gustavo Sverzut Barbieri
b7750c1a5b
make tasn happier
...
SVN revision: 67987
2012-02-15 14:17:16 +00:00
Gustavo Sverzut Barbieri
cd15de4af3
review animal as example for other example files.
...
SVN revision: 67986
2012-02-15 14:08:01 +00:00
Gustavo Sverzut Barbieri
c94a7ec770
build example.
...
SVN revision: 67985
2012-02-15 13:50:43 +00:00
Tom Hacohen
de808a0fb8
Eina model: Added an advanced inheritance + interface example.
...
SVN revision: 67965
2012-02-15 08:18:47 +00:00
Tom Hacohen
b1bb770688
Eina model: Fix issues with interface inheritance.
...
The ptr comparison had issues.
Order of interface overrides was wrong.
SVN revision: 67915
2012-02-14 09:48:00 +00:00
Gustavo Sverzut Barbieri
75839f61a5
eina_value_stringshare: safer copy, to cope copying user-generated structs.
...
array, list, struct and others set() now copies the values. These
values can be created by user, in this case string is just a stack
object and not a real eina_stringshare.
To cope with it, add the string instead of referencing it. Bit slower,
but nicer behavior.
SVN revision: 67886
2012-02-13 16:18:47 +00:00
Gustavo Sverzut Barbieri
c511fece19
improve documentation of eina model and value.
...
SVN revision: 67851
2012-02-11 18:04:32 +00:00
Gustavo Sverzut Barbieri
4915aeb8db
model: add helper for common pattern
...
SVN revision: 67845
2012-02-11 00:48:42 +00:00
Gustavo Sverzut Barbieri
5c0041f6ad
one day I'll be less stupid...
...
... or one day we'll move to git so I can rewrite stupid commits :-D
SVN revision: 67844
2012-02-11 00:42:00 +00:00
Gustavo Sverzut Barbieri
1fc6b13d10
eina_value: break usage, but makes it more uniform and correct.
...
I did a bad decision to steal memory for Array, List, Hash and Struct
types, it was nice to not have to copy it internally, but breaks when
one needs to set a new value that was set elsewhere. What did not
happen with string, integers and other basic types.
This was exposed by Raphael Kubo using eina_model_property_set() with
complex types (Array, List and Hash) and it was not possible to
correctly set such properties.
Now it's all set, but the behavior changed and the memory is not
stolen and released anymore. Test eina_test_value.c was changed to
reflect it.
SVN revision: 67843
2012-02-11 00:34:25 +00:00
Gustavo Sverzut Barbieri
3fbce27e8d
value: be safer on reset of existing values.
...
if user get and then set the same value, we should not crash and this
may happen with previous code as the old
string/array/value/list... were released, then you ended with the
released memory still being pointed.
SVN revision: 67841
2012-02-10 22:03:48 +00:00
Gustavo Sverzut Barbieri
6609523415
value: just setup on new memory!
...
We should not flush and then setup the memory, instead we leave
vset/pset functions do their own stuff to clean previous data, if any.
SVN revision: 67840
2012-02-10 21:43:55 +00:00
Gustavo Sverzut Barbieri
edfd15d9ca
value: allow multiple flush.
...
multiple flush may happen when handling errors. May be used in some cases.
SVN revision: 67839
2012-02-10 21:34:28 +00:00
Gustavo Sverzut Barbieri
0d1b66d44e
eina_value: fix convert to string on empty/null cases.
...
SVN revision: 67838
2012-02-10 21:18:59 +00:00
Gustavo Sverzut Barbieri
63cc1bceea
fix test leaks
...
SVN revision: 67836
2012-02-10 20:39:27 +00:00
Gustavo Sverzut Barbieri
e8924c7600
eina_value_hash: must free hash value after it's flushed.
...
SVN revision: 67835
2012-02-10 20:39:07 +00:00
Gustavo Sverzut Barbieri
817d6234b8
fix memleak in test suite.
...
SVN revision: 67834
2012-02-10 20:38:28 +00:00
Jonas M. Gastal
27f0f4cceb
Another example for eina_model.
...
Patch by: "Jonas M. Gastal" <jgastal@profusion.mobi>
SVN revision: 67832
2012-02-10 17:18:10 +00:00
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