caro [Sun, 7 Mar 2010 12:04:46 +0000 (12:04 +0000)]
when pthread is found, don't abort if spin lock is not found but not reqested
Patch by Albin Tonnerre
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46940
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Sun, 7 Mar 2010 07:11:13 +0000 (07:11 +0000)]
* fix more str doc
* move static stringshare functions to the 'private'
part of the file (hence doc fixes)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46933
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Sun, 7 Mar 2010 06:59:28 +0000 (06:59 +0000)]
fix doc for eina_str
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46931
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Wed, 3 Mar 2010 17:25:07 +0000 (17:25 +0000)]
the 4th parameter should not be NULL, not the 3rd
patch by Lionel Orry
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46837
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
cedric [Mon, 1 Mar 2010 17:46:15 +0000 (17:46 +0000)]
* eina: Add eina_list_data_set.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46724
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Mon, 1 Mar 2010 15:08:40 +0000 (15:08 +0000)]
Allow user to redefine the default logging level used by
EINA_LOG_ERR(), EINA_LOG_DBG() and other macros.
This will help us to avoid the cumbersome work of having to define the
local macros. I still find the 3-letter macros handy, but we are not
forced to use them now.
I did a small modification to keep the EINA_LOG_DOMAIN_GLOBAL and use
a different symbol for the define, it is EINA_LOG_DOMAIN_DEFAULT. The
documentation was updated to highlight the 2 usage scenario and care
that must be used.
By: Peter Johnson <tam@hiddenrock.com>
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46700
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
cedric [Mon, 1 Mar 2010 13:50:35 +0000 (13:50 +0000)]
* eina: Don't variable name that could shadow math symbols.
Patch requested by Albin "Lutin" Tonnerre.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46694
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Sun, 28 Feb 2010 21:56:33 +0000 (21:56 +0000)]
remove stupid letter I introduced by mistake.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46671
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Sun, 28 Feb 2010 21:29:30 +0000 (21:29 +0000)]
doc improvements.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46670
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Sun, 28 Feb 2010 17:27:23 +0000 (17:27 +0000)]
abort when pthread is requested but not found
patch by Albin Tonnerre
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46654
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Sat, 27 Feb 2010 16:41:24 +0000 (16:41 +0000)]
Better resize rotine, linear instead of double.
Increment in steps linearly instead of doubling them, otherwise it
will get to maximum limit of 4096 too soon.
Also replace the loop with simple math.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46585
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Sat, 27 Feb 2010 15:38:58 +0000 (15:38 +0000)]
macro -> inline
clear, type checking and same runtime cost.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46584
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Sat, 27 Feb 2010 15:17:15 +0000 (15:17 +0000)]
Fix other EINA_PURE/EINA_CONST.
Some of them were working because they were inline, so the compiler
would know an just ignore the flag.
For lists and rbtree there is no problem as after each operation we
must change the pointer to the new head, thus the compiler will
consider it changed.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46583
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Sat, 27 Feb 2010 14:51:52 +0000 (14:51 +0000)]
ouch, SPANK SPANK SPANK... me :-( wrong function attributes.
I forgot that EINA_CONST refer to the pointer itself, not to its
contents, as such the pointer did not changed, so gcc was optimizing
subsequent fetches of the value.
There should be another optimization to check for this... but then I
guess it's just c++
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46580
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Sat, 27 Feb 2010 03:49:13 +0000 (03:49 +0000)]
missing useful warnings for eina_str
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46549
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@46547
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Fri, 26 Feb 2010 23:41:43 +0000 (23:41 +0000)]
find and replace too much!
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46535
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Fri, 26 Feb 2010 21:42:03 +0000 (21:42 +0000)]
optimization attributes for functions.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46523
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Fri, 26 Feb 2010 21:34:28 +0000 (21:34 +0000)]
add missing macro for prepend.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46522
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@46521
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Fri, 26 Feb 2010 20:25:09 +0000 (20:25 +0000)]
more docs for strbuf
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46518
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Fri, 26 Feb 2010 20:23:12 +0000 (20:23 +0000)]
documentation improvements for eina_strbuf.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46517
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Fri, 26 Feb 2010 20:09:36 +0000 (20:09 +0000)]
add eina_strbuf_append_length()
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46516
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@46500
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@46499
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Fri, 26 Feb 2010 00:38:35 +0000 (00:38 +0000)]
fix warnings.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46498
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@46497
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@46496
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
devilhorns [Wed, 24 Feb 2010 23:58:27 +0000 (23:58 +0000)]
Fix some doxy typos.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46450
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Wed, 24 Feb 2010 15:43:32 +0000 (15:43 +0000)]
use C (and not C++) pthread library on Windows
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46431
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Fri, 19 Feb 2010 13:42:34 +0000 (13:42 +0000)]
add mempool description in the doc
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46307
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Sun, 14 Feb 2010 19:01:51 +0000 (19:01 +0000)]
Include safety checks before function include
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46169
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Sat, 13 Feb 2010 19:26:34 +0000 (19:26 +0000)]
safety checks
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46155
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Sat, 13 Feb 2010 19:06:16 +0000 (19:06 +0000)]
Add const where we don't modify pointer
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46153
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Sat, 13 Feb 2010 18:55:47 +0000 (18:55 +0000)]
Add eina unlikely to alloc errors
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46152
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@46136
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
sachiel [Fri, 12 Feb 2010 14:58:00 +0000 (14:58 +0000)]
Use length of source string to copy.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46114
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Fri, 12 Feb 2010 07:32:11 +0000 (07:32 +0000)]
formatting
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46109
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Fri, 12 Feb 2010 07:27:27 +0000 (07:27 +0000)]
constants should be unsigned
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46108
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Fri, 12 Feb 2010 06:33:31 +0000 (06:33 +0000)]
We always need to null terminate
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46107
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Thu, 11 Feb 2010 22:00:02 +0000 (22:00 +0000)]
Since we know we have enough space, use memcpy
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46103
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Thu, 11 Feb 2010 21:56:31 +0000 (21:56 +0000)]
And only log when debug
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46102
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Thu, 11 Feb 2010 21:53:00 +0000 (21:53 +0000)]
Good coverage for strbuf
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46101
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Thu, 11 Feb 2010 21:30:57 +0000 (21:30 +0000)]
Don't timeout
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46099
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Thu, 11 Feb 2010 21:21:22 +0000 (21:21 +0000)]
Only test built mempools
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46096
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Thu, 11 Feb 2010 21:21:12 +0000 (21:21 +0000)]
More tests for strbuf
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46095
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Thu, 11 Feb 2010 21:20:52 +0000 (21:20 +0000)]
Use eina_log
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46094
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Thu, 11 Feb 2010 20:08:52 +0000 (20:08 +0000)]
Tests for strbuf
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46089
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Thu, 11 Feb 2010 18:54:04 +0000 (18:54 +0000)]
missing "
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46087
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@46086
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Thu, 11 Feb 2010 18:47:11 +0000 (18:47 +0000)]
no arithmetic pointer on void *
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46085
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
devilhorns [Thu, 11 Feb 2010 17:38:24 +0000 (17:38 +0000)]
Fix typo in doc.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46083
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Thu, 11 Feb 2010 15:29:20 +0000 (15:29 +0000)]
warnings--
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46079
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Thu, 11 Feb 2010 15:22:41 +0000 (15:22 +0000)]
warning--
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46078
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Tue, 9 Feb 2010 21:12:03 +0000 (21:12 +0000)]
remove trailing whitespace
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46029
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Tue, 9 Feb 2010 21:06:27 +0000 (21:06 +0000)]
string_remove -> string_steal
Better naming
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46028
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Tue, 9 Feb 2010 21:06:16 +0000 (21:06 +0000)]
Check whether alloc works, return false on error
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46027
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Tue, 9 Feb 2010 21:06:06 +0000 (21:06 +0000)]
unset eina magic on free
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46026
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Tue, 9 Feb 2010 21:05:56 +0000 (21:05 +0000)]
Typo
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46025
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Tue, 9 Feb 2010 21:05:47 +0000 (21:05 +0000)]
Add simple test for strbuf
Need more
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46024
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
cedric [Tue, 9 Feb 2010 12:59:31 +0000 (12:59 +0000)]
* eina: Remove warning in eina_stringshare.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46009
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Tue, 9 Feb 2010 03:00:47 +0000 (03:00 +0000)]
delete trailing whitespace.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46002
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
barbieri [Tue, 9 Feb 2010 02:51:23 +0000 (02:51 +0000)]
delete trailing whitespace.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46001
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45999
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45998
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45997
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45996
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45995
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
sachiel [Mon, 8 Feb 2010 21:20:28 +0000 (21:20 +0000)]
More parentheses so the macro works inside if()
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45992
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45988
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45986
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45981
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
mej [Mon, 8 Feb 2010 07:07:20 +0000 (07:07 +0000)]
Fix build on RHEL5.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45973
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45970
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45969
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Sun, 7 Feb 2010 19:30:01 +0000 (19:30 +0000)]
And add () for increased safety
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45968
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Sun, 7 Feb 2010 19:24:28 +0000 (19:24 +0000)]
And correct return type
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45967
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45966
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
dieb [Sun, 7 Feb 2010 17:33:26 +0000 (17:33 +0000)]
Eina: fix compilation on strbuf.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45965
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45964
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Sun, 7 Feb 2010 12:21:28 +0000 (12:21 +0000)]
Don't shrink when we append
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45963
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Sun, 7 Feb 2010 12:21:07 +0000 (12:21 +0000)]
Work with escaped string
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45962
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45952
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Sat, 6 Feb 2010 21:43:02 +0000 (21:43 +0000)]
Add eina_strbuf_append_escaped for edje
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45950
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Sat, 6 Feb 2010 21:42:51 +0000 (21:42 +0000)]
Add eina_str_escape
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45949
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Sat, 6 Feb 2010 20:42:14 +0000 (20:42 +0000)]
Add shrink buffer code
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45946
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45945
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Sat, 6 Feb 2010 20:41:43 +0000 (20:41 +0000)]
Add functions to match evas strbuf
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45943
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Sat, 6 Feb 2010 20:41:32 +0000 (20:41 +0000)]
EINA_ARG_NONNULL
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45942
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Sat, 6 Feb 2010 20:41:17 +0000 (20:41 +0000)]
Include own header to be sure prototypes match
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45941
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Wed, 3 Feb 2010 20:46:32 +0000 (20:46 +0000)]
update efl_fnmatch m4 macro
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45851
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Wed, 3 Feb 2010 20:13:56 +0000 (20:13 +0000)]
use efl_fnmatch macro
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45847
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45832
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45794
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Tue, 2 Feb 2010 06:18:59 +0000 (06:18 +0000)]
* fix configure.ac
* remove debug
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45793
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Tue, 2 Feb 2010 04:49:38 +0000 (04:49 +0000)]
copy ecore_txt_convert to eina_str_convert
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45790
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45755
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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: http://svn.enlightenment.org/svn/e/trunk/eina@45753
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
englebass [Sat, 30 Jan 2010 22:02:08 +0000 (22:02 +0000)]
EAPI
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45739
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
caro [Thu, 28 Jan 2010 17:13:07 +0000 (17:13 +0000)]
fix mingw flags
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45668
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33