Vincent Torri
2c91c3cf21
add colored log on Windows with the DOS console and MSYS
...
without rxvt emulation. It does not work with MSYS with
rxvt emulation. I don't know the status of the cygwin
terminal.
SVN revision: 47486
2010-03-26 08:08:52 +00:00
Vincent Torri
762313eff2
declare buddy init/shutdown functions it this
...
mempool is statically linked
SVN revision: 47484
2010-03-26 07:47:11 +00:00
Vincent Torri
8126debb06
fix most compilation errors with vc++ (there are still a
...
problem with eina_log and output of the log messages:
STDERR_FILENO, STDOUT_FILENO and isatty())
fix some warnings and header files inclusion
update vcproj files
SVN revision: 47384
2010-03-23 06:41:17 +00:00
Vincent Torri
8358354e09
* declare variables at the beginning of the block
...
* minor formatting
SVN revision: 47383
2010-03-23 05:45:35 +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
85b56aebd5
update string buffer documentation
...
SVN revision: 47084
2010-03-09 16:36:14 +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
Gustavo Sverzut Barbieri
90c5c1daaa
doc improvements.
...
SVN revision: 46670
2010-02-28 21:29:30 +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
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
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
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
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
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
Iván Briano
071969c41f
Use length of source string to copy.
...
SVN revision: 46114
2010-02-12 14:58:00 +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
9df3524f3a
Good coverage for strbuf
...
SVN revision: 46101
2010-02-11 21:53:00 +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
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
Cedric BAIL
13df61db0d
* eina: Remove warning in eina_stringshare.
...
SVN revision: 46009
2010-02-09 12:59:31 +00:00
Gustavo Sverzut Barbieri
c52d867527
delete trailing whitespace.
...
SVN revision: 46002
2010-02-09 03:00:47 +00:00
Gustavo Sverzut Barbieri
728f10a269
delete trailing whitespace.
...
SVN revision: 46001
2010-02-09 02:51:23 +00:00
Gustavo Sverzut Barbieri
7e043d87c8
apply global log level if global domain exists.
...
This allows setting global log level after eina_init() and have it to
behave properly.
SVN revision: 45999
2010-02-09 02:14:40 +00:00
Gustavo Sverzut Barbieri
ebed1f20fe
minor matching speedups.
...
keep log level name size (namelen) and use it before strcmp().
SVN revision: 45998
2010-02-09 02:13:55 +00:00
Gustavo Sverzut Barbieri
0b2b716214
just try fnmatch (glob) if no specific level was set.
...
SVN revision: 45997
2010-02-09 01:47:52 +00:00
Gustavo Sverzut Barbieri
191d87d78a
eina log level utilities.
...
couple of functions that are useful outside and should be fast.
SVN revision: 45996
2010-02-09 01:43:58 +00:00
Gustavo Sverzut Barbieri
f7cd9786f1
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.
SVN revision: 45995
2010-02-09 00:52:00 +00:00
Iván Briano
752a730b38
More parentheses so the macro works inside if()
...
SVN revision: 45992
2010-02-08 21:20:28 +00:00
Gustavo Sverzut Barbieri
c87dbf93ab
disable color based on $TERM and isatty().
...
Smarter eina log that disables color automatically based on $TERM and
isatty of output file descriptor.
SVN revision: 45988
2010-02-08 17:53:22 +00:00
Vincent Torri
8840ed4118
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.
SVN revision: 45981
2010-02-08 13:14:30 +00:00
Vincent Torri
6ac6ee026c
* fix compilation when iconv.h is detected but libiconv is not
...
* fix warning and clang report
SVN revision: 45970
2010-02-07 20:46:39 +00:00