Vincent Torri
43908b1905
abort when pthread is requested but not found
...
patch by Albin Tonnerre
SVN revision: 46654
2010-02-28 17:27:23 +00:00
Gustavo Sverzut Barbieri
54b0b06c1e
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.
SVN revision: 46585
2010-02-27 16:41:24 +00:00
Gustavo Sverzut Barbieri
4d9ed8cb79
macro -> inline
...
clear, type checking and same runtime cost.
SVN revision: 46584
2010-02-27 15:38:58 +00:00
Gustavo Sverzut Barbieri
66ff799e5e
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.
SVN revision: 46583
2010-02-27 15:17:15 +00:00
Gustavo Sverzut Barbieri
8daa98f42e
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++
SVN revision: 46580
2010-02-27 14:51:52 +00:00
Gustavo Sverzut Barbieri
f98c65afcc
missing useful warnings for eina_str
...
SVN revision: 46549
2010-02-27 03:49:13 +00:00
Gustavo Sverzut Barbieri
08127ecc3e
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;
SVN revision: 46547
2010-02-27 03:42:27 +00:00
Gustavo Sverzut Barbieri
2a204c684a
find and replace too much!
...
SVN revision: 46535
2010-02-26 23:41:43 +00:00
Gustavo Sverzut Barbieri
6769ba3b45
optimization attributes for functions.
...
SVN revision: 46523
2010-02-26 21:42:03 +00:00
Gustavo Sverzut Barbieri
7dfc83a627
add missing macro for prepend.
...
SVN revision: 46522
2010-02-26 21:34:28 +00:00
Gustavo Sverzut Barbieri
bba70aef2e
eina_strbuf_insert variants and fix leak with eina_strbuf_append_escaped()
...
SVN revision: 46521
2010-02-26 21:33:17 +00:00
Gustavo Sverzut Barbieri
3a8741c75e
more docs for strbuf
...
SVN revision: 46518
2010-02-26 20:25:09 +00:00
Gustavo Sverzut Barbieri
2511972dde
documentation improvements for eina_strbuf.
...
SVN revision: 46517
2010-02-26 20:23:12 +00:00
Gustavo Sverzut Barbieri
f32672764d
add eina_strbuf_append_length()
...
SVN revision: 46516
2010-02-26 20:09:36 +00:00
Gustavo Sverzut Barbieri
e3c9d3f62a
TRUE/FALSE are gone, use EINA_TRUE/EINA_FALSE instead.
...
SVN revision: 46500
2010-02-26 00:59:11 +00:00
Gustavo Sverzut Barbieri
ff6532a1bd
minor documentation fixes.
...
still needs someone to read and review that.
SVN revision: 46499
2010-02-26 00:57:20 +00:00
Gustavo Sverzut Barbieri
926789e247
fix warnings.
...
SVN revision: 46498
2010-02-26 00:38:35 +00:00
Gustavo Sverzut Barbieri
fc6c3ebb65
remove static/builtin modules warning, we ship with them on by default.
...
SVN revision: 46497
2010-02-26 00:30:01 +00:00
Gustavo Sverzut Barbieri
7c8ca04def
Remove eina_error deprecated functions.
...
There were deprecated looooooooong ago, use eina_log if there are some
alien users out there.
SVN revision: 46496
2010-02-26 00:28:58 +00:00
Christopher Michael
140de33a79
Fix some doxy typos.
...
SVN revision: 46450
2010-02-24 23:58:27 +00:00
Vincent Torri
3c8d96125a
use C (and not C++) pthread library on Windows
...
SVN revision: 46431
2010-02-24 15:43:32 +00:00
Vincent Torri
2e004582d7
add mempool description in the doc
...
SVN revision: 46307
2010-02-19 13:42:34 +00:00
Sebastian Dransfeld
0b3bea06ec
Include safety checks before function include
...
SVN revision: 46169
2010-02-14 19:01:51 +00:00
Sebastian Dransfeld
7ae4c793e7
safety checks
...
SVN revision: 46155
2010-02-13 19:26:34 +00:00
Sebastian Dransfeld
5c49be6e01
Add const where we don't modify pointer
...
SVN revision: 46153
2010-02-13 19:06:16 +00:00
Sebastian Dransfeld
d7b706e4f6
Add eina unlikely to alloc errors
...
SVN revision: 46152
2010-02-13 18:55:47 +00:00
Vincent Torri
b87e1d6fae
* -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
SVN revision: 46136
2010-02-13 12:32:22 +00:00
Iván Briano
071969c41f
Use length of source string to copy.
...
SVN revision: 46114
2010-02-12 14:58:00 +00:00
Vincent Torri
4b5ea14fbb
formatting
...
SVN revision: 46109
2010-02-12 07:32:11 +00:00
Vincent Torri
1213602ae5
constants should be unsigned
...
SVN revision: 46108
2010-02-12 07:27:27 +00:00
Sebastian Dransfeld
852f9e8ac5
We always need to null terminate
...
SVN revision: 46107
2010-02-12 06:33:31 +00:00
Sebastian Dransfeld
fb8d1dc110
Since we know we have enough space, use memcpy
...
SVN revision: 46103
2010-02-11 22:00:02 +00:00
Sebastian Dransfeld
f70c4ebe1f
And only log when debug
...
SVN revision: 46102
2010-02-11 21:56:31 +00:00
Sebastian Dransfeld
9df3524f3a
Good coverage for strbuf
...
SVN revision: 46101
2010-02-11 21:53:00 +00:00
Sebastian Dransfeld
8f5d0ecfb4
Don't timeout
...
SVN revision: 46099
2010-02-11 21:30:57 +00:00
Sebastian Dransfeld
e699b67248
Only test built mempools
...
SVN revision: 46096
2010-02-11 21:21:22 +00:00
Sebastian Dransfeld
a28ba1876e
More tests for strbuf
...
SVN revision: 46095
2010-02-11 21:21:12 +00:00
Sebastian Dransfeld
b2fbe0f2b2
Use eina_log
...
SVN revision: 46094
2010-02-11 21:20:52 +00:00
Sebastian Dransfeld
0ed3fb726b
Tests for strbuf
...
SVN revision: 46089
2010-02-11 20:08:52 +00:00
Vincent Torri
b49d61f502
missing "
...
SVN revision: 46087
2010-02-11 18:54:04 +00:00
Gustavo Sverzut Barbieri
9cce47d3b8
let's not return NULL but a more useful result.
...
SVN revision: 46086
2010-02-11 18:49:12 +00:00
Vincent Torri
ed57ba09ed
no arithmetic pointer on void *
...
SVN revision: 46085
2010-02-11 18:47:11 +00:00
Christopher Michael
e9bc23874c
Fix typo in doc.
...
SVN revision: 46083
2010-02-11 17:38:24 +00:00
Vincent Torri
b64d398ffd
warnings--
...
SVN revision: 46079
2010-02-11 15:29:20 +00:00
Vincent Torri
f8e1057fc0
warning--
...
SVN revision: 46078
2010-02-11 15:22:41 +00:00
Sebastian Dransfeld
229e5de19d
remove trailing whitespace
...
SVN revision: 46029
2010-02-09 21:12:03 +00:00
Sebastian Dransfeld
5847c6f245
string_remove -> string_steal
...
Better naming
SVN revision: 46028
2010-02-09 21:06:27 +00:00
Sebastian Dransfeld
fe99f062e9
Check whether alloc works, return false on error
...
SVN revision: 46027
2010-02-09 21:06:16 +00:00
Sebastian Dransfeld
459fef8aea
unset eina magic on free
...
SVN revision: 46026
2010-02-09 21:06:06 +00:00
Sebastian Dransfeld
dca87fdf87
Typo
...
SVN revision: 46025
2010-02-09 21:05:56 +00:00