eolian: type_struct_is_extern -> type_is_extern

This commit is contained in:
Daniel Kolesa 2014-07-21 14:14:22 +01:00
parent 6f9c8779c0
commit 197034bfd7
3 changed files with 5 additions and 5 deletions

View File

@ -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);
/*
* @brief Check if a struct type is extern.
* @brief Check if a struct or alias type is extern.
*
* @param[in] tp the type.
* @return EINA_TRUE if it's extern, EINA_FALSE otherwise.
*
* @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.

View File

@ -152,7 +152,7 @@ eolian_type_is_const(const Eolian_Type *tp)
}
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);
return tp->is_extern;

View File

@ -578,11 +578,11 @@ START_TEST(eolian_extern)
/* regular struct */
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 */
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();
}