efl/legacy/eina/src/include
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
..
Eina.h update @version's 2012-08-27 09:51:57 +00:00
Makefile.am well as there is no reason to put eina_model in release - disabled 2012-04-18 09:02:27 +00:00
eina_accessor.h Iterator and Accessor doc improvements. 2012-07-17 17:51:10 +00:00
eina_array.h eina: fix typos in some headers 2012-06-16 13:33:58 +00:00
eina_benchmark.h eina: fix typos in some headers 2012-06-16 13:33:58 +00:00
eina_binbuf.h eina: doxygen doc fixes 2012-05-29 11:33:07 +00:00
eina_binshare.h eina: Use more @note notation. Fixed more wrong documentation. 2012-08-15 04:32:05 +00:00
eina_clist.h eina: doxygen doc fixes 2012-05-30 06:55:31 +00:00
eina_config.h.in eina: add Exotic support. 2012-02-24 11:15:14 +00:00
eina_convert.h eina: fix typo in doc 2012-04-25 10:17:31 +00:00
eina_counter.h eina: Use more @note notation. Fixed more wrong documentation. 2012-08-15 04:32:05 +00:00
eina_cpu.h uncrustify eina. 2010-07-28 02:37:05 +00:00
eina_error.h eina: doxygen doc fixes 2012-05-30 06:55:31 +00:00
eina_file.h eina: cleanup eina_file_map_lines API before release. 2012-07-31 07:23:16 +00:00
eina_fp.h ecrustify testing: looked good so I'm committing for other people to review as well 2010-10-23 06:41:45 +00:00
eina_hamster.h Eina: Groups shouldn't be inside themselves, and both groups 2011-07-15 18:37:44 +00:00
eina_hash.h eina: fix documentation. 2012-07-31 08:41:32 +00:00
eina_inarray.h Eina: upgrade eina_inarray_setup to eina_inarray_step_set 2012-08-24 21:03:07 +00:00
eina_inline_array.x eina: doxygen doc fixes 2012-05-29 11:33:07 +00:00
eina_inline_clist.x eina: move clist around as needed. 2011-12-06 16:55:50 +00:00
eina_inline_f8p24.x explicit cast 2010-04-10 23:23:26 +00:00
eina_inline_f16p16.x explicit cast 2010-04-10 23:23:26 +00:00
eina_inline_f32p32.x NO! you break api. you made my e sit here with a segv in a getenv. 2011-12-07 01:10:43 +00:00
eina_inline_fp.x * eina: fix rounding issue with different size of fixed point. 2010-04-16 14:32:18 +00:00
eina_inline_hash.x Eina: missing 'static inline' 2011-12-07 20:28:56 +00:00
eina_inline_list.x Eina: Improvements to eina_list's documentation. 2011-07-06 14:50:33 +00:00
eina_inline_lock_posix.x eina: add Eina_Semaphore API. 2011-12-30 13:38:53 +00:00
eina_inline_lock_void.x eina: doxygen doc fixes 2012-05-29 11:33:07 +00:00
eina_inline_lock_win32.x Eina: fix win32 RWlocks 2012-02-22 08:34:38 +00:00
eina_inline_lock_wince.x eina: add Eina_Semaphore API. 2011-12-30 13:38:53 +00:00
eina_inline_log.x Cleanup Doxygen Warnings - eina 2012-04-10 18:16:09 +00:00
eina_inline_mempool.x eina: abort early on free(NULL). 2012-04-03 13:31:29 +00:00
eina_inline_rbtree.x initial doxy patch for rbtree from vtorri 2010-09-12 19:28:18 +00:00
eina_inline_rectangle.x eina: doxygen doc fixes 2012-05-29 11:33:07 +00:00
eina_inline_str.x NO! you break api. you made my e sit here with a segv in a getenv. 2011-12-07 01:10:43 +00:00
eina_inline_stringshare.x eina: doxygen doc fixes 2012-05-30 06:55:31 +00:00
eina_inline_tiler.x Eina: eina_tiler docs(examples to follow). 2011-08-04 22:05:25 +00:00
eina_inline_trash.x eina: doxygen doc fixes 2012-05-30 06:55:31 +00:00
eina_inline_ustringshare.x eina: doxygen doc fixes 2012-05-30 06:55:31 +00:00
eina_inline_value.x eina: don't assume that 'char' is a signed type in Eina_Value 2012-05-17 09:56:28 +00:00
eina_inlist.h eina: Fix EINA_INLIST_FOREACH_SAFE macro 2012-09-04 22:20:25 +00:00
eina_iterator.h Iterator and Accessor doc improvements. 2012-07-17 17:51:10 +00:00
eina_lalloc.h Cleanup Doxygens Warnings - eina 2012-04-12 17:44:45 +00:00
eina_list.h Eina: eina_list_remove doc improvements 2012-07-17 21:09:55 +00:00
eina_lock.h Cleanup Doxygens Warnings - eina 2012-04-12 17:44:45 +00:00
eina_log.h thanks vtorri :-) 2012-08-01 17:15:10 +00:00
eina_magic.h Eina magic: add EINA_LIKELY. 2012-09-04 08:00:27 +00:00
eina_main.h update header #defined versions to 1.8 to make sure new apis are used 2012-09-03 09:55:34 +00:00
eina_matrixsparse.h eina: Use more @note notation. Fixed more wrong documentation. 2012-08-15 04:32:05 +00:00
eina_mempool.h Eina: Groups shouldn't be inside themselves, and both groups 2011-07-15 18:37:44 +00:00
eina_mmap.h eina: doxygen doc fixes 2012-05-30 06:55:31 +00:00
eina_model.h eina: handle gracefully eina_*_free with NULL. 2012-07-05 01:12:27 +00:00
eina_module.h eina: doxygen doc fixes 2012-05-30 06:55:31 +00:00
eina_object.h eina: fix typos in some headers 2012-06-16 13:33:58 +00:00
eina_prefix.h eina: doxygen doc fixes 2012-05-30 06:55:31 +00:00
eina_quadtree.h ecrustify testing: looked good so I'm committing for other people to review as well 2010-10-23 06:41:45 +00:00
eina_rbtree.h eina: doxygen doc fixes 2012-05-30 06:55:31 +00:00
eina_rectangle.h eina: fix typos in some headers 2012-06-16 13:33:58 +00:00
eina_refcount.h Eina: Groups shouldn't be inside themselves, and both groups 2011-07-15 18:37:44 +00:00
eina_safety_checks.h Eina: Fixed usage of gnu extension. 2012-04-15 09:54:47 +00:00
eina_sched.h doxy -> .h 2011-04-07 13:05:05 +00:00
eina_simple_xml_parser.h eina: doxygen doc fixes 2012-05-30 06:55:31 +00:00
eina_str.h eina: fix typos in some headers 2012-06-16 13:33:58 +00:00
eina_strbuf.h eina: doxygen doc fixes 2012-05-30 06:55:31 +00:00
eina_stringshare.h eina: Use more @note notation. Fixed more wrong documentation. 2012-08-15 04:32:05 +00:00
eina_tiler.h eina: doxygen doc fixes 2012-05-30 06:55:31 +00:00
eina_trash.h * eina: fix typo. 2010-10-05 11:32:12 +00:00
eina_types.h eina: add EINA_SENTINEL to help use of variadic functions 2012-08-14 20:58:36 +00:00
eina_unicode.h eina: doxygen doc fixes 2012-05-30 06:55:31 +00:00
eina_ustrbuf.h eina: doxygen doc fixes 2012-05-29 11:33:07 +00:00
eina_ustringshare.h eina: Use more @note notation. Fixed more wrong documentation. 2012-08-15 04:32:05 +00:00
eina_value.h eina: doxygen doc fixes 2012-05-29 11:33:07 +00:00
eina_xattr.h eina: doxygen doc fixes 2012-05-30 06:55:31 +00:00