Tizen Native API  8.0

Eina tools aims to help application development, providing ways to make it safer, log errors, manage memory more efficiently and more.

For more information refer to the string example.

Functions

const char * eina_environment_home_get (void)
 Returns the content of the environment referred by HOME on this system.
const char * eina_environment_tmp_get (void)
 Returns the content of the environment referred as TMPDIR on this system.
static Eina_Bool eina_dbl_exact (double a, double b)
 Warningless comparison of doubles using ==.
static Eina_Bool eina_flt_exact (float a, float b)
 Warningless comparison of floats using ==.

Defines

#define EINA_FLT_EQ(a, b)   (!!(fabsf((float)(a) - (float)(b)) <= FLT_EPSILON))
 Safe comparison of float.
#define EINA_FLT_NONZERO(a)   (!!(fpclassify((float)(a)) != FP_ZERO))
 Determines if a float is not zero.
#define EINA_DBL_EQ(a, b)   (!!(fabs((double)(a) - (double)(b)) <= DBL_EPSILON))
 Safe comparison of double.
#define EINA_DBL_NONZERO(a)   (!!(fpclassify((double)(a)) != FP_ZERO))
 Determines if a double is not zero.

Define Documentation

#define EINA_DBL_EQ (   a,
 
)    (!!(fabs((double)(a) - (double)(b)) <= DBL_EPSILON))

Safe comparison of double.

Parameters:
[in]aFirst member to compare
[in]bSecond member to compare
Since (EFL) :
1.19
Returns:
true if two double match
Examples:
bg_example_03.c, edje-basic.c, evas-box.c, progressbar_example.c, and transit_example_03.c.
#define EINA_DBL_NONZERO (   a)    (!!(fpclassify((double)(a)) != FP_ZERO))

Determines if a double is not zero.

Parameters:
[in]aThe double
Returns:
true if double is not zero
Since (EFL) :
1.19
#define EINA_FLT_EQ (   a,
 
)    (!!(fabsf((float)(a) - (float)(b)) <= FLT_EPSILON))

Safe comparison of float.

Parameters:
[in]aFirst member to compare
[in]bSecond member to compare
Since (EFL) :
1.19
Returns:
true if two floats match
#define EINA_FLT_NONZERO (   a)    (!!(fpclassify((float)(a)) != FP_ZERO))

Determines if a float is not zero.

Parameters:
[in]aThe float
Returns:
true if float is not zero
Since (EFL) :
1.19

Function Documentation

static Eina_Bool eina_dbl_exact ( double  a,
double  b 
) [static]

Warningless comparison of doubles using ==.

Parameters:
[in]aFirst member to compare
[in]bSecond member to compare
Returns:
true if two doubles match
Since (EFL) :
1.19
const char* eina_environment_home_get ( void  )

Returns the content of the environment referred by HOME on this system.

Returns:
A temporary string to the content referred by HOME on this system.
Note:
The result of this call is highly system dependent and you better use it instead of the naive getenv("HOME").
Since (EFL) :
1.15
Since :
3.0
const char* eina_environment_tmp_get ( void  )

Returns the content of the environment referred as TMPDIR on this system.

Returns:
A temporary string to the content referred by TMPDIR on this system.
Note:
The result of this call is highly system dependent and you better use it instead of the naive getenv("TMPDIR").
Since (EFL) :
1.15
Since :
3.0
static Eina_Bool eina_flt_exact ( float  a,
float  b 
) [static]

Warningless comparison of floats using ==.

Parameters:
[in]aFirst member to compare
[in]bSecond member to compare
Returns:
true if two floats match
Since (EFL) :
1.19