Sebastian Dransfeld
dd4a299895
Remove const qualifier.
...
Dynamically allocated buffers which we will free shouldn't be const.
SVN revision: 38069
2008-12-09 20:08:36 +00:00
Chidambar Zinnoury
c4525334f3
Leak --: ecore_file_dir_get always returns a new buffer.
...
SVN revision: 38068
2008-12-09 18:28:45 +00:00
Gustavo Sverzut Barbieri
c8d86791e6
Include stdio.h so ecore_getopt_help() is fine.
...
We need FILE* for ecore_getopt_help().
SVN revision: 38067
2008-12-09 18:15:28 +00:00
Cedric BAIL
2b278b9419
Remove use of evas_hash from evas and use directly eina.
...
SVN revision: 38066
2008-12-09 17:56:31 +00:00
Cedric BAIL
9bdf013fa4
Better put pointer at the beginning of the structure.
...
SVN revision: 38065
2008-12-09 17:55:33 +00:00
Cedric BAIL
9b9f752379
Only allocate hash bucket when needed.
...
Make eina_hash_del_by_key really different from eina_hash_del.
SVN revision: 38064
2008-12-09 17:39:48 +00:00
Cedric BAIL
00e8fba9ba
All eina_hash_find* functions should not report problem when hash or key is NULL.
...
SVN revision: 38059
2008-12-09 14:59:30 +00:00
Cedric BAIL
8ee267ec0d
Remove uneeded included.
...
SVN revision: 38058
2008-12-09 14:30:54 +00:00
Cedric BAIL
b0e1863871
eina_hash_find should not complain when hash or key is NULL.
...
SVN revision: 38057
2008-12-09 14:24:08 +00:00
Cedric BAIL
68cfd7839f
Add a visual feedback to counte test.
...
SVN revision: 38056
2008-12-09 13:58:04 +00:00
Cedric BAIL
24c1995b68
Change eina_counter_dump to return a string so it could work easily on windows.
...
SVN revision: 38055
2008-12-09 13:55:10 +00:00
Cedric BAIL
af30207725
eina_hash_del must honor the data parameter when the key is passed. Propagate
...
it correctly.
SVN revision: 38054
2008-12-09 13:52:09 +00:00
Chidambar Zinnoury
dfadbd5bd7
When your libc doesn't provide iconv, and that you use GNU libiconv, iconv is available on libiconv_plug.so.
...
SVN revision: 38052
2008-12-09 13:31:38 +00:00
Cedric BAIL
273b7422d6
It's cleaner to first include private header as they could define macro
...
differently than public interface.
SVN revision: 38050
2008-12-09 13:06:17 +00:00
Cedric BAIL
d19801f7c2
Prevent warning from Eina Magic when hash population is 0.
...
SVN revision: 38049
2008-12-09 13:05:33 +00:00
Cedric BAIL
3c1b5cfb3c
Fix documentation.
...
SVN revision: 38048
2008-12-09 13:02:44 +00:00
Cedric BAIL
55d9c97446
__UNUSED__ macro is not exported by eina.
...
SVN revision: 38045
2008-12-09 11:01:12 +00:00
Davide Andreoli
d77abdd28b
* Better size_hint calc for vertical and horiz layout, need to do the same for the other layouts
...
SVN revision: 38035
2008-12-09 00:02:48 +00:00
Carsten Haitzler
28c433974a
olof patch - fix typo for password
...
SVN revision: 38034
2008-12-08 23:47:04 +00:00
Cedric BAIL
5358b1f84f
Add integer and pointer hash table helper.
...
SVN revision: 38026
2008-12-08 17:31:55 +00:00
Cedric BAIL
e51aa4745a
Valgrind complain when doing IC Destroy after XCloseDisplay, doing it before
...
sounds better to valgrind.
SVN revision: 38021
2008-12-08 14:29:44 +00:00
Cedric BAIL
2c668d6747
The for loop inside _edje_file_del is accessing Edje_Real_Part that could be
...
destroyed by _edje_cache_coll_unref. So moving the call to _edje_cache_coll_unref
after the last use of Edje_Real_Part should be better.
SVN revision: 38020
2008-12-08 14:23:26 +00:00
Cedric BAIL
94aaa28ef9
Fix warning. evas_hash_free never returned anything.
...
SVN revision: 38019
2008-12-08 12:49:36 +00:00
Cedric BAIL
c7b0e0a6b3
Fix include related to previous Eina Magic patch.
...
SVN revision: 38017
2008-12-08 10:51:51 +00:00
Cedric BAIL
199f900908
Application and library using Eina Magic API should be able to decide if they
...
want to check magic or not. This should not be forced by Eina config.
SVN revision: 38014
2008-12-08 10:18:05 +00:00
Iván Briano
d4d14f54ed
Very basic Input Method support. For now, it only uses X default to support things like composed characters with deadkeys kb layouts.
...
SVN revision: 38008
2008-12-08 00:28:37 +00:00
Gustavo Sverzut Barbieri
8ea28f64b7
hash: better handling of NULL, add magic checking.
...
* evas: if we automatically destroy hash, check for NULL before
handling it to eina api, which expect elements to be created with
eina_hash_new() and thus will fail on NULL.
* eina: add magic checking for eina_hash and eina_hash_iterator, this will
help spot when NULL is used.
* eina_hash_foreach: do not try to create the iterator if hash is NULL.
SVN revision: 37982
2008-12-07 13:28:29 +00:00
Vincent Torri
7dfff8ac98
fix software_16_ddraw engine compilation
...
SVN revision: 37966
2008-12-06 20:30:15 +00:00
Vincent Torri
193eb2b92a
detect fnmatch first in evil, then in iberty
...
SVN revision: 37963
2008-12-06 18:42:30 +00:00
Gustavo Sverzut Barbieri
b21c687f61
refactor eina_hash_del*, expose simpler functions and avoid GCC hack.
...
By using simpler functions for hash element deletion we can avoid the
hack to shut up GCC warking about hash_num not being used. As these
simple functions are more often needed than the catch-all, expose them
as well.
SVN revision: 37962
2008-12-06 06:58:56 +00:00
Gustavo Sverzut Barbieri
09924b54e5
Let valgrind help with EINA_MAGIC.
...
Keep EINA_MAGIC at the end of the structure (WHEN POSSIBLE! Watch out
flexible arrays like char str[] at the end!)
this way if parts use EINA_MAGIC and others do not, it will possible overflow and valgrind can help us.
WARNING: make uninstall before update! Then make clean and make install, check if everything is working with "make check".
SVN revision: 37961
2008-12-06 06:53:14 +00:00
Gustavo Sverzut Barbieri
5939d76d9c
Fix couple of issues with MAGIC handling.
...
eina_magic.h MUST include eina_config.h, otherwise it will not
consider EINA_MAGIC stuff. Worse than that, some files were including
that directly and were considering EINA_MAGIC attribute even if the
file that alloc'ed the memory were not!
Also add missing EINA_MAGIC_SET() to iterators and accessors.
SVN revision: 37960
2008-12-06 06:17:11 +00:00
Gustavo Sverzut Barbieri
08832b519b
grow array only when required, use step properly.
...
We need to grow when we reach total amount, not when current + step > total.
SVN revision: 37959
2008-12-06 06:13:55 +00:00
Gustavo Sverzut Barbieri
091741f861
Force dummy_symbol to be visible.
...
"make check" was failing with -fvisibility=hidden.
SVN revision: 37958
2008-12-06 06:12:30 +00:00
Gustavo Sverzut Barbieri
6203f4b6be
do not segv on NULL inlist.
...
this was exposed by "make check", counter had no tests and it was failing.
SVN revision: 37957
2008-12-06 06:11:39 +00:00
Gustavo Sverzut Barbieri
a00eaac6a6
Make it possible to create iterators outside Eina.
...
Many places in EFL we just create walk something, create a list with
walked data, return, then the user walks it again and then deletes
(which will walk again). For such cases it's way better to define
iterators or accessors.
I'm not moving any EFL code to it now, but if people are interested,
things like evas_render_method_list(), evas_font_available_list(),
evas_objects_at_xy_get(), evas_objects_in_rectangle_get(),
evas_object_smart_members_get() are good candidates. If the subject is
already using Eina list, then you can just use
eina_list_iterator_new() and return it, otherwise you can define your
own iterator, which is very easy.
SVN revision: 37956
2008-12-06 03:41:03 +00:00
Gustavo Sverzut Barbieri
2f8f874b20
Shut up a bunch of warnings and fix some real errors.
...
SVN revision: 37954
2008-12-06 03:08:17 +00:00
Gustavo Sverzut Barbieri
b023145eed
shut up gcc warning, with comment.
...
SVN revision: 37953
2008-12-06 03:02:30 +00:00
Carsten Haitzler
84f8c174bf
fix list accounting on sort! bad - how did this hide for so long?
...
SVN revision: 37951
2008-12-06 02:51:04 +00:00
Gustavo Sverzut Barbieri
f8868ffa96
Fix namespace: Eina_Foreach -> Eina_Hash_Foreach.
...
SVN revision: 37950
2008-12-06 02:21:17 +00:00
Gustavo Sverzut Barbieri
03fca99e56
Add safe Eina list walk function.
...
SVN revision: 37949
2008-12-06 02:13:01 +00:00
Gustavo Sverzut Barbieri
00fd3ccc3a
fix list iteration and removal inside edje box.
...
maybe we should add EINA_LIST_FOREACH_SAFE?
SVN revision: 37947
2008-12-06 01:44:01 +00:00
Vincent Torri
7b9b40334f
* src/lib/evil_main.c:
...
always export evil_init() and evil_shutdown()
SVN revision: 37945
2008-12-05 22:50:24 +00:00
Gustavo Sverzut Barbieri
288a77ea18
Hopefully fix some problems with Edje fnmatch and callbacks.
...
* Fix buffer overflow with EDJE_PROGRAM_CACHE (not tested since I don't use it).
* break_prog should always unset walking_callbacks and do after-tasks.
* Fix list walking! ouch!!!
SVN revision: 37944
2008-12-05 22:32:04 +00:00
Cedric BAIL
9c381ceb1f
Better error handling with eet identity.
...
SVN revision: 37937
2008-12-05 09:42:06 +00:00
Nicholas Hughart
0b63514546
Some tweaks/fixups for abstract sockets.
...
SVN revision: 37931
2008-12-05 04:48:12 +00:00
Chidambar Zinnoury
5c2c6049f1
Use includedir instead of prefix/include to install Eina headers.
...
SVN revision: 37925
2008-12-04 16:25:40 +00:00
Carsten Haitzler
a0f7a66e8d
in svn.
...
SVN revision: 37919
2008-12-03 22:21:40 +00:00
Vincent Torri
c8bb3dc658
add cast
...
SVN revision: 37915
2008-12-03 17:59:39 +00:00
Vincent Torri
1457850b4f
add cast
...
SVN revision: 37914
2008-12-03 17:58:26 +00:00