Commit Graph

1707 Commits

Author SHA1 Message Date
Patryk Kaczmarek b487866e75 From: Patryk Kaczmarek <patryk.k@samsung.com>
Firstly, I want to say hallo to everyone, it is my first message to
that
   list.
   
   
      I had prepared several patches for eina module. One of them fix
problem with
   you are having highly discussion, checking if function arguments
are not
   NULL.
   
   
      What’s more:
      
      
         -           I  had  proposed patches for eina_tiler and
eina_rectangle
   functions,  now below zero values ( distance and coordinstes ) are
not
   acceptable.
   
      -          Documentation for eina list specified, it should be
more clear
   now and eina stringshare_strlen fixed (NULL had length 0 ).
   
      -          eina_convert_atofp wrong return value if fp is NULL
(EINA_TRUE
   instead of EINA_FALSE)
   
   
      I had also attached diff to AUTHORS, ChangeLog and NEWS.
      


SVN revision: 76498
2012-09-12 07:33:36 +00:00
Cedric BAIL 704cfbe1b5 eina: be green and recycle memory needed by Eina_Rbtree iterator.
SVN revision: 76425
2012-09-11 03:37:10 +00:00
Stefan Schmidt 0bfdc3bbf4 eina/module: Rephrase warnings message on module init.
Thsi will also fail if the symbol is there but the init function just fails
to deliver EINA_TRUE. After to much digging and wondering why dlsymb and
dlopen don't behave Daniel was able to point out to me that this warning also
gets shown if init fails.

Adjust the warning message to avoid others spending to much time on this as well.

SVN revision: 76409
2012-09-10 14:09:48 +00:00
Vincent Torri b8b93194d0 Eina: add EINA_UNUSED on Windows. Should be in eina_types.h instead
SVN revision: 76341
2012-09-08 09:15:17 +00:00
Daniel Juyung Seo f4cc630f3a eina eina_list.h: Fixed documentation. Special thanks to Sungho Kwak for spotting this out.
SVN revision: 76276
2012-09-07 05:53:36 +00:00
Daniel Juyung Seo f99fac7de2 eina eina_convert.c: Fixed formatting.
SVN revision: 76269
2012-09-07 02:39:25 +00:00
Cedric BAIL 00ac5eaba9 eina: bug fixes by Sungho Kwak.
Return EINA_FALSE on NULL input as we can't produce valid result.


SVN revision: 76267
2012-09-07 02:32:59 +00:00
Lucas De Marchi 08dbadd3c1 eina: Improve doc of Eina_Inlist macros
What a misleading doc we had in these macros!! Improve it:

 * Rename the parameter from "l" to "it", since it's not an Eina_Inlist that we
   are expecting, but rather its container.
 * Better explain each parameter... "second list" is not so good to document
   "list2" param
 * Add doc where it was missing

Finally, add Changelog for the fix in EINA_INLIST_FOREACH_SAFE



SVN revision: 76156
2012-09-04 22:56:37 +00:00
Lucas De Marchi 45a791dfa1 eina: Fix EINA_INLIST_FOREACH_SAFE macro
EINA_INLIST_FOREACH_SAFE is very broken and it only works by luck, depending on
the __inlist field being the first one in the struct. Until now.

This commit makes the following snippet to work:


	#include <Eina.h>

	typedef struct _data {
	   char *name;
	   EINA_INLIST;
	} data;

	int
	main()
	{
	   Eina_Inlist *inlist = NULL, *inlist_safe;
	   data *reg, *d;

	   reg = malloc(sizeof(data));
	   inlist = eina_inlist_append(inlist, EINA_INLIST_GET(reg));

	   EINA_INLIST_FOREACH_SAFE(inlist, inlist_safe, d)
	     {
		printf("%p\n", d);
		inlist = eina_inlist_remove(inlist, EINA_INLIST_GET(d));
		free(d);
	     }

	   return 0;
	}


 Patch-by: José Roberto de Souza <zehortigoza@profusion.mobi>



SVN revision: 76150
2012-09-04 22:20:25 +00:00
Tom Hacohen 89413ab06e Eina magic: add EINA_LIKELY.
This should improve performance as we use magic checks everywhere and it
lets the compiler do better optimisations.

SVN revision: 76113
2012-09-04 08:00:27 +00:00
Carsten Haitzler 0e77364887 update header #defined versions to 1.8 to make sure new apis are used
in e17 only with ifdefs.



SVN revision: 75994
2012-09-03 09:55:34 +00:00
Tom Hacohen 72010bf66d Eina bench: Added eina-bench-cmp to compare benchmarks.
This is just an adaptation of expedite-cmp to work nicely with eina bench.
This is useful for comparing benchmarks to spot regressions/improvements.

SVN revision: 75939
2012-09-02 07:14:20 +00:00
Carsten Haitzler de76a70b6b this breaks lots of stuff. terminology, e.... i got yself a blank
screen at 12:45am thanks to this. rvrt. :)



SVN revision: 75795
2012-08-28 15:45:57 +00:00
Mike Blumenkrantz 30c27d515c null checks for str split
SVN revision: 75787
2012-08-28 12:37:02 +00:00
Carsten Haitzler 1475fb3586 update @version's
SVN revision: 75739
2012-08-27 09:51:57 +00:00
Leandro Dorileo 47e8432635 Eina: upgrade eina_inarray_setup to eina_inarray_step_set
Eina model was forgotten since it's been disabled, there's also a
remaining doc reference to the old eina_inarray_setup() function;

Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 75686
2012-08-24 21:03:07 +00:00
Vincent Torri ad096efc93 eina_file : fix functions to behave with paths containing '/' or '\' on Windows
SVN revision: 75604
2012-08-23 08:25:53 +00:00
Vincent Torri 106997e132 eina: don't rely on the order of the declaration of the variables
SVN revision: 75517
2012-08-22 06:57:55 +00:00
Vincent Torri 386f4736f5 Eina: fix possible mem leak
SVN revision: 75441
2012-08-20 06:18:21 +00:00
Vincent Torri 3e07b05cd9 Eina: formatting
SVN revision: 75440
2012-08-20 06:16:22 +00:00
Daniel Juyung Seo 30abba2a9c eina: Use more @note notation. Fixed more wrong documentation.
SVN revision: 75280
2012-08-15 04:32:05 +00:00
Daniel Juyung Seo 206edf4538 eina eina_stringshare.h: Use @note instead of just saying 'Note that ...'. Thanks vtorri.
SVN revision: 75279
2012-08-15 04:26:06 +00:00
Daniel Juyung Seo a7372f8cb5 eina eina_stringshare.c: Fixed formatting while reading the code.
SVN revision: 75278
2012-08-15 04:17:37 +00:00
Daniel Juyung Seo 0a1f4d03db eina eina_stringshare.h: Fixed wrong documentation pointed out by Ryuan.
SVN revision: 75277
2012-08-15 04:14:24 +00:00
Lucas De Marchi 82ee083b25 eina: add EINA_SENTINEL to help use of variadic functions
Certain types of variadic functions use NULL as the last argument instead of a
string format (printf-like). Functions like these are: execl and execlp.

We are in feature freeze, but I believe this is small and simple enough to slip
in with no headaches. These functions are being used in the new edbus library
and it would be good to have it supported in eina now.



SVN revision: 75271
2012-08-14 20:58:36 +00:00
Carsten Haitzler aef32ed6d3 more updates for 1.7.0 alpha.
SVN revision: 75095
2012-08-10 10:51:17 +00:00
Carsten Haitzler fd9578514e leaklet--
SVN revision: 74867
2012-08-04 04:14:22 +00:00
Gustavo Sverzut Barbieri 2e523df978 thanks vtorri :-)
SVN revision: 74750
2012-08-01 17:15:10 +00:00
Gustavo Sverzut Barbieri bb8b7938f0 improve docs about eina_log_domain_level_check().
SVN revision: 74744
2012-08-01 15:46:55 +00:00
Gustavo Sverzut Barbieri b2a17e8434 ops, last minute api change was not updated...
SVN revision: 74743
2012-08-01 15:35:28 +00:00
Gustavo Sverzut Barbieri 73ab74bd09 eina log: expose cross platform way to set console colors.
changed the win32 color parse to be malloc-less and also support more
colors. It should be more correct, but I have no windows machine to
test.



SVN revision: 74742
2012-08-01 15:34:13 +00:00
Carsten Haitzler 7150d2f266 fix problem in dealing with debians multiarch on prefix finding.
SVN revision: 74709
2012-08-01 06:28:37 +00:00
Cedric BAIL a2720ade35 eina: fix documentation.
SVN revision: 74624
2012-07-31 08:41:32 +00:00
Cedric BAIL 4540fa9d0f eina: cleanup eina_file_map_lines API before release.
SVN revision: 74618
2012-07-31 07:23:16 +00:00
Youness Alaoui 26ac924d67 Eina: oups, typo in #ifdef for including Escape.h
SVN revision: 74273
2012-07-21 16:50:26 +00:00
Jonas M. Gastal 438941c355 Eina: eina_list_remove doc improvements
This patch fixes a small typo and changes the return docs case
data is not found.

Author: Leandro Dorileo <dorileo@profusion.mobi>

SVN revision: 74026
2012-07-17 21:09:55 +00:00
Jonas M. Gastal b03e262ed8 Iterator and Accessor doc improvements.
SVN revision: 74004
2012-07-17 17:51:10 +00:00
Carsten Haitzler 2c1b533d13 fix minor version defines to be at 1.6 (in sync now) ready for going
to 7 on release.



SVN revision: 73906
2012-07-16 06:36:02 +00:00
Jonas M. Gastal 6f2b6f9611 Small improvement to eina_hash_free_cb_set documentation.
SVN revision: 73822
2012-07-13 17:27:24 +00:00
Bruno Dilly c4d655f56b Eina Log: don't remove a domain from env var list on the first register
Let say you pass a log level 4 for a domain on env var.

So if you, for some reason, register a domain, unregister it, and register
it again, the log level will be set as 1 instead of 4.
And you'll miss info and debug msgs...

Now only remove this information when cleaning pending list,
on eina_log_shutdown().



SVN revision: 73380
2012-07-05 21:06:05 +00:00
Carsten Haitzler a0141e0afd BAD CEDRIC!
SVN revision: 73321
2012-07-05 01:22:58 +00:00
Cedric BAIL d8ad05920b eina: handle gracefully eina_*_free with NULL.
Patch by Raphael Kubo da Costa <rakuco@freebsd.org>.



SVN revision: 73320
2012-07-05 01:12:27 +00:00
Vincent Torri 3ef67a7c87 Eina: implement eina_file_map_lines() on Windows
SVN revision: 73298
2012-07-04 18:47:19 +00:00
Mike Blumenkrantz 005f6ba959 formatting
someone RECENTLY edited this file with tabs. stop it. seriously.


SVN revision: 73155
2012-07-02 11:30:45 +00:00
Sebastian Dransfeld 8fc3cd2a34 Revert "eina: fix eina_file_iterator"
This reverts commit 375d652df6430e08874412650e6f8aecfcbdca51.

SVN revision: 73056
2012-06-29 20:47:55 +00:00
Sebastian Dransfeld 979ef9217c eina: fix eina_file_iterator
Remove false check. When we reach the last line we want to return it.
This check will happen the next time we hit the next function.

SVN revision: 73054
2012-06-29 20:37:33 +00:00
Cedric BAIL 54e102fcc4 eina: also track lines index.
SVN revision: 73029
2012-06-29 10:45:58 +00:00
Vincent Torri 8aa31b9de4 Eina: reorganise a bit the autotools. Please report any problem
SVN revision: 73023
2012-06-29 06:49:08 +00:00
Stefan Schmidt 2020ea6b55 eina/tests: Bring in the needed flags for coverage after the rework.
Vicent, this is like you did it for benchmark. If you want any other
setup for coverage feel free to change.

SVN revision: 73016
2012-06-28 15:15:56 +00:00
Vincent Torri 45600d2b36 Eina: and fix bench compilation
SVN revision: 72974
2012-06-28 06:57:54 +00:00