Cedric BAIL
671fc92f08
eina: check the type before looking at anything else to avoid triggering valgrind warning.
2018-05-24 16:02:19 -07:00
Cedric BAIL
b8cf656bd3
eina: actually it make more sense to do the check for EINA_VALUE_EMPTY inside eina_value_type_get.
2018-05-07 09:46:42 -07:00
Cedric BAIL
da798e4528
eina: avoid warning when accessing first item and just return an error.
2018-03-12 11:59:13 -07:00
Gustavo Sverzut Barbieri
9ac1cb4fad
eina_value: add helper: eina_value_struct_desc_get().
...
this helper will validate a struct and fetch its description, also
checking if the user version matches.
2017-08-24 11:13:56 -03:00
Gustavo Sverzut Barbieri
4da53492ae
add EINA_VALUE_EMPTY, allow flushing empty values.
...
EINA_VALUE_EMPTY is basically a zeroed Eina_Value, handy for declaring
and returning.
To cope with the rest of efl, free/del/flush on NULL shouldn't
complain, so flusing an empty value should be quiet.
2017-08-23 18:32:13 -03:00
Vincent Torri
cedeb0c455
Eina_Value: do not mix declarations and code
...
Reviewers: cedric, jpeg
Reviewed By: jpeg
Differential Revision: https://phab.enlightenment.org/D3624
2016-02-01 12:34:48 +01:00
Stefan Schmidt
117ccbd98c
eina_inline_value: use void to force empty function parameters
...
We have to use void in a function declaration if we want no function
parameters. Using just empty parenthesis means the function takes an
unspecified number of parameters.
2016-01-11 22:55:34 +01:00
Jean-Philippe Andre
9e68f0524b
Eina value: Fix clang warnings (use NULL instead of bool)
2015-12-15 14:12:21 +09:00
Felipe Magno de Almeida
5d4038d74d
eina: add EINA_VALUE_TYPE_OPTIONAL, a single-element container that can be empty.
...
Eina Value Optional can be used to create a eina value that can be set
or be empty and can be embedded in a eina_value_struct.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-10 11:10:46 -08:00
Cedric BAIL
adbb9ca1e3
eina: fix possible access to NULL.
...
CID 1039422.
2014-06-05 22:50:20 +02:00
Cedric BAIL
7241f07f9c
eina: let's copy va_list when passing it around to be more portable.
...
NOTE: EINA_VALUE_TYPE_DISPATCH_RETURN macro is a bit weird, it does
use external variable not passed to the macro and half of the parameter
given to it are just ignored...
2013-11-10 09:43:57 +01:00
Carsten Haitzler
69e27abdc3
eina - and e3fl in general - stop using eina_error_get/set - useless really
2013-10-11 16:50:40 +09:00
Cedric Bail
d52f825de6
eina: in case of an error we should exit not continue and manipulate dead data.
...
This should fix a warning catched by LLVM/Clang.
2013-10-04 10:56:05 +09:00
Carsten Haitzler
a8e80514dc
fix clang bad free complaint to deal with data magic value
2013-07-16 18:11:50 +09:00
Mike Blumenkrantz
ef3c57aa08
fix magic failure in eina_value_array_count when array has not been allocated
2013-03-19 14:07:28 +00:00
Carsten Haitzler
0a5ba96837
move eina headers into lib/eina like the rest of efl - at least be
...
consistent with the majority.
SVN revision: 77119
2012-09-27 04:02:37 +00:00