forked from enlightenment/efl
eolian: type_struct_is_extern -> type_is_extern
This commit is contained in:
parent
6f9c8779c0
commit
197034bfd7
|
@ -929,14 +929,14 @@ EAPI Eina_Bool eolian_type_is_own(const Eolian_Type *tp);
|
||||||
EAPI Eina_Bool eolian_type_is_const(const Eolian_Type *tp);
|
EAPI Eina_Bool eolian_type_is_const(const Eolian_Type *tp);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @brief Check if a struct type is extern.
|
* @brief Check if a struct or alias type is extern.
|
||||||
*
|
*
|
||||||
* @param[in] tp the type.
|
* @param[in] tp the type.
|
||||||
* @return EINA_TRUE if it's extern, EINA_FALSE otherwise.
|
* @return EINA_TRUE if it's extern, EINA_FALSE otherwise.
|
||||||
*
|
*
|
||||||
* @ingroup Eolian
|
* @ingroup Eolian
|
||||||
*/
|
*/
|
||||||
EAPI Eina_Bool eolian_type_struct_is_extern(const Eolian_Type *tp);
|
EAPI Eina_Bool eolian_type_is_extern(const Eolian_Type *tp);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @brief Get the full C type name of the given type with a name.
|
* @brief Get the full C type name of the given type with a name.
|
||||||
|
|
|
@ -152,7 +152,7 @@ eolian_type_is_const(const Eolian_Type *tp)
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
EAPI Eina_Bool
|
||||||
eolian_type_struct_is_extern(const Eolian_Type *tp)
|
eolian_type_is_extern(const Eolian_Type *tp)
|
||||||
{
|
{
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(tp, EINA_FALSE);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(tp, EINA_FALSE);
|
||||||
return tp->is_extern;
|
return tp->is_extern;
|
||||||
|
|
|
@ -578,11 +578,11 @@ START_TEST(eolian_extern)
|
||||||
|
|
||||||
/* regular struct */
|
/* regular struct */
|
||||||
fail_if(!(type = eolian_type_struct_find_by_name("X")));
|
fail_if(!(type = eolian_type_struct_find_by_name("X")));
|
||||||
fail_if(eolian_type_struct_is_extern(type));
|
fail_if(eolian_type_is_extern(type));
|
||||||
|
|
||||||
/* extern struct */
|
/* extern struct */
|
||||||
fail_if(!(type = eolian_type_struct_find_by_name("Y")));
|
fail_if(!(type = eolian_type_struct_find_by_name("Y")));
|
||||||
fail_if(!eolian_type_struct_is_extern(type));
|
fail_if(!eolian_type_is_extern(type));
|
||||||
|
|
||||||
eolian_shutdown();
|
eolian_shutdown();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue