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