profile/ivi/eina.git
14 years agomissing file, sorry.
barbieri [Fri, 4 Sep 2009 00:56:16 +0000 (00:56 +0000)]
missing file, sorry.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42215 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_safety_checks_init()
barbieri [Fri, 4 Sep 2009 00:53:19 +0000 (00:53 +0000)]
eina_safety_checks_init()

All these individual init functions are getting messy, some modules
lack them and it's easy to get inconsistent. Safety check needs error
and log, but these need safety checks as well, some modules (lalloc,
rbtree and others) use safety checks but provide no _init().

I want to know if we really gain something to init individual
modules. It should not be that expensive as init should not allocate
heavy resources and the recommendation is to call eina_init() so most
users will do that anyway.

If people agree I'll unmark all *_init() as EAPI and make them private
to eina lib.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42214 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_safety_checks now uses eina_log.
barbieri [Thu, 3 Sep 2009 23:36:27 +0000 (23:36 +0000)]
eina_safety_checks now uses eina_log.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42213 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_log: CONVENTION BREAK!!!! automatically adds \n
barbieri [Thu, 3 Sep 2009 01:39:45 +0000 (01:39 +0000)]
eina_log: CONVENTION BREAK!!!! automatically adds \n

Automatically add \n to messages. Since we use that prefix, there is
no use to allow messages without \n, it would look a mess.

Some logging systems may not require the trailing newline, for example
logging to xml or syslog, for those you don't need to ignore this char
if present.

Yes, this breaks convention, but better now than latter. And the
results are not so bad.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42200 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_log: thread safe logging!
barbieri [Thu, 3 Sep 2009 01:31:26 +0000 (01:31 +0000)]
eina_log: thread safe logging!

eina_log_threads_enable() and then get thread safe logging with
non-main threads being printed with special notation to easily spot
those.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42199 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_log: fix error handling and handle deleted domains.
barbieri [Thu, 3 Sep 2009 00:17:27 +0000 (00:17 +0000)]
eina_log: fix error handling and handle deleted domains.

EINA_SAFETY_CHECKS will call eina_log, so calling these from inside
eina_log_print() may lead to recursion, that is really bad (although
it seems it would never lead to infinite recursion).

handle d->deleted, also showing error.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42198 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_log: fix stderr, improve log output.
barbieri [Thu, 3 Sep 2009 00:07:25 +0000 (00:07 +0000)]
eina_log: fix stderr, improve log output.

 * stderr logger was doing prefix properly but user message to stdout, fixed.
 * log is improved:
   * grep-able, it shows the 3 letter level name as prefix, unknown levels
     will have their number printed.
   * colors just on prefix, less polluted output still easy to spot.
   * function names are highlighted.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42197 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_log improvements: docs, micro optimizations and stderr logging by default.
barbieri [Wed, 2 Sep 2009 23:28:00 +0000 (23:28 +0000)]
eina_log improvements: docs, micro optimizations and stderr logging by default.

 * more docs.
 * do not getenv("EINA_LOG_ABORT") everytime, just at init.
 * EINA_UNLIKELY() in some critical paths (not that big impact anyway)
 * eina_log_print_cb_stderr() and use it by default.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42196 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoless malloc and memory fragmentation.
barbieri [Wed, 2 Sep 2009 23:11:22 +0000 (23:11 +0000)]
less malloc and memory fragmentation.

not that important, but an easy improvement does not hurt.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42195 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agologgify eina_module, adding couple of debug info.
barbieri [Wed, 2 Sep 2009 23:06:55 +0000 (23:06 +0000)]
loggify eina_module, adding couple of debug info.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42194 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agocoding style/indent.
barbieri [Wed, 2 Sep 2009 22:39:41 +0000 (22:39 +0000)]
coding style/indent.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42193 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina_magic: Test suite now work when magic debug is disabled.
cedric [Tue, 1 Sep 2009 12:17:13 +0000 (12:17 +0000)]
* eina_magic: Test suite now work when magic debug is disabled.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42150 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoRemove legacy error code definition from eina log.
dieb [Mon, 31 Aug 2009 14:40:48 +0000 (14:40 +0000)]
Remove legacy error code definition from eina log.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42126 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina: Add more FP type (f8p24 and f32p32).
cedric [Mon, 31 Aug 2009 13:52:17 +0000 (13:52 +0000)]
* eina: Add more FP type (f8p24 and f32p32).

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42124 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agotypo
caro [Sat, 29 Aug 2009 20:53:12 +0000 (20:53 +0000)]
typo

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42091 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agobetter fix : if HW_AVAILCPU is defined, we use it, otherwise we use HW_NCPU
caro [Sat, 29 Aug 2009 19:59:26 +0000 (19:59 +0000)]
better fix : if HW_AVAILCPU is defined, we use it, otherwise we use HW_NCPU

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42090 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agotypo
caro [Sat, 29 Aug 2009 19:29:30 +0000 (19:29 +0000)]
typo

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42089 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix for the BSD systems
caro [Sat, 29 Aug 2009 16:39:59 +0000 (16:39 +0000)]
fix for the BSD systems

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42088 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * add eina_config.h in all source files. Fix linking with Visual Studio
caro [Fri, 28 Aug 2009 12:03:34 +0000 (12:03 +0000)]
 * add eina_config.h in all source files. Fix linking with Visual Studio
 * move eina_private.h and eina_safety_checks.h just after eina_config.h

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42077 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix copying to 2.1 again and keep static linking clause
raster [Fri, 28 Aug 2009 11:30:35 +0000 (11:30 +0000)]
fix copying to 2.1 again and keep static linking clause

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42075 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agostatic linking exception
raster [Fri, 28 Aug 2009 11:17:59 +0000 (11:17 +0000)]
static linking exception

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42073 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agorename the dll name created by VS
caro [Fri, 28 Aug 2009 09:51:39 +0000 (09:51 +0000)]
rename the dll name created by VS

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42068 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agorename project name and filename
caro [Fri, 28 Aug 2009 07:34:58 +0000 (07:34 +0000)]
rename project name and filename

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42064 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * declare variables at the beginning of the block
caro [Fri, 28 Aug 2009 07:21:35 +0000 (07:21 +0000)]
 * declare variables at the beginning of the block
 * strtol returns a long int

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42063 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix warning with vc++
caro [Fri, 28 Aug 2009 07:15:49 +0000 (07:15 +0000)]
fix warning with vc++

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42062 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoupdate Visual Studio project even more
caro [Fri, 28 Aug 2009 06:20:15 +0000 (06:20 +0000)]
update Visual Studio project even more

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42059 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoupdate Visual Studio project
caro [Fri, 28 Aug 2009 06:15:35 +0000 (06:15 +0000)]
update Visual Studio project

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42058 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFix compilation issue reported by Vincent on Windows (stdint and c++ compiler), setup...
dieb [Thu, 27 Aug 2009 21:32:42 +0000 (21:32 +0000)]
Fix compilation issue reported by Vincent on Windows (stdint and c++ compiler), setup a negative value for flagging the unknown level.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42049 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd eina_log module into the main module and global header.
dieb [Tue, 25 Aug 2009 21:26:27 +0000 (21:26 +0000)]
Add eina_log module into the main module and global header.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41985 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agodo not check for data, eina_iterator_next/eina_accessor_data_get() does that.
barbieri [Tue, 25 Aug 2009 21:05:00 +0000 (21:05 +0000)]
do not check for data, eina_iterator_next/eina_accessor_data_get() does that.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41984 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoInitial import of the new eina logging API.
dieb [Mon, 24 Aug 2009 21:43:48 +0000 (21:43 +0000)]
Initial import of the new eina logging API.

* eina_error might be kept for error messages and codes, but it's logging API
  will be deprecated. For now, it's been kept for not breaking others code and
  for a smoother transition.
* Added test for new logging API, also demonstrates usage.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41960 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix warning
caro [Sun, 23 Aug 2009 20:37:17 +0000 (20:37 +0000)]
fix warning

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41943 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * Put definition of alloca before any standard header
caro [Sun, 23 Aug 2009 09:18:14 +0000 (09:18 +0000)]
 * Put definition of alloca before any standard header
   files according to the doc
 * define _GNU_SOURCE before the inclusion of alloca
   as features.h inclued by alloca.h, defines some
   macros according to _GNU_SOURCE.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41940 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agodon't do arithmetic on void *
caro [Thu, 20 Aug 2009 11:56:57 +0000 (11:56 +0000)]
don't do arithmetic on void *

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41885 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agorewrite a bit that m4 macro
caro [Thu, 20 Aug 2009 08:31:26 +0000 (08:31 +0000)]
rewrite a bit that m4 macro

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41881 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago-pthread should be passed to eina_chained_mempool_la_LDFLAGS
caro [Wed, 19 Aug 2009 12:15:10 +0000 (12:15 +0000)]
-pthread should be passed to eina_chained_mempool_la_LDFLAGS

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41876 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix a bit the documentation
caro [Wed, 19 Aug 2009 07:54:13 +0000 (07:54 +0000)]
fix a bit the documentation

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41870 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoclean a bit the hamster
caro [Wed, 19 Aug 2009 07:36:39 +0000 (07:36 +0000)]
clean a bit the hamster

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41869 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * remove uneeded semicolons
caro [Wed, 19 Aug 2009 07:09:24 +0000 (07:09 +0000)]
 * remove uneeded semicolons
 * fix and add doxygen doc

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41868 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agodon't suppose that gcc is the only compiler that can be used.
caro [Tue, 18 Aug 2009 20:04:19 +0000 (20:04 +0000)]
don't suppose that gcc is the only compiler that can be used.
Check if -Wall and -fno-strict-aliasing are supported by the compiler

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41863 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina_rectangle: Add a local cache to rectangle creation.
cedric [Tue, 18 Aug 2009 13:35:33 +0000 (13:35 +0000)]
* eina_rectangle: Add a local cache to rectangle creation.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41856 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoimprove docs and simplify macro, by kubo.
barbieri [Sun, 16 Aug 2009 00:47:23 +0000 (00:47 +0000)]
improve docs and simplify macro, by kubo.

Kubo just found that docs could be improved and macro could be
simplified during his learning of EFL. Big bonus he did the
improvements =)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41799 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina: Fix typo.
cedric [Fri, 14 Aug 2009 14:22:25 +0000 (14:22 +0000)]
* eina: Fix typo.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41762 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoamazing time hamsters!
raster [Thu, 13 Aug 2009 01:26:08 +0000 (01:26 +0000)]
amazing time hamsters!

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41728 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina hamster++
raster [Thu, 13 Aug 2009 00:47:55 +0000 (00:47 +0000)]
eina hamster++

<dieb_> weird, undefined refernce to eina_cpu_count
<raster> you have no cpus!
<dieb_> dammit!
<Sachiel> try eina_hamster_count
<dieb_> lo
<raster> oh god
<raster> now u did it
<raster> i have to add that
<dieb_> heheheh

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41727 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina_stringshare: We should use "unsigned char", because suncc think that char...
cedric [Wed, 12 Aug 2009 09:02:09 +0000 (09:02 +0000)]
* eina_stringshare: We should use "unsigned char", because suncc think that char is signed.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41697 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina: Fix SunPro compiler.
cedric [Tue, 11 Aug 2009 14:14:42 +0000 (14:14 +0000)]
* eina: Fix SunPro compiler.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41690 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina: eina_cpu_count should be multiplatform.
cedric [Tue, 11 Aug 2009 14:11:36 +0000 (14:11 +0000)]
* eina: eina_cpu_count should be multiplatform.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41689 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFixed check at the start of eina_list_accessor_get_at.
antognolli [Fri, 7 Aug 2009 20:28:05 +0000 (20:28 +0000)]
Fixed check at the start of eina_list_accessor_get_at.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41634 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agobe more clear in docs.
barbieri [Fri, 7 Aug 2009 01:35:16 +0000 (01:35 +0000)]
be more clear in docs.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41629 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoBugfix eina_list_search_sorted_near_list() add sorted_insert.
barbieri [Thu, 6 Aug 2009 22:31:45 +0000 (22:31 +0000)]
Bugfix eina_list_search_sorted_near_list() add sorted_insert.

eina_list_search_sorted_near_list() was broken and barfed at my face
during development of eina_list_sorted_insert(), so I rewrote it
following more traditional approach, also adding special cases for
head/tail remembering that random access in lists is not as fast as
array. I also simplified that code.

eina_list_sorted_insert() should be fast, O(log2 n) insert, with
special cases to insert already sorted arrays forwards or backwards,
however I believe that it's better to simply append/prepend in those
cases (if known).

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41625 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoallow limit tests to run.
barbieri [Thu, 6 Aug 2009 22:22:56 +0000 (22:22 +0000)]
allow limit tests to run.

eina_suite TEST1 TEST2 ... is your friend ;-)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41624 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAPI BREAK: eina_list_search_sorted_near_list() gets one more parameter.
barbieri [Thu, 6 Aug 2009 19:01:47 +0000 (19:01 +0000)]
API BREAK: eina_list_search_sorted_near_list() gets one more parameter.

This should not impact anybody, at least in SVN I got no hits for this
function.

The new parameter contains the result of the last call to func(), so
we can know if the node is smaller, bigger or exactly the requested
value and don't need to call func() on node to know for sure.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41623 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agosmarter eina_list_merge(), more tests.
barbieri [Thu, 6 Aug 2009 18:35:53 +0000 (18:35 +0000)]
smarter eina_list_merge(), more tests.

eina_list_merge() now fixes the smallest list segment, not always the
right. Before if we joined a list 1 to 1000 segments we'd fix all the
1000 instead of the single at left.

Tests to make sure both code paths are being executed.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41622 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agooops, consider fixed_bitmap if it was built statically.
barbieri [Thu, 6 Aug 2009 18:08:14 +0000 (18:08 +0000)]
oops, consider fixed_bitmap if it was built statically.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41621 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina list docs.
barbieri [Thu, 6 Aug 2009 15:50:19 +0000 (15:50 +0000)]
eina list docs.

 * document undocumented functions.
 * note order of magnitude of each function, try to avoid users
   falling into traps.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41619 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina_rectangle: Forgot to initialise one attribute.
cedric [Wed, 5 Aug 2009 14:46:21 +0000 (14:46 +0000)]
* eina_rectangle: Forgot to initialise one attribute.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41606 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina: Add eina_cpu_count.
cedric [Thu, 30 Jul 2009 16:45:15 +0000 (16:45 +0000)]
* eina: Add eina_cpu_count.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41543 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoback to pre ver's
raster [Wed, 29 Jul 2009 08:19:34 +0000 (08:19 +0000)]
back to pre ver's

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41535 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoSNAPSHOT: svn-03
raster [Wed, 29 Jul 2009 08:03:25 +0000 (08:03 +0000)]
SNAPSHOT: svn-03

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41532 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * eina: Handle NULL in eina_list_search_sorted_near_list.
cedric [Tue, 21 Jul 2009 15:21:46 +0000 (15:21 +0000)]
* eina: Handle NULL in eina_list_search_sorted_near_list.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41467 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agoEina rectangle missing list init.
barbieri [Tue, 21 Jul 2009 01:55:31 +0000 (01:55 +0000)]
Eina rectangle missing list init.

Rectangle needs the list module for the pool_new() function. Patch
also adds a check for initialization error on the unit test.

By: Andre Dieb

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41460 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agoupdate rectangle test to new API.
barbieri [Sat, 18 Jul 2009 15:58:44 +0000 (15:58 +0000)]
update rectangle test to new API.

Guys, when you change API, please change it everywhere and then run tests!

By: Andre Dieb

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41421 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * eina: Rename eina_module_list_delete to eina_module_list_flush.
cedric [Fri, 17 Jul 2009 11:13:38 +0000 (11:13 +0000)]
* eina: Rename eina_module_list_delete to eina_module_list_flush.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41385 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * eina: Fix declaration according to Vincent Torri review.
cedric [Thu, 16 Jul 2009 12:09:29 +0000 (12:09 +0000)]
    * eina: Fix declaration according to Vincent Torri review.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41359 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agocast. c++ doesn't like the implied void * -> struct * cast.
raster [Thu, 16 Jul 2009 03:04:56 +0000 (03:04 +0000)]
cast. c++ doesn't like the implied void * -> struct * cast.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41358 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * eina: Expose an helper for memory pool as Eina_Trash data type.
cedric [Wed, 15 Jul 2009 13:13:52 +0000 (13:13 +0000)]
* eina: Expose an helper for memory pool as Eina_Trash data type.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41350 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agoinlist: docs, docs docs
barbieri [Tue, 14 Jul 2009 15:32:21 +0000 (15:32 +0000)]
inlist: docs, docs docs

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41328 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agoadd missing stddef.h, required by offsetof()
barbieri [Tue, 14 Jul 2009 15:32:01 +0000 (15:32 +0000)]
add missing stddef.h, required by offsetof()

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41327 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agoone more safety check: do not remove element if it's not in any list.
barbieri [Tue, 14 Jul 2009 14:00:59 +0000 (14:00 +0000)]
one more safety check: do not remove element if it's not in any list.

This is the best we can do, but what should be done is to check if
element is really from that list.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41326 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * eina: Remove recursion from eina_rectangle.
cedric [Tue, 7 Jul 2009 11:24:44 +0000 (11:24 +0000)]
* eina: Remove recursion from eina_rectangle.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41263 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * eina: Partial fix for ticket #286.
cedric [Fri, 3 Jul 2009 12:39:32 +0000 (12:39 +0000)]
    * eina: Partial fix for ticket #286.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41241 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agoOn windows use evil's dladdr implementation so you dont have to set
lmunch [Thu, 2 Jul 2009 07:45:01 +0000 (07:45 +0000)]
On windows use evil's dladdr implementation so you dont have to set
EINA_MODULES_MEMPOOL_DIR and EVAS_MODULES_DIR in the windows environment.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41230 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * remove the mention of the static link check in configure ouput
caro [Tue, 30 Jun 2009 16:18:41 +0000 (16:18 +0000)]
 * remove the mention of the static link check in configure ouput
 * add a (ecologic) warning at the end of configure if a module is
   statically linked to eina

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41226 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * more doc
caro [Sun, 28 Jun 2009 06:29:11 +0000 (06:29 +0000)]
 * more doc
 * check the returned value of eina_error_init() in eina_module_init()

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41218 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agoupdate m4 macros (mainly formatting)
caro [Sat, 27 Jun 2009 06:42:14 +0000 (06:42 +0000)]
update m4 macros (mainly formatting)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41212 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * fix typo
caro [Fri, 26 Jun 2009 07:52:56 +0000 (07:52 +0000)]
 * fix typo
 * move option of e17 benchmark to its correct place

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41204 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * use a m4 macro for checking benchmark libraries and
caro [Fri, 26 Jun 2009 07:20:15 +0000 (07:20 +0000)]
 * use a m4 macro for checking benchmark libraries and
   check the libraries only if benchmarking is enabled
 * add extra dist files to be able to configure eina
   with autogen.sh and also add .spec files

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41203 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * Remove the use of HAVE___ATTRIBUTE__ (which is defined at
caro [Thu, 25 Jun 2009 19:58:05 +0000 (19:58 +0000)]
 * Remove the use of HAVE___ATTRIBUTE__ (which is defined at
   configure time) in an exported header. Use only macros
   defined by the compilers, which is sufficient and simpler.
 * Add missing EINA_DEPRECATED in some cases.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41199 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agoadd minimum supported version for Windows CE and XP
caro [Thu, 25 Jun 2009 19:55:06 +0000 (19:55 +0000)]
add minimum supported version for Windows CE and XP

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41198 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * eina: Fix rectangle merge.
cedric [Thu, 25 Jun 2009 10:58:16 +0000 (10:58 +0000)]
* eina: Fix rectangle merge.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41193 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agoAPI BREAK: fix Eina API so that it is more consistent with the other EFL
caro [Wed, 24 Jun 2009 16:56:49 +0000 (16:56 +0000)]
API BREAK: fix Eina API so that it is more consistent with the other EFL

what is modified:

eina_counter_add -> eina_counter_new
eina_counter_delete -> eina_counter_free
eina_lalloc_delete -> eina_lalloc_free
eina_mempool_new -> eina_mempool_add
eina_mempool_delete -> eina_mempool_del
eina_mempool_alloc -> eina_mempool_malloc
eina_tiler_del -> eina_tiler_free

It remains some questions: have the following API a good name:

eina_module_list_delete
eina_list_free
eina_rbtree_delete

(see ticket #286)

If you find any problem, please report in that thread

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41187 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * eina: Faster Eina_Rectangle_Pool (should be used by OpenGL engine).
cedric [Wed, 24 Jun 2009 13:38:25 +0000 (13:38 +0000)]
* eina: Faster Eina_Rectangle_Pool (should be used by OpenGL engine).

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41185 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * eina: Make eina benchmark more configurable.
cedric [Wed, 24 Jun 2009 12:48:33 +0000 (12:48 +0000)]
* eina: Make eina benchmark more configurable.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41183 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago Evas_Rectangle are gone. We now use Eina_Rectangle and memory pool is
cedric [Tue, 23 Jun 2009 13:57:27 +0000 (13:57 +0000)]
Evas_Rectangle are gone. We now use Eina_Rectangle and memory pool is
shared accross the application.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41170 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agofix a bit the documentation, but there are still
caro [Mon, 22 Jun 2009 20:03:58 +0000 (20:03 +0000)]
fix a bit the documentation, but there are still
a lot of doc to write...

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41164 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agoremove documentation on how to build eina with static mempools
caro [Mon, 22 Jun 2009 17:38:56 +0000 (17:38 +0000)]
remove documentation on how to build eina with static mempools

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41161 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * eina_rectangle: Fix typo.
cedric [Mon, 22 Jun 2009 13:46:05 +0000 (13:46 +0000)]
* eina_rectangle: Fix typo.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41158 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * eina: Add a benchmark for eina_rectangle_pool.
cedric [Mon, 22 Jun 2009 13:24:13 +0000 (13:24 +0000)]
* eina: Add a benchmark for eina_rectangle_pool.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41157 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * eina: Evas_Data are gone so unactivate benchmark.
cedric [Mon, 22 Jun 2009 13:20:29 +0000 (13:20 +0000)]
* eina: Evas_Data are gone so unactivate benchmark.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41156 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * eina: Fix API naming for eina_rectangle and add a global allocator.
cedric [Mon, 22 Jun 2009 13:16:51 +0000 (13:16 +0000)]
* eina: Fix API naming for eina_rectangle and add a global allocator.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41155 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agoand rename static linkage as well.
barbieri [Sat, 20 Jun 2009 16:31:15 +0000 (16:31 +0000)]
and rename static linkage as well.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41131 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agoi forgot to rename file...
caro [Sat, 20 Jun 2009 10:17:37 +0000 (10:17 +0000)]
i forgot to rename file...

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41126 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agoformatting
caro [Sat, 20 Jun 2009 06:47:03 +0000 (06:47 +0000)]
formatting

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41120 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * All memory pools can be enabled / disabled
caro [Sat, 20 Jun 2009 06:42:32 +0000 (06:42 +0000)]
 * All memory pools can be enabled / disabled
 * Allow to pass 'static' to configure memory pools
 * Add fixed_bitmap in the possible statically linked memory pools

For example:

./configure --enable-chained-pool=static --disable-fixed-bitmap

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41119 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * eina: Add an eina_hash_stringshare_new.
cedric [Fri, 19 Jun 2009 14:44:23 +0000 (14:44 +0000)]
* eina: Add an eina_hash_stringshare_new.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41112 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * eina: Improve eina hash manipulation for int.
cedric [Thu, 18 Jun 2009 12:08:52 +0000 (12:08 +0000)]
* eina: Improve eina hash manipulation for int.

- Faster int key comparison.
- Key Length callback could now be NULL and 0 will be assumed.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41100 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agoUse correct module extension on cygwin
booleanlabel at gmail dot com. Thanks [Thu, 18 Jun 2009 04:06:34 +0000 (04:06 +0000)]
Use correct module extension on cygwin

Patch from: booleanlabel at gmail dot com. Thanks.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41094 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years ago * AUTHORS: Update to reflect new contribution from Albin.
cedric [Wed, 17 Jun 2009 12:41:48 +0000 (12:41 +0000)]
* AUTHORS: Update to reflect new contribution from Albin.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41076 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

15 years agobetter error setting and reporting in module loading.
barbieri [Tue, 16 Jun 2009 14:59:09 +0000 (14:59 +0000)]
better error setting and reporting in module loading.

 * just set error codes if we know the error.
 * debug dlopen() error using EINA_ERROR_PDBG()

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41057 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33