Commit Graph

758 Commits

Author SHA1 Message Date
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
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
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 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
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 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
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
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
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
Cedric BAIL 54e102fcc4 eina: also track lines index.
SVN revision: 73029
2012-06-29 10:45:58 +00:00
Jihoon Kim 477be2ba24 eina: fix typos in some headers
SVN revision: 72236
2012-06-16 13:33:58 +00:00
Mike Blumenkrantz df3343d002 even more overclarification
SVN revision: 71933
2012-06-11 07:38:12 +00:00
Mike Blumenkrantz 1d855e8c14 super overclarify docs for eina_str_split_full
SVN revision: 71932
2012-06-11 07:35:28 +00:00
Jihoon Kim bb56b0b09c fix @version in each EFL header doxygen
SVN revision: 71691
2012-06-04 23:27:02 +00:00
Jonas M. Gastal c67b71b65c Removing wrong info about inlist performance from docs.
SVN revision: 71581
2012-05-31 13:09:05 +00:00
Jerome Pinot 04daafab2b eina: doxygen doc fixes
Add a bunch of missing @c and #EINA_{TRUE,FALSE} links.


SVN revision: 71535
2012-05-30 06:55:31 +00:00
Jerome Pinot b3e92d38b0 eina: doxygen doc fixes
A #link at the beginning of a new line goes interpreted by doxygen as a title,
so format the documentation to avoid this issue. No content change.


SVN revision: 71501
2012-05-29 11:33:07 +00:00
Cedric BAIL b19de09bae eina: don't assume that 'char' is a signed type in Eina_Value
The eina_value code TYPE_CHAR conversion code assumes that 'char' is a signed
type, which is not true on some platforms like ARM and PPC. We need to
explicitely use signed chars to make sure the value is correct.

Patch by Albin 'Lutin' Tonnerre <albin.tonnerre@gmail.com>


SVN revision: 71195
2012-05-17 09:56:28 +00:00
Tom Hacohen 0400e248c1 Eina: Fixed strict-aliasing warning.
SVN revision: 70873
2012-05-08 10:51:37 +00:00
Cedric BAIL f0a9acefa0 eina: add eina_file_map_lines.
This almost replace a loop of fopen/fgets/fclose, but it avoid
one memcpy.


SVN revision: 70871
2012-05-08 10:31:12 +00:00
Michael BOUCHAUD 0a060e2644 eina: fix typo in doc
SVN revision: 70465
2012-04-25 10:17:31 +00:00
Sanjeev BA b9ed47a471 several fixes for the doxygen docs.
Author : Jérôme Pinot <ngc891@gmail.com>

SVN revision: 70426
2012-04-23 23:31:38 +00:00
Jérôme Pinot fc00b1b637 From: Jérôme Pinot <ngc891@gmail.com>
Subject: [E-devel] [patch] eina_simple_xml example

Here is an example for eina_simple_xml
This patch includes a small sample XML file, source code (for parsing and
printing it out) and the doxygen doc.



SVN revision: 70385
2012-04-22 05:27:25 +00:00
Cedric BAIL d80dae3035 eina: fix Eina_Inarray API to at least match Eina_Array API.
NOTE: some of this function should be moved as inline, but that's to late for a change
I think. So we will fix that if needed.

Second point, I am not happy with is eina_inarray_insert and eina_inarray_insert_at. The
naming is really poor.


SVN revision: 70352
2012-04-20 08:30:59 +00:00
Carsten Haitzler 8bce681d16 and fully de-modelify eina
SVN revision: 70293
2012-04-18 09:19:47 +00:00
Carsten Haitzler 1fb2825ac8 and extract model stuff from value...
SVN revision: 70292
2012-04-18 09:12:26 +00:00
Carsten Haitzler fbdadd1bea well as there is no reason to put eina_model in release - disabled
until later.



SVN revision: 70289
2012-04-18 09:02:27 +00:00
Guilherme Iscaro 0e7939a89a Fixing the eina_prefix example
Patch by: Guilherme Iscaro <iscaro@profusion.mobi>

SVN revision: 70279
2012-04-17 17:18:58 +00:00
Daniel Juyung Seo 90556f6e4b eina eina_main.h: Fixed documentation.
SVN revision: 70198
2012-04-16 00:21:57 +00:00
Tom Hacohen 011fd3b1ce Eina: Fixed usage of gnu extension.
(idx, ## __VA_ARGS__) is a gnu extension, fixed to be (__VA_ARGS__).
Should be fine this way. Less descriptive maybe, because now people will
may think it's ok to pass 0 arguments, but there's no avoiding this.

SVN revision: 70194
2012-04-15 09:54:47 +00:00
Jonas M. Gastal 6122b8a8de Cleanup Doxygens Warnings - eina
Warnings resolved for:
eina_clist.h
eina_file.h
eina_hash.h
eina_inlist.h
eina_lalloc.h
eina_lock.h

SVN revision: 70156
2012-04-12 17:44:45 +00:00
Thiago Thamada 0ae4bf95e7 Cleanup Doxygen Warnings - eina
Patch by: Thiago Thamada <tiba@profusion.mobi>

SVN revision: 69999
2012-04-10 18:16:09 +00:00
Jihoon Kim 7eace88750 eina: fix typos in doc
SVN revision: 69927
2012-04-05 04:24:36 +00:00
Jihoon Kim 7fb7cec16d eina: fix doc return type
Sign-Off By: Jérôme Pinot


SVN revision: 69924
2012-04-05 03:52:51 +00:00
Christopher Michael 255d17ce9e Eina: Fix doxy typo.
SVN revision: 69920
2012-04-04 16:48:23 +00:00
Cedric BAIL 792801491e eina: abort early on free(NULL).
SVN revision: 69897
2012-04-03 13:31:29 +00:00
Jérôme Pinot c8eac1ee80 From: Jérôme Pinot <ngc891@gmail.com>
Subject: [E-devel] [patch] eina doc leftover

Forgot this one



SVN revision: 69792
2012-03-30 10:13:38 +00:00
Jérôme Pinot f88759f4cb From: Jérôme Pinot <ngc891@gmail.com>
Subject: [E-devel] [patch] eina doxygen doc

Here is a patch that fix several links in the eina doxygen doc. Most of
the problems come from unescaped special characters.



SVN revision: 69746
2012-03-29 11:35:34 +00:00