framework/uifw/eina.git
14 years agoeina_str speedups.
barbieri [Sat, 27 Feb 2010 03:42:27 +0000 (03:42 +0000)]
eina_str speedups.

 * eina_str_split() now does the minimum number of passes and
   allocations. The first pass figures out the string size (strlen())
   and number of delimiters, so we can allocate the exact number of
   elements in array. The second repeats the loop copying elements to
   string and also setting them to the result array.

 * eina_str_split_full() is a variation of eina_str_split() that
   returns also the number of elements in array, in the case you need
   to pre-allocate another array to copy.

 * eina_strlen_bounded() is introduced to limit strlen() results, this
   is used in has_prefix and has_suffix, but possibly other use cases
   where string must be of a maximum size as we don't do useless
   iterations;

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46547 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofind and replace too much!
barbieri [Fri, 26 Feb 2010 23:41:43 +0000 (23:41 +0000)]
find and replace too much!

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46535 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agooptimization attributes for functions.
barbieri [Fri, 26 Feb 2010 21:42:03 +0000 (21:42 +0000)]
optimization attributes for functions.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46523 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoadd missing macro for prepend.
barbieri [Fri, 26 Feb 2010 21:34:28 +0000 (21:34 +0000)]
add missing macro for prepend.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46522 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_strbuf_insert variants and fix leak with eina_strbuf_append_escaped()
barbieri [Fri, 26 Feb 2010 21:33:17 +0000 (21:33 +0000)]
eina_strbuf_insert variants and fix leak with eina_strbuf_append_escaped()

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46521 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agomore docs for strbuf
barbieri [Fri, 26 Feb 2010 20:25:09 +0000 (20:25 +0000)]
more docs for strbuf

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46518 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agodocumentation improvements for eina_strbuf.
barbieri [Fri, 26 Feb 2010 20:23:12 +0000 (20:23 +0000)]
documentation improvements for eina_strbuf.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46517 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoadd eina_strbuf_append_length()
barbieri [Fri, 26 Feb 2010 20:09:36 +0000 (20:09 +0000)]
add eina_strbuf_append_length()

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46516 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoTRUE/FALSE are gone, use EINA_TRUE/EINA_FALSE instead.
barbieri [Fri, 26 Feb 2010 00:59:11 +0000 (00:59 +0000)]
TRUE/FALSE are gone, use EINA_TRUE/EINA_FALSE instead.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46500 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agominor documentation fixes.
barbieri [Fri, 26 Feb 2010 00:57:20 +0000 (00:57 +0000)]
minor documentation fixes.

still needs someone to read and review that.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46499 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix warnings.
barbieri [Fri, 26 Feb 2010 00:38:35 +0000 (00:38 +0000)]
fix warnings.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46498 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoremove static/builtin modules warning, we ship with them on by default.
barbieri [Fri, 26 Feb 2010 00:30:01 +0000 (00:30 +0000)]
remove static/builtin modules warning, we ship with them on by default.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46497 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoRemove eina_error deprecated functions.
barbieri [Fri, 26 Feb 2010 00:28:58 +0000 (00:28 +0000)]
Remove eina_error deprecated functions.

There were deprecated looooooooong ago, use eina_log if there are some
alien users out there.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46496 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFix some doxy typos.
devilhorns [Wed, 24 Feb 2010 23:58:27 +0000 (23:58 +0000)]
Fix some doxy typos.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46450 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agouse C (and not C++) pthread library on Windows
caro [Wed, 24 Feb 2010 15:43:32 +0000 (15:43 +0000)]
use C (and not C++) pthread library on Windows

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46431 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoadd mempool description in the doc
caro [Fri, 19 Feb 2010 13:42:34 +0000 (13:42 +0000)]
add mempool description in the doc

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46307 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoInclude safety checks before function include
englebass [Sun, 14 Feb 2010 19:01:51 +0000 (19:01 +0000)]
Include safety checks before function include

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46169 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agosafety checks
englebass [Sat, 13 Feb 2010 19:26:34 +0000 (19:26 +0000)]
safety checks

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46155 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd const where we don't modify pointer
englebass [Sat, 13 Feb 2010 19:06:16 +0000 (19:06 +0000)]
Add const where we don't modify pointer

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46153 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd eina unlikely to alloc errors
englebass [Sat, 13 Feb 2010 18:55:47 +0000 (18:55 +0000)]
Add eina unlikely to alloc errors

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46152 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * -fno-strict-aliasing is checked at linked time (to make sure
caro [Sat, 13 Feb 2010 12:32:22 +0000 (12:32 +0000)]
 * -fno-strict-aliasing is checked at linked time (to make sure
   that it is disabled for suncc)
 * add old evas data types in tests. Tell me if you encounter problems
   with them

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46136 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoUse length of source string to copy.
sachiel [Fri, 12 Feb 2010 14:58:00 +0000 (14:58 +0000)]
Use length of source string to copy.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46114 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoformatting
caro [Fri, 12 Feb 2010 07:32:11 +0000 (07:32 +0000)]
formatting

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46109 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoconstants should be unsigned
caro [Fri, 12 Feb 2010 07:27:27 +0000 (07:27 +0000)]
constants should be unsigned

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46108 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoWe always need to null terminate
englebass [Fri, 12 Feb 2010 06:33:31 +0000 (06:33 +0000)]
We always need to null terminate

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46107 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoSince we know we have enough space, use memcpy
englebass [Thu, 11 Feb 2010 22:00:02 +0000 (22:00 +0000)]
Since we know we have enough space, use memcpy

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46103 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAnd only log when debug
englebass [Thu, 11 Feb 2010 21:56:31 +0000 (21:56 +0000)]
And only log when debug

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46102 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoGood coverage for strbuf
englebass [Thu, 11 Feb 2010 21:53:00 +0000 (21:53 +0000)]
Good coverage for strbuf

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46101 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoDon't timeout
englebass [Thu, 11 Feb 2010 21:30:57 +0000 (21:30 +0000)]
Don't timeout

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46099 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoOnly test built mempools
englebass [Thu, 11 Feb 2010 21:21:22 +0000 (21:21 +0000)]
Only test built mempools

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46096 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoMore tests for strbuf
englebass [Thu, 11 Feb 2010 21:21:12 +0000 (21:21 +0000)]
More tests for strbuf

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46095 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoUse eina_log
englebass [Thu, 11 Feb 2010 21:20:52 +0000 (21:20 +0000)]
Use eina_log

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46094 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoTests for strbuf
englebass [Thu, 11 Feb 2010 20:08:52 +0000 (20:08 +0000)]
Tests for strbuf

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46089 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agomissing "
caro [Thu, 11 Feb 2010 18:54:04 +0000 (18:54 +0000)]
missing "

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46087 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agolet's not return NULL but a more useful result.
barbieri [Thu, 11 Feb 2010 18:49:12 +0000 (18:49 +0000)]
let's not return NULL but a more useful result.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46086 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agono arithmetic pointer on void *
caro [Thu, 11 Feb 2010 18:47:11 +0000 (18:47 +0000)]
no arithmetic pointer on void *

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46085 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFix typo in doc.
devilhorns [Thu, 11 Feb 2010 17:38:24 +0000 (17:38 +0000)]
Fix typo in doc.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46083 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agowarnings--
caro [Thu, 11 Feb 2010 15:29:20 +0000 (15:29 +0000)]
warnings--

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46079 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agowarning--
caro [Thu, 11 Feb 2010 15:22:41 +0000 (15:22 +0000)]
warning--

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46078 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoremove trailing whitespace
englebass [Tue, 9 Feb 2010 21:12:03 +0000 (21:12 +0000)]
remove trailing whitespace

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46029 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agostring_remove -> string_steal
englebass [Tue, 9 Feb 2010 21:06:27 +0000 (21:06 +0000)]
string_remove -> string_steal

Better naming

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46028 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoCheck whether alloc works, return false on error
englebass [Tue, 9 Feb 2010 21:06:16 +0000 (21:06 +0000)]
Check whether alloc works, return false on error

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46027 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agounset eina magic on free
englebass [Tue, 9 Feb 2010 21:06:06 +0000 (21:06 +0000)]
unset eina magic on free

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46026 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoTypo
englebass [Tue, 9 Feb 2010 21:05:56 +0000 (21:05 +0000)]
Typo

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46025 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd simple test for strbuf
englebass [Tue, 9 Feb 2010 21:05:47 +0000 (21:05 +0000)]
Add simple test for strbuf

Need more

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46024 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina: Remove warning in eina_stringshare.
cedric [Tue, 9 Feb 2010 12:59:31 +0000 (12:59 +0000)]
* eina: Remove warning in eina_stringshare.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46009 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agodelete trailing whitespace.
barbieri [Tue, 9 Feb 2010 03:00:47 +0000 (03:00 +0000)]
delete trailing whitespace.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46002 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agodelete trailing whitespace.
barbieri [Tue, 9 Feb 2010 02:51:23 +0000 (02:51 +0000)]
delete trailing whitespace.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46001 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoapply global log level if global domain exists.
barbieri [Tue, 9 Feb 2010 02:14:40 +0000 (02:14 +0000)]
apply global log level if global domain exists.

This allows setting global log level after eina_init() and have it to
behave properly.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45999 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agominor matching speedups.
barbieri [Tue, 9 Feb 2010 02:13:55 +0000 (02:13 +0000)]
minor matching speedups.

keep log level name size (namelen) and use it before strcmp().

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45998 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agojust try fnmatch (glob) if no specific level was set.
barbieri [Tue, 9 Feb 2010 01:47:52 +0000 (01:47 +0000)]
just try fnmatch (glob) if no specific level was set.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45997 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina log level utilities.
barbieri [Tue, 9 Feb 2010 01:43:58 +0000 (01:43 +0000)]
eina log level utilities.

couple of functions that are useful outside and should be fast.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45996 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina log parameters getters and setters.
barbieri [Tue, 9 Feb 2010 00:52:00 +0000 (00:52 +0000)]
eina log parameters getters and setters.

allow external users to check or set flags that are initialized based
on environment variables such as EINA_LOG_COLOR_DISABLE.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45995 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoMore parentheses so the macro works inside if()
sachiel [Mon, 8 Feb 2010 21:20:28 +0000 (21:20 +0000)]
More parentheses so the macro works inside if()

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45992 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agodisable color based on $TERM and isatty().
barbieri [Mon, 8 Feb 2010 17:53:22 +0000 (17:53 +0000)]
disable color based on $TERM and isatty().

Smarter eina log that disables color automatically based on $TERM and
isatty of output file descriptor.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45988 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * include stdlib.h so that NULL is always defined
caro [Mon, 8 Feb 2010 15:25:46 +0000 (15:25 +0000)]
 * include stdlib.h so that NULL is always defined
 * restore LIBS when iconv library is not found

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45986 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoon some platform, iconv.h defines iconv() with a macro,
caro [Mon, 8 Feb 2010 13:14:30 +0000 (13:14 +0000)]
on some platform, iconv.h defines iconv() with a macro,
hence the check with AC_SEARCH_LIBS s not sufficient. So
we link a complete program.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45981 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFix build on RHEL5.
mej [Mon, 8 Feb 2010 07:07:20 +0000 (07:07 +0000)]
Fix build on RHEL5.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45973 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * fix compilation when iconv.h is detected but libiconv is not
caro [Sun, 7 Feb 2010 20:46:39 +0000 (20:46 +0000)]
 * fix compilation when iconv.h is detected but libiconv is not
 * fix warning and clang report

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45970 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAnd since resize adds + 1 to size, grow must do to
englebass [Sun, 7 Feb 2010 19:31:26 +0000 (19:31 +0000)]
And since resize adds + 1 to size, grow must do to

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45969 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAnd add () for increased safety
englebass [Sun, 7 Feb 2010 19:30:01 +0000 (19:30 +0000)]
And add () for increased safety

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45968 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAnd correct return type
englebass [Sun, 7 Feb 2010 19:24:28 +0000 (19:24 +0000)]
And correct return type

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45967 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFix return values
englebass [Sun, 7 Feb 2010 19:22:04 +0000 (19:22 +0000)]
Fix return values

If we don't need to grow, return EINA_TRUE.
Use EINA_TRUE and EINA_FALSE where possible.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45966 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEina: fix compilation on strbuf.
dieb [Sun, 7 Feb 2010 17:33:26 +0000 (17:33 +0000)]
Eina: fix compilation on strbuf.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45965 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoDon't change size, since we don't realloc
englebass [Sun, 7 Feb 2010 12:23:27 +0000 (12:23 +0000)]
Don't change size, since we don't realloc

Thanks Peter

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45964 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoDon't shrink when we append
englebass [Sun, 7 Feb 2010 12:21:28 +0000 (12:21 +0000)]
Don't shrink when we append

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45963 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoWork with escaped string
englebass [Sun, 7 Feb 2010 12:21:07 +0000 (12:21 +0000)]
Work with escaped string

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45962 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd eina_strbuf_reset
englebass [Sat, 6 Feb 2010 21:43:22 +0000 (21:43 +0000)]
Add eina_strbuf_reset

Function to reset the internal string, so we can reuse the allocated
mem.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45952 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd eina_strbuf_append_escaped for edje
englebass [Sat, 6 Feb 2010 21:43:02 +0000 (21:43 +0000)]
Add eina_strbuf_append_escaped for edje

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45950 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd eina_str_escape
englebass [Sat, 6 Feb 2010 21:42:51 +0000 (21:42 +0000)]
Add eina_str_escape

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45949 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd shrink buffer code
englebass [Sat, 6 Feb 2010 20:42:14 +0000 (20:42 +0000)]
Add shrink buffer code

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45946 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoSimpler to use _eina_strbuf_resize
englebass [Sat, 6 Feb 2010 20:42:03 +0000 (20:42 +0000)]
Simpler to use _eina_strbuf_resize

Add space for '\0' in _eina_strbuf_resize, so that we alwyas just pass
inn the wanted string space as requirement.

Correct len in eina_strbuf_append_n, we needed +1 for '\0' for resize
and strlcpy, but not for ->len

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45945 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd functions to match evas strbuf
englebass [Sat, 6 Feb 2010 20:41:43 +0000 (20:41 +0000)]
Add functions to match evas strbuf

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45943 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEINA_ARG_NONNULL
englebass [Sat, 6 Feb 2010 20:41:32 +0000 (20:41 +0000)]
EINA_ARG_NONNULL

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45942 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoInclude own header to be sure prototypes match
englebass [Sat, 6 Feb 2010 20:41:17 +0000 (20:41 +0000)]
Include own header to be sure prototypes match

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45941 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoupdate efl_fnmatch m4 macro
caro [Wed, 3 Feb 2010 20:46:32 +0000 (20:46 +0000)]
update efl_fnmatch  m4 macro

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45851 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agouse efl_fnmatch macro
caro [Wed, 3 Feb 2010 20:13:56 +0000 (20:13 +0000)]
use efl_fnmatch macro

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45847 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoints!!! have found a case where.. yes. we have massive strings.. and shit
raster [Wed, 3 Feb 2010 15:23:32 +0000 (15:23 +0000)]
ints!!! have found a case where.. yes. we have massive strings.. and shit
fucks-up badly! ints it is... 2gb of string - per string. that should be
enouhg for anybody! (also references went up to int too)

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45832 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * remove useless iconv_cflags
caro [Tue, 2 Feb 2010 06:48:52 +0000 (06:48 +0000)]
 * remove useless iconv_cflags
 * put iconv_libs to the correct libtool var

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45794 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * fix configure.ac
caro [Tue, 2 Feb 2010 06:18:59 +0000 (06:18 +0000)]
 * fix configure.ac
 * remove debug

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45793 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agocopy ecore_txt_convert to eina_str_convert
englebass [Tue, 2 Feb 2010 04:49:38 +0000 (04:49 +0000)]
copy ecore_txt_convert to eina_str_convert

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45790 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoif someone pass --enable-default-mempool, pass_through will be used
caro [Sun, 31 Jan 2010 14:52:16 +0000 (14:52 +0000)]
if someone pass --enable-default-mempool, pass_through will be used
in code, but not installed. So it that option is passed, chained_mempool
is disabled,  and pass_through is enabled and linked statically

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45755 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina_str:
caro [Sun, 31 Jan 2010 12:27:41 +0000 (12:27 +0000)]
eina_str:

 * return Eina_Bool instead of int when necessary
 * improve documentation
 * formatting

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45753 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEAPI
englebass [Sat, 30 Jan 2010 22:02:08 +0000 (22:02 +0000)]
EAPI

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45739 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix mingw flags
caro [Thu, 28 Jan 2010 17:13:07 +0000 (17:13 +0000)]
fix mingw flags

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45668 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix header inclusion
caro [Thu, 28 Jan 2010 10:03:31 +0000 (10:03 +0000)]
fix header inclusion

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45655 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd EINA_MAGIC to strbuf
englebass [Wed, 27 Jan 2010 20:48:27 +0000 (20:48 +0000)]
Add EINA_MAGIC to strbuf

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45651 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoMove ecore_str and ecore_strbuf to eina
englebass [Wed, 27 Jan 2010 20:47:47 +0000 (20:47 +0000)]
Move ecore_str and ecore_strbuf to eina

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45650 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoeina - does modules like the rest of efl, so it's able to be installed with
raster [Tue, 26 Jan 2010 15:54:28 +0000 (15:54 +0000)]
eina - does modules like the rest of efl, so it's able to be installed with
multiple versions at the same time. eventually will neeed to also include
major number in release name too.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45594 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * make chained mempool static by default
caro [Tue, 26 Jan 2010 15:30:40 +0000 (15:30 +0000)]
 * make chained mempool static by default
 * disable other by default

if you experience an problem, please report in that thread

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45593 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoadd mempool namespace in configure help
caro [Tue, 26 Jan 2010 11:22:48 +0000 (11:22 +0000)]
add mempool namespace in configure help

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45582 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd patch from bug #479
englebass [Mon, 25 Jan 2010 19:07:52 +0000 (19:07 +0000)]
Add patch from bug #479

Eina installs its modules in /usr/lib/eina/mp/<module>.so, which makes it impossible to install two different versions of eina at the same time. Please consider using something to make this path specific to a particular release of eina, just as you do for the include files.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45562 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * more portable shell tests
caro [Sun, 24 Jan 2010 23:04:24 +0000 (23:04 +0000)]
 * more portable shell tests
 * better m4 code

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45540 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFix remaining "shadowed declaration" warnings.
devilhorns [Sun, 24 Jan 2010 19:59:35 +0000 (19:59 +0000)]
Fix remaining "shadowed declaration" warnings.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45528 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoUse different variable names. This was giving "shadowed declarations"
devilhorns [Sun, 24 Jan 2010 19:51:22 +0000 (19:51 +0000)]
Use different variable names. This was giving "shadowed declarations"
warnings during compile.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45527 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFix some more warnings caused by -Wshadow
billiob [Sun, 24 Jan 2010 13:53:32 +0000 (13:53 +0000)]
Fix some more warnings caused by -Wshadow

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45522 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoadd missing m4 files in tarballs
caro [Sun, 24 Jan 2010 11:25:19 +0000 (11:25 +0000)]
add missing m4 files in tarballs

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45519 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agouse m4 macro ti check compiler flag
caro [Sun, 24 Jan 2010 11:13:23 +0000 (11:13 +0000)]
use m4 macro ti check compiler flag

patch by Lutin (who also wrote the m4 macro, i forgot that
in the previous commit)

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45518 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agomake the ecore tests stand alone (no ecore installation needed)
caro [Sun, 24 Jan 2010 10:54:07 +0000 (10:54 +0000)]
make the ecore tests stand alone (no ecore installation needed)
so no cyclic dependency

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45512 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * eina: Allow compilation with -Wshadow.
cedric [Sat, 23 Jan 2010 19:53:27 +0000 (19:53 +0000)]
* eina: Allow compilation with -Wshadow.

Patch from Albin Tonerre.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45497 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33