Cedric BAIL
d32ee023e3
efl: missing deprecated user.
...
SVN revision: 83049
2013-01-22 02:14:07 +00:00
Cedric BAIL
336e0c5e38
efl: deprecate eina_unicode_utf8_get_next, add eina_unicode_utf8_next_get.
...
SVN revision: 83048
2013-01-22 02:00:55 +00:00
Cedric BAIL
066543089d
efl: inline eina_unicode_utf8_get_next.
...
SVN revision: 83035
2013-01-21 09:37:14 +00:00
Cedric BAIL
5bd8b33906
efl: add eina_cow helper macro.
...
SVN revision: 83025
2013-01-21 03:11:29 +00:00
Cedric BAIL
41b70693b7
efl: fix leak in eina_cow.
...
Patch by Paulo Alcantara <pcacjr@zytor.com>.
SVN revision: 83014
2013-01-20 11:02:48 +00:00
Gustavo Sverzut Barbieri
5f8c760406
fix eina_binshare_add_length() using EINA_PURE.
...
Amazingly this was caught by a test (eina_binshare_small) that was
failing... Who said we didn't had test?! :-P
SVN revision: 82946
2013-01-17 20:10:15 +00:00
Cedric BAIL
c8ff22bf5b
efl: let's be nice on NULL.
...
SVN revision: 82930
2013-01-17 10:29:31 +00:00
Cedric BAIL
515282006f
efl: Add Eina_Cow_Data...
...
SVN revision: 82923
2013-01-17 06:51:35 +00:00
Cedric BAIL
c7aead6fdc
efl: fix cow after review by k-s.
...
NOTE: I didn't find a way to tell valgrind that some memory is read only.
SVN revision: 82742
2013-01-14 03:34:19 +00:00
Gustavo Sverzut Barbieri
e21bfbbbb2
eina: add missing ifdef around splice code.
...
SVN revision: 82735
2013-01-14 00:00:37 +00:00
Lucas De Marchi
4af2647d05
efl: remove check for libgen.h
...
SVN revision: 82582
2013-01-10 20:25:48 +00:00
Lucas De Marchi
23b741699f
efl: remove check for inttypes.h and stdint.h
...
SVN revision: 82580
2013-01-10 20:25:39 +00:00
Lucas De Marchi
f60bfe38d6
efl: Remove check for siginfo.h and siginfo_t
...
SVN revision: 82579
2013-01-10 20:25:35 +00:00
Lucas De Marchi
db395ef7eb
efl: Remove check for unistd.h
...
* unistd.h: is very useful, very old and very standard.
SVN revision: 82577
2013-01-10 20:25:26 +00:00
Lucas De Marchi
3dc661e710
efl: Remove check for strings.h
...
* strings.h: is very useful, very old and very standard. The only place
that checks for that is simple_xml_parser and I have no idea why
SVN revision: 82576
2013-01-10 20:25:21 +00:00
Gustavo Sverzut Barbieri
8ac159bfe2
efl/eina_prefix: whitespace cleanup as pointed by kuri at #edevelop
...
trailing whitespacesd and mixed tabs (old style) are gone.
SVN revision: 82470
2013-01-09 16:00:39 +00:00
Gustavo Sverzut Barbieri
37ab81a620
efl/eina_prefix: fix _try_proc() location.
...
_try_proc() is how to find a symbol based on /proc/self/maps, not
related to argv0.
change _try_proc() to ifdef inside... avoiding the need to ifdef at
definition and call site.
SVN revision: 82469
2013-01-09 15:57:28 +00:00
Gustavo Sverzut Barbieri
da5a568f68
efl/eina_prefix: simplify common prefix lookup.
...
SVN revision: 82467
2013-01-09 15:46:05 +00:00
Gustavo Sverzut Barbieri
ba461e9467
efl/eina_prefix: use eina_safety to be loud on NULL pointers.
...
SVN revision: 82466
2013-01-09 15:38:42 +00:00
Gustavo Sverzut Barbieri
2f49e495ee
efl/eina_prefix: cleanup and review logs.
...
there shouldn't be behavior changes at this point, just minor cleanups
and simplifications, particularly to the log.
SVN revision: 82464
2013-01-09 15:21:40 +00:00
Gustavo Sverzut Barbieri
65aae8f181
efl/eina: fix debian multilib detection without magic file.
...
The algorithm will now consider valid bin, data orlocale as well if
magic file was not provided.
SVN revision: 82429
2013-01-08 23:57:14 +00:00
Cedric BAIL
0e50f122e5
efl: Add eina copy on write infrastructure.
...
SVN revision: 82396
2013-01-08 09:17:56 +00:00
Jérémy Zurcher
1424ac7d4d
From: Jérémy Zurcher <jeremy@asynk.ch>
...
Subject: [E-devel] 2 steps eina_share_common_del speed up
builtin node is never unlinked even if empty, always is the last of the queue,
so that it can be used to get a pointer to head.
cost: never unlink or promote builtin node.
benefit: no need to hash and search rbtree to unlink an empty node,
only to remove an empty head.
store full hash in Eina_Share_Common_Head, so we only hash once
use 8 lower bits as node hash, use next 8 bits as bucket index.
cost: have to apply 0xFF mask on hash in rbtree callbacks.
benefit: no need to hash when removing an empty head.
SVN revision: 82161
2013-01-04 08:41:47 +00:00
Gustavo Sverzut Barbieri
0a2d116119
efl: eina_alloca.h to simplify alloca() usage.
...
having to replicate 18 lines per file just to access alloca() is
insane. Let's do that in Eina.h and avoid that crap :-/
SVN revision: 82082
2013-01-03 15:10:34 +00:00
Gustavo Sverzut Barbieri
43eb232d38
oops: remove printf
...
SVN revision: 81943
2012-12-31 23:42:25 +00:00
Gustavo Sverzut Barbieri
6ae6f925a4
efl: add eina_file_copy()
...
it's useful to copy file from one place to another and this will be
used in eio' s implementation.
NOTE: did not use mmap here as mmap faults may be cumbersome to handle
(Eina_File itself does that, but in a nasty way) and the
implementation would be severely different as there is no Eina_File
from FD, and there is no way to inject custom memory/fd into the
Eina_File's fault handling. The performance would not be that
different anyways and the splice() is already in there for systems
with good performance (read: Linux).
SVN revision: 81942
2012-12-31 23:17:18 +00:00
Gustavo Sverzut Barbieri
678727aae4
efl: missing api for xattr.
...
SVN revision: 81941
2012-12-31 21:05:58 +00:00
Gustavo Sverzut Barbieri
9161f83a3e
efl: make xattr stuff work.
...
* fix eina_xattr_value_ls() and eina_xattr_value_fd_ls() to not loop
infinitely.
* NULL terminate the retrieved xattr values, at least they'll be
easier to handle in our programs and less error prone.
SVN revision: 81940
2012-12-31 20:41:54 +00:00
Gustavo Sverzut Barbieri
09748cfb15
efl: beef thread documentation and error reporting.
...
eina_thread_join() is nasty and didn't report errors :-(
I'm using Eina_Error here, but it's global to the application and not
thread-local. Maybe we should make eina_error_get() and
eina_error_set() thread-local storage?
SVN revision: 81936
2012-12-31 17:26:33 +00:00
Gustavo Sverzut Barbieri
4668d04f04
efl: cleanup HAVE_THREADS and pthread usage outside of eina.
...
Eina now abstracts threads, so use that.
the touched files had the EFL_HAVE_THREADS as it's mandatory now.
SVN revision: 81935
2012-12-31 16:14:40 +00:00
Cedric BAIL
209347f148
efl: rename eina_inarray_add to eina_inarray_grow.
...
SVN revision: 81918
2012-12-31 01:27:58 +00:00
Cedric BAIL
375be85b27
efl: add a way to allocate without memcpy data in an Eina_Inarray.
...
SVN revision: 81913
2012-12-31 00:05:02 +00:00
Gustavo Sverzut Barbieri
2608f68571
efl/docs: clean-up and make it more uniform.
...
now unified docs are bit more uniform in their start pages, overall
improved but much to do :-(
SVN revision: 81851
2012-12-28 23:26:05 +00:00
Gustavo Sverzut Barbieri
e86d9e0dd9
efl/eina: fix doc for content access
...
SVN revision: 81831
2012-12-28 19:08:42 +00:00
Cedric BAIL
0d86917bbe
efl: when you remove option at least make the default sane or don't do it.
...
SVN revision: 81731
2012-12-27 06:46:29 +00:00
Mike Blumenkrantz
f5a98df8de
eina_magic_fail now only ERRs on NULL instead of CRI, making debugging much easier
...
SVN revision: 81666
2012-12-24 09:16:56 +00:00
Boris Faure
d7b55afca2
eina: fix code indentation
...
SVN revision: 81660
2012-12-23 17:30:56 +00:00
Jonas M. Gastal
a6b491fc01
efl: Created Eina group and added existing Eina groups to it.
...
SVN revision: 81290
2012-12-18 18:38:25 +00:00
Jonas M. Gastal
d41d76ca38
efl: Modified section names as doxygen reuses titles for same named sections in different pages.
...
SVN revision: 81279
2012-12-18 16:18:28 +00:00
Jonas M. Gastal
65a7188905
efl: Unifying authors page.
...
SVN revision: 81277
2012-12-18 16:18:19 +00:00
Jonas M. Gastal
6ecaa33f22
efl: Adding a unified main page that links to the "mainpage" of libs.
...
SVN revision: 81273
2012-12-18 16:12:56 +00:00
Cedric BAIL
498b46802c
eina: fix Eina_Barrier when pthread doesn't provide one.
...
Patch by Ulisses Furquim <ulisses@profusion.mobi>
SVN revision: 80907
2012-12-14 02:18:02 +00:00
Cedric BAIL
88ba56d9d5
efl: don't leak fd on exec.
...
SVN revision: 80434
2012-12-07 11:01:41 +00:00
Gustavo Sverzut Barbieri
81bd007e5b
efl: share HAVE_ATFILE_SOURCE between eina_file, ecore_file...
...
SVN revision: 80391
2012-12-06 21:15:30 +00:00
Jérémy Zurcher
9aa23128b6
[eina] path sanitizing now takes care of '/./' and
...
breaks loop on '/..$'
Patch by: Jérémy Zurcher <jeremy@asynk.ch>
SVN revision: 79449
2012-11-19 13:13:31 +00:00
Gustavo Lima Chaves
a4b2a48dc0
[eina] Better pretty printing of eina_value timeval buddies.
...
SVN revision: 79154
2012-11-12 12:26:07 +00:00
Mike Blumenkrantz
43eb9749ab
@since for eina_list_last_data_get
...
SVN revision: 79149
2012-11-12 10:53:10 +00:00
Mike Blumenkrantz
7ba993749d
add eina_list_last_data_get() macro to simplify calling eina_list_data_get(eina_list_last())
...
SVN revision: 79142
2012-11-12 09:58:48 +00:00
Vincent Torri
650d3d723c
Eina: Fix build on Solaris 10
...
Patch by Robert David
SVN revision: 79085
2012-11-10 08:35:11 +00:00
Vincent Torri
60bdd4c22e
unused variable
...
SVN revision: 79067
2012-11-09 21:35:03 +00:00
Vincent Torri
db5c257d1a
Eina: Compilation on cygwin
...
Patch by Yaakov Selkowitz, thanks :)
SVN revision: 78953
2012-11-07 00:48:10 +00:00
Vincent Torri
58a9a0ad57
merge: don't use recursive subdirs. Compilation should be faster.
...
Please check.
note1: Only lib and bin for now, but should be extended to other stuff
note2: distcheck does not work because eo_suite is failing.
SVN revision: 78758
2012-11-01 12:56:52 +00:00
Vincent Torri
0b211e0c20
eina: formatting
...
SVN revision: 78756
2012-11-01 12:36:20 +00:00
Cedric BAIL
4cf317b877
eina: fix typo.
...
SVN revision: 78586
2012-10-28 13:02:14 +00:00
Cedric BAIL
5fd68084c9
eina: try to fix my own mess.
...
SVN revision: 78585
2012-10-28 12:10:36 +00:00
Vincent Torri
124e0d4afd
merge: add a holdall variable
...
SVN revision: 78503
2012-10-26 06:57:11 +00:00
Vincent Torri
aac3e95ccf
merge: -Wl,--enable-auto-import is useless with recent versions of gcc on Windows
...
SVN revision: 78495
2012-10-25 22:01:28 +00:00
Vincent Torri
ea213c2ea4
fix++
...
SVN revision: 78473
2012-10-25 21:25:59 +00:00
Vincent Torri
e082ab0e74
Eina: add affinity to win32 code.
...
It's not working yet:
* eina_thread.c:152:33: error: 'index' undeclared (first use in this function)
* eina_thread.c:295:4: warning: passing argument 3 of '_eina_thread_win32_create' from incompatible pointer type [enabled by default]
also:
* line 142, is it normal that we call eina_list_append() with tw being NULL ?
* is what I did in the close_thread label correct ?
SVN revision: 78416
2012-10-25 05:21:58 +00:00
Vincent Torri
77d90bd45e
merge: pass directly to the preprocessor the Windows macro instead of using autotools
...
SVN revision: 78350
2012-10-23 05:43:57 +00:00
Nicholas Hughart
3b8464fa83
Backport 78258/78259 to fix Eina amalgamation build.
...
SVN revision: 78260
2012-10-19 16:19:33 +00:00
Sebastian Dransfeld
35d28817db
eina: Always do opendir first
...
SVN revision: 78238
2012-10-19 09:03:14 +00:00
Carsten Haitzler
786544b73d
fix dirp leak
...
SVN revision: 78235
2012-10-19 08:18:59 +00:00
Cedric BAIL
97dc017571
efl: change a little bit API.
...
SVN revision: 78229
2012-10-19 07:13:08 +00:00
Cedric BAIL
903bbfba82
efl: add Eina_Thread API.
...
SVN revision: 78225
2012-10-19 05:47:33 +00:00
Cedric BAIL
4b14ea628c
eina: handle properly case where str != NULL and slen == 0
...
SVN revision: 78222
2012-10-19 04:38:08 +00:00
Cedric BAIL
7a132e9c08
efl: backport r78215.
...
SVN revision: 78217
2012-10-19 01:51:07 +00:00
Cedric BAIL
df8fb6d989
efl: backport r78213.
...
SVN revision: 78216
2012-10-19 01:49:06 +00:00
Cedric BAIL
c93ae85eb4
efl: backport r78209.
...
SVN revision: 78211
2012-10-19 01:31:22 +00:00
Sebastian Dransfeld
b6add7a518
eina: Check if we can open dir first
...
SVN revision: 78172
2012-10-18 09:12:14 +00:00
Carsten Haitzler
afdd3f4a39
add tmpstr to efl eina tree... this is for the future so not going
...
into eina tree.
SVN revision: 78112
2012-10-17 10:24:03 +00:00
Carsten Haitzler
42a59387a6
add eina barrier to efl tree.
...
SVN revision: 78100
2012-10-17 03:55:35 +00:00
Gustavo Sverzut Barbieri
adfcc2112e
efl: cleanup unused conditional and always-enabled features.
...
SVN revision: 77817
2012-10-10 21:32:45 +00:00
Gustavo Sverzut Barbieri
3cf32cca3f
efl: 'fix' support for exotic library.
...
it's still not merged into EFL single tree, but once it is we should
use "HAVE_EXOTIC" define to work with it.
Before we had: EINA_HAVE_EXOTIC (not used), HAVE_EXOTIC_H (used by
eina_module.c). Since the other libs are all defined as HAVE_LIBNAME,
we're using HAVE_EXOTIC everywhere now.
SVN revision: 77816
2012-10-10 21:24:22 +00:00
Gustavo Sverzut Barbieri
3acb5dde8b
efl: remove EINA_HAVE_ON_OFF_THREADS support.
...
it's still in the code, but not configurable anymore. We may remove it
later if not really needed.
SVN revision: 77802
2012-10-10 20:30:39 +00:00
Gustavo Sverzut Barbieri
a6acf1b2d0
efl: simplify threads step 1 - make it mandatory.
...
remove the eina_inline_lock_void.x fallback as it's not used anymore.
still keep the EINA_HAVE_THREADS in the source code.
SVN revision: 77796
2012-10-10 20:24:45 +00:00
Gustavo Sverzut Barbieri
4d35e4ca03
efl: simplify mempools, nuke some and make remaining statically built.
...
Now we always build the following memory pools statically:
- pass_through: calls malloc/free directly, useful to debug.
- chained_pool: default for ages.
- one_big: used by some embedded systems (should we remove?)
Removed:
- ememoa_fixed and ememoa_unknown: depends on a separate lib, not supported?
- buddy: nobody uses it?
NOTE: we do not need the src/modules/eina/mp/*/Makefile.am anymore
since they are statically built. But I'll keep these and the
references in src/modules/eina/mp/Makefile.am
SVN revision: 77792
2012-10-10 19:57:53 +00:00
Vincent Torri
7fe3d35994
merge: __UNUSED__ --> EINA_UNUSED and some fixes in eo.
...
SVN revision: 77542
2012-10-05 20:09:47 +00:00
Vincent Torri
1c96844922
Eina: backport rev. 77445
...
SVN revision: 77446
2012-10-04 17:16:18 +00:00
Cedric BAIL
1000f350e3
efl: backport Igor's eina patch.
...
SVN revision: 77415
2012-10-04 09:31:46 +00:00
Carsten Haitzler
36ef0cdc92
and esnure we have all the right include paths.
...
SVN revision: 77121
2012-09-27 04:08:48 +00:00
Carsten Haitzler
0a5ba96837
move eina headers into lib/eina like the rest of efl - at least be
...
consistent with the majority.
SVN revision: 77119
2012-09-27 04:02:37 +00:00
Carsten Haitzler
fbfb3ec61a
port mmap safety fix to efl tree.
...
SVN revision: 77115
2012-09-27 03:46:03 +00:00
Vincent Torri
ab144cb474
merge: fix compilation when no EFL is installed...
...
tested on linux and windows.
And disable valgrind as there's a link problem in eet binary,
i'll check that later
SVN revision: 76938
2012-09-21 08:15:58 +00:00
Vincent Torri
785f2a6b3a
merge : add eina
...
currently, examples, tests and benchmark are not set. That's the next things i'll do
SVN revision: 76710
2012-09-16 10:57:48 +00:00