Commit Graph

916 Commits

Author SHA1 Message Date
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
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
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 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
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 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
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 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 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 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
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 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
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 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
Sebastian Dransfeld 3d6a752111 Add simple test for strbuf
Need more

SVN revision: 46024
2010-02-09 21:05:47 +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
Sebastian Dransfeld f285bc7ae9 And since resize adds + 1 to size, grow must do to
SVN revision: 45969
2010-02-07 19:31:26 +00:00
Sebastian Dransfeld 216aabeaa0 And add () for increased safety
SVN revision: 45968
2010-02-07 19:30:01 +00:00
Sebastian Dransfeld 95d903dab7 And correct return type
SVN revision: 45967
2010-02-07 19:24:28 +00:00
Sebastian Dransfeld 69368ae6bd Fix return values
If we don't need to grow, return EINA_TRUE.
Use EINA_TRUE and EINA_FALSE where possible.

SVN revision: 45966
2010-02-07 19:22:04 +00:00
dieb 470188ca4f Eina: fix compilation on strbuf.
SVN revision: 45965
2010-02-07 17:33:26 +00:00
Sebastian Dransfeld 0cead88ce8 Don't change size, since we don't realloc
Thanks Peter

SVN revision: 45964
2010-02-07 12:23:27 +00:00
Sebastian Dransfeld 5408dedfe7 Don't shrink when we append
SVN revision: 45963
2010-02-07 12:21:28 +00:00
Sebastian Dransfeld 5b5107471f Work with escaped string
SVN revision: 45962
2010-02-07 12:21:07 +00:00
Sebastian Dransfeld 2587c28d9a Add eina_strbuf_reset
Function to reset the internal string, so we can reuse the allocated
mem.

SVN revision: 45952
2010-02-06 21:43:22 +00:00
Sebastian Dransfeld 522a0ab1ab Add eina_strbuf_append_escaped for edje
SVN revision: 45950
2010-02-06 21:43:02 +00:00
Sebastian Dransfeld 72fccca0eb Add eina_str_escape
SVN revision: 45949
2010-02-06 21:42:51 +00:00
Sebastian Dransfeld da1b1ee801 Add shrink buffer code
SVN revision: 45946
2010-02-06 20:42:14 +00:00
Sebastian Dransfeld f99d9ccf4b 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

SVN revision: 45945
2010-02-06 20:42:03 +00:00
Sebastian Dransfeld 4a1ac380b1 Add functions to match evas strbuf
SVN revision: 45943
2010-02-06 20:41:43 +00:00
Sebastian Dransfeld ac60497dbf EINA_ARG_NONNULL
SVN revision: 45942
2010-02-06 20:41:32 +00:00
Sebastian Dransfeld 99536f0736 Include own header to be sure prototypes match
SVN revision: 45941
2010-02-06 20:41:17 +00:00
Carsten Haitzler 75ea198b66 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)



SVN revision: 45832
2010-02-03 15:23:32 +00:00
Vincent Torri e373b2c376 * remove useless iconv_cflags
* put iconv_libs to the correct libtool var


SVN revision: 45794
2010-02-02 06:48:52 +00:00
Vincent Torri b413db68cd * fix configure.ac
* remove debug



SVN revision: 45793
2010-02-02 06:18:59 +00:00
Sebastian Dransfeld eb29a86306 copy ecore_txt_convert to eina_str_convert
SVN revision: 45790
2010-02-02 04:49:38 +00:00
Vincent Torri 9b5ea1110b eina_str:
* return Eina_Bool instead of int when necessary
 * improve documentation
 * formatting


SVN revision: 45753
2010-01-31 12:27:41 +00:00
Sebastian Dransfeld 315c920f68 EAPI
SVN revision: 45739
2010-01-30 22:02:08 +00:00
Vincent Torri 4da59fea04 fix header inclusion
SVN revision: 45655
2010-01-28 10:03:31 +00:00
Sebastian Dransfeld c6ca24216c Add EINA_MAGIC to strbuf
SVN revision: 45651
2010-01-27 20:48:27 +00:00
Sebastian Dransfeld 436249c412 Move ecore_str and ecore_strbuf to eina
SVN revision: 45650
2010-01-27 20:47:47 +00:00
Carsten Haitzler 735ad48c39 eina - does modules like the rest of efl, so it's able to be installed with
multiple versions at the same time. eventually will neeed to also include
major number in release name too.



SVN revision: 45594
2010-01-26 15:54:28 +00:00
Sebastian Dransfeld 0ba3822213 Add patch from bug #479
Eina installs its modules in /usr/lib/eina/mp/<module>.so, which makes it impossible to install two different versions of eina at the same time. Please consider using something to make this path specific to a particular release of eina, just as you do for the include files.

SVN revision: 45562
2010-01-25 19:07:52 +00:00
Christopher Michael 2517fbeb35 Fix remaining "shadowed declaration" warnings.
SVN revision: 45528
2010-01-24 19:59:35 +00:00
Christopher Michael 029111a9b8 Use different variable names. This was giving "shadowed declarations"
warnings during compile.



SVN revision: 45527
2010-01-24 19:51:22 +00:00
Boris Faure c6f9892e63 Fix some more warnings caused by -Wshadow
SVN revision: 45522
2010-01-24 13:53:32 +00:00
Vincent Torri b9cbdd4a7d make the ecore tests stand alone (no ecore installation needed)
so no cyclic dependency



SVN revision: 45512
2010-01-24 10:54:07 +00:00
Cedric BAIL a9a3813966 * eina: Allow compilation with -Wshadow.
Patch from Albin Tonerre.


SVN revision: 45497
2010-01-23 19:53:27 +00:00
Cedric BAIL 5049832c3a * eina: Add more tests.
SVN revision: 45326
2010-01-19 13:51:53 +00:00
Mikhail Gusarov 4f7ae8764a eina: fix eina_module_list_get prototype: 'path' argument can be NULL
SVN revision: 45246
2010-01-17 06:01:20 +00:00
Vincent Torri 52fa8ddd47 get the shared library extension name from the autotools, as
it is more portable


SVN revision: 45229
2010-01-16 16:46:39 +00:00
Vincent Torri e2a2448461 basename() can modify its argument, so get a copy first
SVN revision: 45228
2010-01-16 16:41:24 +00:00
Sebastian Dransfeld a1270e5796 Remove unused defines
SORT_MIN and SORT_MAX are not used in eina, and will result in errors if
used. eina_list_sort(list, EINA_SORT_MAX, ...) will not give the
expexted result.

SVN revision: 45222
2010-01-16 13:54:38 +00:00
Cedric BAIL 9490a51ff6 * eina: Fix tests suite.
SVN revision: 45189
2010-01-15 16:18:29 +00:00
Vincent Torri 990576cd0e news is a valid stringshare
SVN revision: 45095
2010-01-13 21:20:32 +00:00
Cedric BAIL 9422a4c710 * eina: Remove warning.
SVN revision: 45066
2010-01-12 17:33:18 +00:00
Jorge Luis Zapata Muga f3fb3dea17 + [Eina] API change. eina_module_list_flush() -> eina_module_list_free()
as we are on the modules context not the array.
  All the referenced projects are changed too. Remember that the list_free()
  already calls the unload() on each module so no need to call list_unload()



SVN revision: 44978
2010-01-08 12:22:23 +00:00
Jorge Luis Zapata Muga 6183c3716e + Add the efl-research buddy allocator here
SVN revision: 44976
2010-01-08 12:10:14 +00:00
Gustavo Sverzut Barbieri db52717d88 Fix compile on GNU/Hurd, by Lutin.
SVN revision: 44898
2010-01-04 21:50:31 +00:00
Cedric BAIL fe0b8b4b36 * eina_benchmark: Little cleanup.
SVN revision: 44831
2009-12-31 10:26:41 +00:00
Vincent Torri 8e85a71f03 Simplify the use of eina_benchmark:
* Free the inlined list returned by one (or several) calls of
   eina_benchmark_run() automatically in eina_benchmark_free()
   instead of letting the user doing it.

 * Update tutorial and benchmark binary accordingly


SVN revision: 44830
2009-12-31 09:17:28 +00:00
Vincent Torri 09d1853ea0 * finish benchmark tutorial
* move internal _init and _shutdown functions in the Global
   part of the code, as it is where they belong
 * fix minor documentation stuff


SVN revision: 44730
2009-12-27 08:45:30 +00:00
Vincent Torri 8c14ca031e minor fixes
SVN revision: 44720
2009-12-25 16:22:13 +00:00
Vincent Torri c9975bc818 add benchmark tutoriel
SVN revision: 44719
2009-12-25 11:59:40 +00:00
Vincent Torri 0fda2ab7c8 use new spinlock detection
SVN revision: 44718
2009-12-25 11:30:41 +00:00
Vincent Torri a39d637027 support of Debian/kFreeBSD (FreeBSD using the glibc on top of a FreeBSD kernel)
SVN revision: 44597
2009-12-20 10:02:41 +00:00
Vincent Torri 29b4cccab6 include Evil.h so that getenv is declared on Windows CE
SVN revision: 44563
2009-12-19 10:30:49 +00:00
Cedric BAIL 63d651b7ad * eina: Improve precision of f32p32 sinus/cosinus.
SVN revision: 44322
2009-12-09 13:03:23 +00:00
Vincent Torri 04a156cda0 useless variable if pthread is not used
SVN revision: 44319
2009-12-09 08:34:09 +00:00
Vincent Torri efc50c5541 including Evil.h here cause big troubles with vc++ and EAPI. So
typedef here the needed types

SVN revision: 44318
2009-12-09 08:25:58 +00:00
Vincent Torri 63610435c3 add always config.h in source file so that EAPI is correctly defined,
especially on Windows (otherwise, ICE in gcc... and vc++ is not
happy at all)

SVN revision: 44317
2009-12-09 08:23:34 +00:00
Vincent Torri abe9190501 fix parenthesis order. Thanks, vc++ !! :p
SVN revision: 44316
2009-12-09 08:20:37 +00:00
Carsten Haitzler 1f5c54b2f4 shut up llabs!
SVN revision: 44312
2009-12-09 07:25:41 +00:00
Cedric BAIL 274ab1e01e * eina: Add sin and cos fixed point fonction.
SVN revision: 44287
2009-12-08 18:30:41 +00:00
Cedric BAIL b6183fe571 * eina: Fix negativ case and handle div with more accuracy.
SVN revision: 44281
2009-12-08 16:02:10 +00:00
Cedric BAIL 78d547c505 * eina: Fix precision of eina_f32p32_div.
SVN revision: 44252
2009-12-07 17:48:40 +00:00
Vincent Torri cee693572e * Fix compilation with vc++
* Fix Visual Studio project files

SVN revision: 44250
2009-12-07 17:15:28 +00:00
Cedric BAIL 759426ceda * eina: Fix atofp when exponent is negativ.
SVN revision: 44244
2009-12-07 13:08:16 +00:00
Cedric BAIL 5a5d81812c * eina_fp: Fix rounding with Eina_F32p32 multiplaction, add
operation to multiply a FP with an int.


SVN revision: 44238
2009-12-07 09:27:53 +00:00
Cedric BAIL 1f1fac5a61 * eina: Add more test.
Code covered by all tests :
	     	     Found   Hit  Coverage
	Lines:	     4503    3671 81.5 %
	Functions:   392     347  88.5 %


SVN revision: 44183
2009-12-04 10:09:08 +00:00
Cedric BAIL 8cc84b4f8b * eina: Add more tests specific to rectangle.
SVN revision: 44182
2009-12-04 09:39:23 +00:00
Cedric BAIL 1d0efd8c18 * eina: Add more test. eina_tiler and eina_rectangle need some more.
SVN revision: 44176
2009-12-03 18:17:37 +00:00
Gustavo Sverzut Barbieri 4e817e8ecd eina_module: more constness.
Thanks to Fabiano Fidencio for spotting those.



SVN revision: 43921
2009-11-23 13:24:48 +00:00
Gustavo Sverzut Barbieri d2fd0b36e0 eina_module_find: constness and gcc attribute.
Mark both array and module as const as we'll not modify them anyhow
inside this function.

Also mark this function as pure, so gcc will know how to optimize
multiple calls of it. Not that important for this function, but
doesn't hurt either.



SVN revision: 43918
2009-11-23 13:20:34 +00:00
Cedric BAIL ffb0bf8830 * eina_module: Add eina_module_find. Thanks to Fabiano Fidêncio <fidencio@profusion.mobi>.
SVN revision: 43847
2009-11-20 20:46:24 +00:00
Cedric BAIL 899b488741 * eina: Now it's possible set a level when eina should abort on log.
SVN revision: 43669
2009-11-13 17:52:43 +00:00
Gustavo Sverzut Barbieri 7df346f50e fix stringshare of small strings.
_eina_stringshare_small_bucket_find() was receiving the plength with
size -1 since the first character is the same, but inside it was not
doing the same, thus it was always failing the first test based on
size.



SVN revision: 43634
2009-11-12 19:41:02 +00:00
Raoul HECKY 279e0dde28 Initialize value for correct counting of # cpu on macosx
SVN revision: 43571
2009-11-09 10:39:49 +00:00
Raoul HECKY 7eb75cbd63 Add __MACH__ and __APPLE__ guards to compile on macosx
SVN revision: 43568
2009-11-09 09:07:10 +00:00
Sebastian Dransfeld a60aeb07a3 function defined as void, don't return a value
SVN revision: 43535
2009-11-08 19:52:31 +00:00
Vincent Torri 12f9e2f515 fix compilation on OpenBSD
SVN revision: 43516
2009-11-07 19:44:39 +00:00
Vincent Torri 2ccaf85b59 fix compilation of eina_amalgamation.c on Windows
SVN revision: 43513
2009-11-07 16:09:58 +00:00
Vincent Torri 7c24994f18 fix dist/distcheck rule
SVN revision: 43474
2009-11-06 01:02:35 +00:00
Vincent Torri a4d3d53e0d disable amalgamation by default
SVN revision: 43434
2009-11-03 16:52:45 +00:00
Jonathan Atton cbe78d32f2 Eina log : check main thread in eina_log_threads_shutdown
SVN revision: 43415
2009-11-02 10:08:57 +00:00
Vincent Torri 199400bc7d remove useless $(builddir)/ (also confirmed by a autoconf dev),
as anyway, '$(builddir)' is always '.' make distcheck passes.

Thanks to cantona who reported it.


SVN revision: 43401
2009-11-01 21:00:22 +00:00
Jonathan Atton 9191a1dfa3 Eina: renawe _threads_activated for amalgation
SVN revision: 43400
2009-11-01 20:13:12 +00:00
Jonathan Atton 4bfc091f41 Eina : add a prefix to STRINGSHARE_LOCK and LOG_LOCK
SVN revision: 43399
2009-11-01 20:09:26 +00:00
Jonathan Atton 6ea6dc0856 Eina : now eina stringshare is thread safe if eina_threads_init() is called. Eina log which was thread safe is now thread safe only if the previous functions is called
SVN revision: 43398
2009-11-01 19:50:18 +00:00
Christopher Michael af793b05d5 Patch to allow a quieter eina when using eina_log in your own libs/apps.
Approved by k-s.

Added some doxy to describe the new env variable. 
(Eina authors may want to reword this...up to you)



SVN revision: 43326
2009-10-28 12:48:04 +00:00
Jonathan Atton cc1863fc96 Eina: add eina_list_split_list()
SVN revision: 43307
2009-10-27 10:26:20 +00:00
Carsten Haitzler b2228247e1 warning--
SVN revision: 43259
2009-10-25 08:57:41 +00:00
Carsten Haitzler f78bded776 warning--
SVN revision: 43258
2009-10-25 08:52:47 +00:00
Carsten Haitzler ca7859168b shh warning
SVN revision: 43257
2009-10-25 08:45:36 +00:00
Iván Briano 044f05ca69 Fix docs for hash_free
SVN revision: 43237
2009-10-24 04:30:52 +00:00
Cedric BAIL 96437266c8 * eina: Fix EINA_LIST_REVERSE_FOREACH_SAFE typo from Gustavo Chaves.
SVN revision: 43186
2009-10-21 19:02:52 +00:00
Vincent Torri 568f723401 Add some more headers at the top of eina_amalgamation.c.
Fix compilation on Windows CE


SVN revision: 43054
2009-10-13 17:14:50 +00:00
Cedric BAIL a9413206ef * eina_hash: First parameter could be NULL.
SVN revision: 43053
2009-10-13 17:11:58 +00:00