Gustavo Sverzut Barbieri
9839906150
stringshare: optimization suggested by rasterman, docs.
...
SVN revision: 47193
2010-03-14 01:06:52 +00:00
Gustavo Sverzut Barbieri
10dc981b38
fix docs.
...
By: Eduardo Felipe <eduardofelipe87@gmail.com>
NOTE: I changed code -> verbatim where it should be.
SVN revision: 47163
2010-03-12 19:23:06 +00:00
Vincent Torri
ea61bede40
update vcproj files (add new str and strbuf files)
...
SVN revision: 47135
2010-03-11 18:10:20 +00:00
Vincent Torri
85b56aebd5
update string buffer documentation
...
SVN revision: 47084
2010-03-09 16:36:14 +00:00
Vincent Torri
42dcade4b2
more supported OS
...
SVN revision: 46953
2010-03-07 16:01:00 +00:00
Vincent Torri
248ecd4a13
update TOC
...
SVN revision: 46949
2010-03-07 14:38:14 +00:00
Vincent Torri
91d2b4b2e9
typo
...
SVN revision: 46945
2010-03-07 12:13:30 +00:00
Vincent Torri
9d1529b09d
when pthread is found, don't abort if spin lock is not found but not reqested
...
Patch by Albin Tonnerre
SVN revision: 46940
2010-03-07 12:04:46 +00:00
Vincent Torri
b3019e3d4b
* fix more str doc
...
* move static stringshare functions to the 'private'
part of the file (hence doc fixes)
SVN revision: 46933
2010-03-07 07:11:13 +00:00
Vincent Torri
993b4a6960
fix doc for eina_str
...
SVN revision: 46931
2010-03-07 06:59:28 +00:00
Vincent Torri
3648f0ed3e
the 4th parameter should not be NULL, not the 3rd
...
patch by Lionel Orry
SVN revision: 46837
2010-03-03 17:25:07 +00:00
Cedric BAIL
cf5a3517b9
* eina: Add eina_list_data_set.
...
SVN revision: 46724
2010-03-01 17:46:15 +00:00
Gustavo Sverzut Barbieri
61f65ae20a
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>
SVN revision: 46700
2010-03-01 15:08:40 +00:00
Cedric BAIL
99f4054ce5
* eina: Don't variable name that could shadow math symbols.
...
Patch requested by Albin "Lutin" Tonnerre.
SVN revision: 46694
2010-03-01 13:50:35 +00:00
Gustavo Sverzut Barbieri
0cece24af2
remove stupid letter I introduced by mistake.
...
SVN revision: 46671
2010-02-28 21:56:33 +00:00
Gustavo Sverzut Barbieri
90c5c1daaa
doc improvements.
...
SVN revision: 46670
2010-02-28 21:29:30 +00:00
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