Commit Graph

1341 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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