Carsten Haitzler
eb1a43bfbf
oops - formatting at start too - not just end
...
SVN revision: 51510
2010-08-22 05:47:44 +00:00
Carsten Haitzler
1974702021
fmting
...
SVN revision: 51507
2010-08-22 02:32:47 +00:00
Joerg Sonnenberger
4497367d7f
From: Joerg Sonnenberger <joerg@britannica.bec.de>
...
pthread_t is opaque, so make less assumptions...
SVN revision: 51506
2010-08-22 01:15:47 +00:00
Joerg Sonnenberger
527f011af9
From: Joerg Sonnenberger <joerg@britannica.bec.de>
...
Use portable header to work on all POSIX compliant systems.
Doesn't break non-POSIX systems as limits.h is a C90 header.
SVN revision: 51505
2010-08-22 01:15:18 +00:00
Vincent Torri
2e92fe0223
update vcproj files
...
SVN revision: 51498
2010-08-21 18:41:11 +00:00
Vincent Torri
0686aa04af
add vasprintf declaration on Windows
...
SVN revision: 51497
2010-08-21 17:25:46 +00:00
Lucas De Marchi
5a8a8c9014
Convert (hopefully) all comparisons to NULL
...
Apply badzero.cocci, badnull.coci and badnull2.cocci
This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:
code before patch ||code after patch
===============================================================
return a == NULL; return !a;
return a != NULL; return !!a;
func(a == NULL); func(!a);
func(a != NULL); func(!!a);
b = a == NULL; b = !a;
b = a != NULL; b = !!a;
b = a == NULL ? c : d; b = !a ? c : d;
b = a != NULL ? c : d; b = a ? c : d;
other cases:
a == NULL !a
a != NULL a
SVN revision: 51487
2010-08-21 13:52:25 +00:00
Cedric BAIL
e6f9cee051
* eina: fix structure content to be more futur proof and reduce
...
risk of ABI breakage.
SVN revision: 51390
2010-08-19 12:02:28 +00:00
Tom Hacohen
6a0b488468
Eina: Moved the private headers to src/lib where they belong.
...
SVN revision: 51388
2010-08-19 08:30:01 +00:00
Cedric BAIL
ccebf54881
* eina: fix some warning by Albin Tonnerre.
...
SVN revision: 51246
2010-08-17 11:48:50 +00:00
Vincent Torri
ca4497509e
i forgot about amalgamation. fix declaration too
...
SVN revision: 51243
2010-08-17 07:39:53 +00:00
Vincent Torri
333b64f15e
some doc fixes
...
SVN revision: 51242
2010-08-17 06:58:26 +00:00
Vincent Torri
d4cd8f28ae
formatting
...
SVN revision: 51241
2010-08-17 06:05:21 +00:00
Vincent Torri
32932b4135
alloca() declaration
...
SVN revision: 51240
2010-08-17 05:44:11 +00:00
Vincent Torri
4e09c14e08
formatting
...
SVN revision: 51239
2010-08-17 05:28:34 +00:00
Vincent Torri
2e13d0c790
formatting
...
SVN revision: 51238
2010-08-17 05:22:10 +00:00
Vincent Torri
13a1bdf6e0
formatting
...
SVN revision: 51237
2010-08-17 05:21:13 +00:00
Vincent Torri
db666d9feb
remove rwlock code
...
SVN revision: 51236
2010-08-17 05:15:28 +00:00
Lucas De Marchi
80b44315f7
eina-0 is no more, check for the right package name
...
SVN revision: 51235
2010-08-17 03:59:29 +00:00
Sebastian Dransfeld
8e1762694a
typo
...
SVN revision: 51223
2010-08-16 17:56:18 +00:00
Cedric BAIL
e3a887235d
* eina: remove configure option for rwlock as it is not used anymore.
...
SVN revision: 51220
2010-08-16 15:36:17 +00:00
Cedric BAIL
c45c36bd80
* eina: attempt to improve a little bit more the header.
...
Mainly trailing space and macro indentation.
SVN revision: 51217
2010-08-16 15:02:37 +00:00
Cedric BAIL
6293bd87fa
* eina: fix amalgamation.
...
SVN revision: 51210
2010-08-16 13:52:34 +00:00
Cedric BAIL
f75eab161d
* eina: remove thread safe data type for now. They will be back !
...
SVN revision: 51179
2010-08-16 09:32:09 +00:00
Cedric BAIL
aa3728b3f5
* eina: preparing clean removal of eina threadsafe data type.
...
SVN revision: 51173
2010-08-16 09:00:42 +00:00
Carsten Haitzler
aee8014df6
actually fix - eina.pc should now be used. consistency with the rest
...
of efl.
SVN revision: 51160
2010-08-16 08:03:21 +00:00
Carsten Haitzler
6bfc6527c2
module arch fix.
...
SVN revision: 51157
2010-08-16 06:46:03 +00:00
Carsten Haitzler
f4b68549cb
formatting. ok - maybe we can have a debate on it, but its better than
...
it was before. debate up for grabs for now. wont touch other lib
headers until resolved for eina. it's the worst anyway.
SVN revision: 51156
2010-08-16 06:14:19 +00:00
Carsten Haitzler
c747bfaadb
well got to start somewhere. eina 1.0.0 alpha readied. need to go over
...
code formatting still (headers specifically). bring doc building
in-line with other efl libs. README is useful now. Changelog waiting
to be filled in for 1.0.0
SVN revision: 51154
2010-08-16 05:40:50 +00:00
Carsten Haitzler
a7dd054fe4
remove cruft.
...
SVN revision: 51151
2010-08-16 03:34:47 +00:00
Carsten Haitzler
f0c2285096
fix copying - it didnt actually even claim copyright. fix.
...
SVN revision: 51147
2010-08-16 02:40:24 +00:00
Tom Hacohen
063d8ffd64
Eina: Fixed usage of EINA_CONST, the lack of EINA_PURE and EINA_WARN_UNUSED_RESULT and formatting in the following headers:
...
1. eina_unicode.h
2. eina_strbuf.h eina_ustrbuf.h
3. eina_stringshare.h eina_ustringshare.h eina_binshare.h
SVN revision: 51128
2010-08-15 09:01:16 +00:00
Mike Blumenkrantz
ad00478247
fix threadsafe api
...
SVN revision: 51118
2010-08-14 16:10:19 +00:00
Cedric BAIL
3b269d6f04
* eina: don't direct people in the wrong direction.
...
SVN revision: 51117
2010-08-14 15:50:07 +00:00
Mike Blumenkrantz
689a24559c
add threadsafety for hashes
...
SVN revision: 51106
2010-08-14 03:05:35 +00:00
Mike Blumenkrantz
f973f8c72a
add #ifdefs for some threadsafety stuff
...
cedric SPANK SPANK SPANK!!!
SVN revision: 51105
2010-08-14 03:03:32 +00:00
Iván Briano
02031b60bf
Remark that data being deleted from the hash will be mercilessly killed if a blackops free function was given to the hash on creation.
...
SVN revision: 51079
2010-08-13 14:34:36 +00:00
Mike Blumenkrantz
c8f669a27f
more variable renames, null check alloc, malloc+memset0 -> calloc, rwlocks in structs
...
SVN revision: 51066
2010-08-13 06:58:43 +00:00
Mike Blumenkrantz
44eeac0e1e
BOW DOWN BEFORE ME, FOR I HAVE MADE THESE HEADERS READABLE ONCE MORE!
...
SVN revision: 51065
2010-08-13 06:36:33 +00:00
Mike Blumenkrantz
3618cf1227
rename variables and typedefs to sane values
...
SVN revision: 51064
2010-08-13 05:22:33 +00:00
Mike Blumenkrantz
bf66f6f712
go go gadget recrustify!
...
SVN revision: 51063
2010-08-13 01:46:14 +00:00
Cedric BAIL
731e946df7
* eina: remove debug output.
...
SVN revision: 51048
2010-08-12 15:11:35 +00:00
Cedric BAIL
86a21376ad
* eina: report when and where memleak come from.
...
SVN revision: 51040
2010-08-12 14:22:22 +00:00
Tom Hacohen
d2988fe707
Eina: "FIX" EINA_UNICODE_EMPTY_STRING.
...
SVN revision: 51038
2010-08-12 14:16:32 +00:00
Cedric BAIL
a6645cb746
* eina: fix eina array threadsafe version.
...
Also add iterator and accessor ability to walk threadsafely.
Rename EINA_EACH to EINA_EACH_CB to match other callback cast.
SVN revision: 51000
2010-08-11 14:32:30 +00:00
Mike Blumenkrantz
7833796e00
right...this is malloc...
...
SVN revision: 50963
2010-08-10 12:25:34 +00:00
Mike Blumenkrantz
a7398f4e08
refcount locks to avoid deadlocks; array threadsafety should be good to go now
...
SVN revision: 50962
2010-08-10 12:14:59 +00:00
Mike Blumenkrantz
c09c5ed690
and these
...
SVN revision: 50961
2010-08-10 12:05:51 +00:00
Mike Blumenkrantz
a589a1bcbe
and this too
...
SVN revision: 50960
2010-08-10 12:00:36 +00:00
Mike Blumenkrantz
cbf7f7b58a
array threadsafing wip, get rid of dumb undefineds from earlier
...
SVN revision: 50959
2010-08-10 11:57:20 +00:00
Mike Blumenkrantz
5b4ec5bd35
change EINA_ARRAY_THREADSAFE_ITER_RETURN to EINA_ARRAY_THREADSAFE_ITER_ESCAPE to match forthcoming threadsafe list api
...
SVN revision: 50956
2010-08-10 07:48:00 +00:00
Mike Blumenkrantz
6bc0a6cb14
errr use the right define for this
...
SVN revision: 50952
2010-08-10 03:37:21 +00:00
Mike Blumenkrantz
56a0bd9396
implement threadsafety for arrays, alter all eina internal array usage to (hopefully) be threadsafe
...
call eina_threads_init() to enable this if you have pthread rwlock support (posix 2001)
note some function prototypes have lost const on array params to allow locking
WARNING: you should NOT call eina_threads_shutdown unless you are positive that you will not use any arrays which were created while threadsafe mode were enabled, and vice versa. Failing to adhere to this warning WILL result in either deadlocks or memory leaks.
SVN revision: 50951
2010-08-10 03:26:15 +00:00
Mike Blumenkrantz
224f7d3b55
formatting
...
SVN revision: 50913
2010-08-08 20:49:26 +00:00
Mike Blumenkrantz
27041eb06e
fix automake quoting
...
SVN revision: 50912
2010-08-08 20:48:46 +00:00
Mike Blumenkrantz
84faaf51fd
add rwlock define to eina_config.h
...
SVN revision: 50911
2010-08-08 19:35:43 +00:00
Mike Blumenkrantz
76a70bdd48
split out spinlock detection to separate macro for readability, add rwlock detection macro
...
***no functional changes***
SVN revision: 50910
2010-08-08 19:20:07 +00:00
Tom Hacohen
ed0f5eb857
eina: fix strdup calloc, it's number of elements and then size, and not the other way around.
...
SVN revision: 50898
2010-08-08 12:03:18 +00:00
Cedric BAIL
476f09d29b
* eina: add some doc for one big mempool.
...
SVN revision: 50834
2010-08-05 12:52:30 +00:00
Cedric BAIL
e1d8b17d54
* eina: fix segv on NULL mempool.
...
SVN revision: 50833
2010-08-05 12:36:36 +00:00
Cedric BAIL
05143be132
* eina: complete configure.ac with latest mempool.
...
SVN revision: 50831
2010-08-05 09:40:50 +00:00
Lucas De Marchi
0a4617ae38
FORMATTING
...
* Remove vim modelines:
find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;
* Remove leading blank lines:
find . -name '*.[cxh]' -exec sed -i '/./,$!d'
If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0
SVN revision: 50816
2010-08-04 16:57:32 +00:00
Gustavo Lima Chaves
faa7644e22
Better documenting EINA_MAGIC_SET()'s use.
...
Patch by Jonas Gastal.
SVN revision: 50744
2010-08-02 16:57:38 +00:00
Brett Nash
9da847b538
Fix eina_unicode_strncpy
...
SVN revision: 50741
2010-08-02 09:44:11 +00:00
Brett Nash
d3655ee501
Beef up the strncpy test
...
SVN revision: 50740
2010-08-02 09:44:06 +00:00
Brett Nash
7f83020567
Terminate the string after strcpy
...
SVN revision: 50739
2010-08-02 09:44:01 +00:00
Brett Nash
9e468e94e7
Update eina_unicode_strnlen
...
SVN revision: 50738
2010-08-02 09:43:57 +00:00
Brett Nash
4efb9d70af
Add ustr tests.
...
SVN revision: 50737
2010-08-02 09:43:51 +00:00
Brett Nash
1e8074954f
Fix end points
...
SVN revision: 50708
2010-07-31 05:24:45 +00:00
Brett Nash
db89ba43d7
eina: Actually implement strnlen for eina_unicode.
...
SVN revision: 50700
2010-07-31 03:54:09 +00:00
Mike Blumenkrantz
d409884148
incomplete doxy!
...
cedric SPANK SPANK SPANK!!!
SVN revision: 50694
2010-07-30 21:18:40 +00:00
Cedric BAIL
c9d5d8a62e
* eina: add a way to move a key to another without triggering the Free_Cb.
...
SVN revision: 50683
2010-07-30 09:06:58 +00:00
Cedric BAIL
85be5e4201
* eina: try to fix memory align on sparc.
...
SVN revision: 50680
2010-07-30 08:26:34 +00:00
Brett Nash
4414556323
Unicde strnlen, and a slight fix to the header so at least part can be read by
...
humans.
Also strlen/strnlen are pure.
SVN revision: 50676
2010-07-30 03:39:12 +00:00
Iván Briano
55baf0a4f1
DO export this thingies
...
SVN revision: 50645
2010-07-29 14:08:02 +00:00
Cedric BAIL
836721fc6e
* eina: remove some warning.
...
SVN revision: 50644
2010-07-29 13:59:31 +00:00
Cedric BAIL
4010a9b18a
* eina: fix wrong test in eina_big.
...
SVN revision: 50602
2010-07-28 18:10:53 +00:00
Tom Hacohen
713354b764
Eina: Fixed a bug in eina_*share_dump functions and fixed a documentation error.
...
SVN revision: 50600
2010-07-28 17:53:10 +00:00
Mike Blumenkrantz
5028d6a282
lots of doxy fixes and stop casting to char*
...
SVN revision: 50582
2010-07-28 03:34:25 +00:00
Mike Blumenkrantz
a124fffeca
start binshare
...
SVN revision: 50581
2010-07-28 03:33:49 +00:00
Carsten Haitzler
15c71af0a5
fix formatting also
...
SVN revision: 50577
2010-07-28 03:03:25 +00:00
Carsten Haitzler
bed21c315d
errrr... hmmm why did this change?
...
SVN revision: 50574
2010-07-28 02:48:11 +00:00
Carsten Haitzler
ddc6ba2c2a
uncrustify eina.
...
SVN revision: 50573
2010-07-28 02:37:05 +00:00
Mike Blumenkrantz
d87ed6ac22
when all files combine and the enable flag is set, form VOLTRON, DEFENDER OF THE UNIVERSE!
...
SVN revision: 50550
2010-07-27 20:17:25 +00:00
Tom Hacohen
e6ec7adedb
Eina: Fix the segfault in eina_stringshare_shutdown with-enable-amalgamation.
...
SVN revision: 50548
2010-07-27 16:53:49 +00:00
Tom Hacohen
32c7a50118
Eina: Fix compilation with --enable-amalgamation.
...
Sorry dh :P
SVN revision: 50545
2010-07-27 15:15:45 +00:00
Tom Hacohen
6b69189efd
Eina: Added ustringshare and binshare tests.
...
Fixed a small bug in binshare (in the length function).
Moved some debug messages around.
SVN revision: 50541
2010-07-27 11:43:37 +00:00
Tom Hacohen
d928a9ded8
Eina: implement the macro eina_binshare_add.
...
SVN revision: 50535
2010-07-27 09:41:34 +00:00
Tom Hacohen
279da003e0
Eina: Added Eina_UStrbuf.
...
Same as Eina_Strbuf but for Eina_Unicode strings.
SVN revision: 50534
2010-07-27 09:05:41 +00:00
Tom Hacohen
3675a5f02b
Eina: Add Eina_UStringshare and Eina_Binshare.
...
Also modified Eina_Stringshare to share most of the code with the two above.
Added Magics for Eina_UStrbuf as well as for UStringshare/Binshare.
SVN revision: 50533
2010-07-27 08:55:23 +00:00
Tom Hacohen
270f765c91
Eina: Added Eina_Unicode.
...
SVN revision: 50532
2010-07-27 08:22:20 +00:00
Nicolas Aguirre
c024369336
Use INF only when it's defined. Fix a warning during eina compilation.
...
SVN revision: 50512
2010-07-26 16:17:11 +00:00
Cedric BAIL
25ffaac60f
* eina: actually add the directory too.
...
SVN revision: 50511
2010-07-26 15:58:18 +00:00
Cedric BAIL
07ad9d5139
* eina: add a mempool that just do one big malloc.
...
SVN revision: 50510
2010-07-26 15:52:43 +00:00
Cedric BAIL
21f5dec9d3
* eina: SPANK SPANK SPANK !
...
SVN revision: 50509
2010-07-26 09:31:40 +00:00
Mike Blumenkrantz
dd2dc39bff
this was supposed to go with the last commit...
...
SVN revision: 50502
2010-07-26 05:09:20 +00:00
Mike Blumenkrantz
f3ad2982b8
+eina_stringshare_vprintf for using a va_list
...
SVN revision: 50501
2010-07-26 05:09:02 +00:00
Brett Nash
8b858d5f7b
Use offsetof rather the manual pointer compares. C89 can be taken as given I
...
think. Also update authors to add Mwa, and fix copyright statement to be
useful. (Always list years, not ranges of years... longer, but covered by
international conventions).
SVN revision: 50500
2010-07-26 04:21:47 +00:00
Mike Blumenkrantz
e43175fa37
add doxy
...
SVN revision: 50491
2010-07-25 19:32:03 +00:00
Mike Blumenkrantz
7ff1096672
+eina_stringshare_printf
...
+eina_stringshare_nprintf
the long awaited printf functions for stringshare!
SVN revision: 50490
2010-07-25 19:18:26 +00:00
Mike Blumenkrantz
37de5b807f
+eina_error_msg_modify to change the error string of a registered error; preserves allocation state of message creation (errors created with static_register() will remain statically allocated)
...
SVN revision: 50484
2010-07-25 06:25:06 +00:00
Mike Blumenkrantz
846e224fd2
+eina_str_toupper for completion
...
SVN revision: 50483
2010-07-25 02:03:10 +00:00
Mike Blumenkrantz
2f183fa194
eina_hash_modify_or_add -> eina_hash_set
...
SVN revision: 50448
2010-07-23 13:04:21 +00:00
Mike Blumenkrantz
55f0882da4
revert previous. why would I do that in the first place?
...
SVN revision: 50407
2010-07-21 05:02:17 +00:00
Mike Blumenkrantz
50e621c5c2
remove tolower() from eina_str_tolower
...
SVN revision: 50404
2010-07-21 03:59:37 +00:00
Mike Blumenkrantz
489cae4eee
+eina_hash_modify_or_add to always add a value to the hash at the specified key
...
SVN revision: 50402
2010-07-21 03:15:39 +00:00
Cedric BAIL
9660c1c66f
* eina: fix tolower call.
...
SVN revision: 50366
2010-07-19 11:25:10 +00:00
Mike Blumenkrantz
f18e1899e5
+eina_str_tolower for lowercasing an entire string in one line
...
SVN revision: 50361
2010-07-19 01:56:42 +00:00
Mike Blumenkrantz
0c983ac8d8
dox fixes
...
SVN revision: 50355
2010-07-18 18:59:01 +00:00
Mike Blumenkrantz
c146935917
+eina_stringshare_replace_length to replace a stringshared string with a given length of another string
...
SVN revision: 50320
2010-07-18 07:39:21 +00:00
Mike Blumenkrantz
9dcd70a33d
and macro whoops
...
SVN revision: 50319
2010-07-18 06:48:08 +00:00
Mike Blumenkrantz
8e56225323
attribute whoops
...
SVN revision: 50318
2010-07-18 06:45:22 +00:00
Mike Blumenkrantz
02ef2d58e5
small patch from andmils in #e; fixes compile on freebsd
...
SVN revision: 50317
2010-07-18 06:38:23 +00:00
Mike Blumenkrantz
9276378041
+eina_strbuf_string_free to free string in strbuf without freeing strbuf
...
SVN revision: 50316
2010-07-18 06:21:50 +00:00
Mike Blumenkrantz
d3982d4b5c
+eina_hash_free_buckets to free buckets without freeing a hash
...
SVN revision: 50315
2010-07-18 04:24:24 +00:00
Mike Blumenkrantz
af32bf04f0
well this was just plain wrong
...
SVN revision: 50314
2010-07-18 03:55:53 +00:00
Mike Blumenkrantz
7d3bf122ac
on the fifth day the rasterman said "let there be docs for hash tables!"
...
but there were no docs for hash tables because k-s and cedric were busy writing new functions for hash tables. so rasterman again said "let there be docs for hash tables! really guys, I mean it this time!"
and this time there were docs, but these docs were incomplete and in some places vague and misleading.
these docs frustrated little discomfitor, who had just healed up after learning to ride his edje bicycle and was just starting to read. so he read all that he could, and then he started to write. he wrote his little heart out until finally there were more docs for hash tables like the rasterman had wanted.
then he went and got ice cream.
The End.
SVN revision: 50313
2010-07-18 03:29:10 +00:00
Lucas De Marchi
749cc7478c
Remove unneeded code with notnull.cocci script
...
This continues previous commit with more complex places, where it required
more than just removing some "ifs".
SVN revision: 50242
2010-07-14 02:20:30 +00:00
Vincent Torri
c7bb6d41f5
include sys/syslimits.h on mac os x for PATH_MAX and NAME_MAX
...
i really dislike having PATH_MAX in a header file...
SVN revision: 50231
2010-07-13 19:17:35 +00:00
Vincent Torri
84efd3507f
leak--, thanks cedric
...
SVN revision: 50225
2010-07-13 16:43:15 +00:00
Vincent Torri
971f0800ca
useless headers now
...
SVN revision: 50221
2010-07-13 13:57:21 +00:00
Vincent Torri
c97a897584
use Win32 native mutex on Windows. To use it, pass the following option
...
to configure:
--enable-win32-threads
By default, pthreads are used
SVN revision: 50220
2010-07-13 13:51:00 +00:00
Vincent Torri
9f425c5892
make it compile on Windows
...
SVN revision: 50219
2010-07-13 13:08:14 +00:00
Vincent Torri
fd59d59930
newline --
...
SVN revision: 50218
2010-07-13 12:49:37 +00:00
Vincent Torri
c012d2e7f6
fix compilation on Windows
...
SVN revision: 50179
2010-07-11 11:52:43 +00:00
Lucas De Marchi
442fe3afae
Add missing macros
...
Add missing EINA_SAFETY_ON_NULL_GOTO and define all the *GOTOs macros when
safety checks are disabled.
SVN revision: 50138
2010-07-09 03:27:04 +00:00
Lucas De Marchi
b07f70b85c
Update doc of eina_str_split functions
...
Mention that they can return NULL in case malloc() fails.
SVN revision: 50127
2010-07-08 15:08:31 +00:00
Lucas De Marchi
62391791bf
Move ifdefs
...
Much better and readable, with less code and the same result. Moreover this
makes some parsers not to kill themselves.
SVN revision: 50069
2010-07-06 17:20:30 +00:00
Lucas De Marchi
93f03880bd
Do not purify what's impure
...
Two tests were failing, but no more.
SVN revision: 50067
2010-07-06 15:50:15 +00:00
Gustavo Sverzut Barbieri
5b03bc86ec
add some gcc modifiers: non-null args, warn unused results and malloc.
...
SVN revision: 50066
2010-07-06 15:48:24 +00:00
Gustavo Sverzut Barbieri
ed15713785
add eina_file_direct_ls()
...
Similar to eina_file_ls(), but useful when one wants to apply some
filters to the names before using them as it provides sizes of the
whole path and basename, index of the basename inside the path, dirent
structure for reference (skip directories, etc) and last but not
least, it is faster as it does not stringshare or even builds the full
path at each iteration, instead it keeps the invariant prefix
untouched and just copy the filename.
All in all this is a faster version of eina_file_ls(), use it as
possible as it will avoid overheads.
SVN revision: 50065
2010-07-06 15:45:12 +00:00
Cedric BAIL
d4059c7107
* eina: rename ecore_file_ls_iterator to eina_file_ls.
...
SVN revision: 50002
2010-07-02 17:23:05 +00:00
Brett Nash
977221953e
Stringshare doesn't have a 64k limit. Don't say it does.
...
SVN revision: 49992
2010-07-02 08:56:09 +00:00
Gustavo Lima Chaves
e868c81b30
Documentation fix for eina iterators.
...
SVN revision: 49951
2010-06-30 18:41:16 +00:00
Vincent Torri
b131dfc65c
export symbols on Windows
...
SVN revision: 49915
2010-06-28 05:15:44 +00:00
Vincent Torri
d2e2f572a1
export symbols on Windows
...
SVN revision: 49913
2010-06-28 05:11:28 +00:00
Vincent Torri
ae6a698ea1
on Windows, path delemiter is backslash and not slash
...
SVN revision: 49912
2010-06-28 05:06:28 +00:00
Carsten Haitzler
89baaff057
and final post snap - next releasename
...
SVN revision: 49903
2010-06-27 14:06:10 +00:00
Carsten Haitzler
83b36be7a3
snap+release
...
SVN revision: 49899
2010-06-27 13:45:27 +00:00
Carsten Haitzler
e80d4cb49f
Snapshot eina
...
SVN revision: 49890
2010-06-27 13:32:37 +00:00
Vincent Torri
f5d7f3ea1a
printf modifiers are different on Windows
...
SVN revision: 49876
2010-06-26 14:26:54 +00:00
Cedric BAIL
cf128ea0e4
* eina: improve quadtree to support more stuff needed by evas.
...
SVN revision: 49784
2010-06-21 13:17:09 +00:00
Vincent Torri
61753a99a6
fix eina_convert examples
...
SVN revision: 49774
2010-06-20 18:39:35 +00:00
Cedric BAIL
a1bfc834d5
* configure.ac: take inept translation a little bit into account.
...
SVN revision: 49743
2010-06-18 14:45:42 +00:00
Vincent Torri
9ac5d78958
fix doc
...
SVN revision: 49740
2010-06-18 07:08:22 +00:00
Vincent Torri
5e09673fce
typo
...
SVN revision: 49736
2010-06-17 21:27:41 +00:00
Gustavo Sverzut Barbieri
ddb8c95fa9
SVN_REPO_PATH envvar during autoconf to use svnversion in there.
...
Some systems, like the Gentoo, copy the svn contents somewhere before
doing the autoconf, this may result in lack of .svn and thus minor
version "0".
This patch introduces the $SVN_REPO_PATH to say where the svn checkout
containing the ".svn" directory is.
SVN revision: 49594
2010-06-09 18:22:47 +00:00
Carsten Haitzler
1520bad01b
restore after snap/release
...
SVN revision: 49540
2010-06-06 17:43:03 +00:00
Carsten Haitzler
feda128634
Snapshot eina
...
SVN revision: 49531
2010-06-06 17:26:34 +00:00
Carsten Haitzler
f0eee2d260
post-snap anr release.. reset svn back.. this time for real.
...
SVN revision: 49526
2010-06-06 17:17:52 +00:00
Carsten Haitzler
ad811694e8
Snapshot eina
...
SVN revision: 49514
2010-06-06 16:42:27 +00:00
Carsten Haitzler
25ff64e960
post release - move relname to pre-svn again.
...
SVN revision: 49506
2010-06-06 16:23:16 +00:00
Carsten Haitzler
a17806f9ca
Snapshot eina
...
SVN revision: 49495
2010-06-06 16:07:53 +00:00
Vincent Torri
23062efb81
VMIC not defined anymore at configure time
...
SVN revision: 49476
2010-06-06 06:26:12 +00:00
Carsten Haitzler
a4769c42cb
change svnversion shell goop to nuke sed and just use tr to delete
...
unwanted goop.
SVN revision: 49429
2010-06-04 01:04:24 +00:00
Iván Briano
6600f0c43f
Let git-svn users get the right revision number to be used as version.
...
SVN revision: 49407
2010-06-03 07:40:54 +00:00
Cedric BAIL
17151d4fcf
* eina: remove duplicate declaration of MODULE_ARCH.
...
SVN revision: 49370
2010-06-01 14:23:23 +00:00
Carsten Haitzler
f1e19253e6
nopw svn revision works again.
...
SVN revision: 49344
2010-05-31 03:12:45 +00:00
Carsten Haitzler
17dfab359b
fix - if no svn tree, then it will pretend to be a release.
...
SVN revision: 49343
2010-05-31 01:59:22 +00:00
Carsten Haitzler
4858dabb50
fix release modules
...
SVN revision: 49278
2010-05-29 07:31:52 +00:00
Carsten Haitzler
9b41314165
remove semi-colon
...
SVN revision: 49272
2010-05-29 06:28:38 +00:00
Carsten Haitzler
02503dd152
eina gets version thing ala eet.
...
SVN revision: 49267
2010-05-29 03:05:04 +00:00
Vincent Torri
9c210617f7
declare variables at the beginning of the block
...
SVN revision: 49254
2010-05-28 19:04:44 +00:00
Vincent Torri
247674b26c
do not declare inlined functions in the source file,
...
fix a bit the doc of inlined functions
SVN revision: 49253
2010-05-28 19:03:26 +00:00
Vincent Torri
f446a5b9f9
vasprintf is not declared in mingw too
...
SVN revision: 49252
2010-05-28 18:59:43 +00:00
Vincent Torri
52e3f2d0ab
do not declare _eina_small_share twice
...
SVN revision: 49251
2010-05-28 18:58:49 +00:00
Vincent Torri
440fb47e30
fix pthread support with mingw
...
SVN revision: 49250
2010-05-28 18:57:19 +00:00
Brett Nash
2677b8d493
Minor doc update: It's nice when examples compile without warnings ;-)
...
SVN revision: 49091
2010-05-21 09:48:46 +00:00
Mike Blumenkrantz
fa5fa3c7e7
comment out nonexistent functions
...
SVN revision: 48922
2010-05-16 20:17:07 +00:00
Cedric BAIL
bb85e11b50
* eina: don't shadow global variable.
...
SVN revision: 48614
2010-05-04 16:26:29 +00:00
Cedric BAIL
197a9a879e
* eina: use previous cached result in quadtree.
...
SVN revision: 48607
2010-05-04 14:42:13 +00:00
Cedric BAIL
9d8b1da4cb
* eina: make quadtree faster.
...
SVN revision: 48575
2010-05-03 13:17:52 +00:00
Vincent Torri
9abb2c1357
* link pthread and spinlock code instead of just compiling
...
* POSIX pthread spinlock may be unimplemented, so don't
exit with an error if they are not available
SVN revision: 48537
2010-05-02 05:19:00 +00:00
Vincent Torri
240395f366
Some libc have a pthread that declares spinlock functions,
...
but does not define them. So the check now links the test code.
SVN revision: 48524
2010-05-01 20:37:56 +00:00
Vincent Torri
0cc286508a
indentation and comments
...
SVN revision: 48522
2010-05-01 20:35:16 +00:00
Cedric BAIL
6caac50006
* eina: improve QuadTree API.
...
SVN revision: 48482
2010-04-30 17:04:28 +00:00
Lucas De Marchi
c98e00eec0
Define new error handling macros
...
EINA_SAFETY_ON_TRUE_GOTO and EINA_SAFETY_ON_FALSE_GOTO are now defined
to ease error handling. Functions might need to take actions before
returning upon safety checks fail.
SVN revision: 48478
2010-04-30 14:54:05 +00:00
Cedric BAIL
d239b6c524
* eina: oops forgotten file.
...
SVN revision: 48425
2010-04-29 17:30:18 +00:00
Cedric BAIL
9367b5f7c7
* eina: Add first version of a Quad Tree data type.
...
NOTE: consider the API experimental and subject to change.
SVN revision: 48424
2010-04-29 17:21:14 +00:00
Cedric BAIL
49c0a1e6e2
* eina: add tests for eina fixed point sin/cos functions.
...
SVN revision: 48423
2010-04-29 17:08:24 +00:00
Carsten Haitzler
87efa72125
apparently fbsd is unaware of expr substr...
...
SVN revision: 48275
2010-04-24 14:31:23 +00:00
Carsten Haitzler
36bd7d71e0
amd64 - apparently fbsd is still living back in that past where 64bit was amd
...
only... :)
SVN revision: 48272
2010-04-24 14:05:05 +00:00
Michael Jennings
c3f93a9ebd
After discussing with raster, this is what he requested for the spec
...
files: using the SVN revision instead of the datestamp. Other
methods can still be used, however, by adding (e.g.):
--define "_rel 0.`date +%Y%m%d`"
to the rpmbuild command line.
Other spec files will need similar changes. This is just the first
few.
SVN revision: 48099
2010-04-18 07:03:09 +00:00
Cedric BAIL
e5abb9bfbe
* eina: fix rounding issue with different size of fixed point.
...
SVN revision: 48053
2010-04-16 14:32:18 +00:00
Vincent Torri
3939026032
and add mempool source files...
...
SVN revision: 48018
2010-04-15 07:06:50 +00:00
Vincent Torri
741a9cf6da
Patch Eina if Visual Studio 2005 is used. I fear that
...
it will be a pain to support...
SVN revision: 48017
2010-04-15 07:01:29 +00:00
Vincent Torri
09a2e65378
forgot a semicolon
...
SVN revision: 48016
2010-04-15 06:53:23 +00:00
Vincent Torri
c76d3cea37
remove useless semicolon
...
SVN revision: 48015
2010-04-15 06:28:22 +00:00
Vincent Torri
16b01952a9
include Evil.h with vc++ for vasprintf
...
SVN revision: 48014
2010-04-15 06:16:59 +00:00
Vincent Torri
1e8c976b28
include private headers after standard headers
...
SVN revision: 48013
2010-04-15 06:13:08 +00:00
Vincent Torri
c2b764c90a
* link against iconv.lib
...
* staically link the modules with VS8
SVN revision: 48012
2010-04-15 06:03:37 +00:00
Tiago Rezende Campos Falcao
8a8ef913c8
Using value returned from vasprintf, and removed warnings
...
SVN revision: 47967
2010-04-12 18:30:07 +00:00
Vincent Torri
8f36c8075e
explicit cast
...
SVN revision: 47907
2010-04-10 23:23:26 +00:00
Tiago Rezende Campos Falcao
b7e410d621
Adding strbuf printfs
...
SVN revision: 47877
2010-04-09 15:56:20 +00:00
Vincent Torri
f2b9c65adb
define strcasecmp() as stricmp() for vc++, remove
...
useless include of Evil.h (was included for strcasecmp
when vc++ is used)
SVN revision: 47741
2010-04-03 21:29:01 +00:00
Vincent Torri
4bce4509dc
remove cegcc compiler support
...
SVN revision: 47740
2010-04-03 21:23:28 +00:00
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
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