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
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
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
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
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
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
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
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
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
(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
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