Commit Graph

791 Commits

Author SHA1 Message Date
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
Vincent Torri 64f1c415e2 update efl_fnmatch m4 macro
SVN revision: 45851
2010-02-03 20:46:32 +00:00
Vincent Torri 88d43e8435 use efl_fnmatch macro
SVN revision: 45847
2010-02-03 20:13:56 +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 36ef85219e if someone pass --enable-default-mempool, pass_through will be used
in code, but not installed. So it that option is passed, chained_mempool
is disabled,  and pass_through is enabled and linked statically


SVN revision: 45755
2010-01-31 14:52:16 +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 bc31ff5423 fix mingw flags
SVN revision: 45668
2010-01-28 17:13:07 +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
Vincent Torri 4405fdfed1 * make chained mempool static by default
* disable other by default

if you experience an problem, please report in that thread



SVN revision: 45593
2010-01-26 15:30:40 +00:00
Vincent Torri 987757058f add mempool namespace in configure help
SVN revision: 45582
2010-01-26 11:22:48 +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
Vincent Torri c3c03b9c5b * more portable shell tests
* better m4 code


SVN revision: 45540
2010-01-24 23:04:24 +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 9bf52134e7 add missing m4 files in tarballs
SVN revision: 45519
2010-01-24 11:25:19 +00:00
Vincent Torri 5dbf60bd8f use m4 macro ti check compiler flag
patch by Lutin (who also wrote the m4 macro, i forgot that
in the previous commit)


SVN revision: 45518
2010-01-24 11:13:23 +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
Vincent Torri a165049986 use $libdir and not $exec_prefix/lib, as the user can set
$libdir with configure


SVN revision: 45227
2010-01-16 16:35:52 +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