eolian: remove __builtin_free_cb

This has long been unused. If we need to replace this eventually,
it should be done correctly.
This commit is contained in:
Daniel Kolesa 2019-08-01 16:54:00 +02:00
parent 1bcca58d82
commit 1c5fa59ee8
9 changed files with 3 additions and 31 deletions

View File

@ -169,8 +169,7 @@ ffi.cdef [[
EOLIAN_TYPE_BUILTIN_STRINGSHARE,
EOLIAN_TYPE_BUILTIN_STRBUF,
EOLIAN_TYPE_BUILTIN_VOID_PTR,
EOLIAN_TYPE_BUILTIN_FREE_CB
EOLIAN_TYPE_BUILTIN_VOID_PTR
} Eolian_Type_Builtin_Type;
typedef enum {
@ -973,8 +972,7 @@ M.type_builtin_type = {
STRINGSHARE = 46,
STRBUF = 47,
VOID_PTR = 48,
FREE_CB = 49
VOID_PTR = 48
}
M.typedecl_type = {

View File

@ -348,8 +348,7 @@ typedef enum
EOLIAN_TYPE_BUILTIN_STRINGSHARE,
EOLIAN_TYPE_BUILTIN_STRBUF,
EOLIAN_TYPE_BUILTIN_VOID_PTR,
EOLIAN_TYPE_BUILTIN_FREE_CB
EOLIAN_TYPE_BUILTIN_VOID_PTR
} Eolian_Type_Builtin_Type;
typedef enum

View File

@ -189,17 +189,6 @@ static void
_atype_to_str(const Eolian_Typedecl *tp, Eina_Strbuf *buf)
{
eina_strbuf_append(buf, "typedef ");
if (tp->base_type->type == EOLIAN_TYPE_REGULAR)
{
if (!strcmp(tp->base_type->base.name, "__builtin_free_cb"))
{
eina_strbuf_append(buf, "void (*");
eina_strbuf_append(buf, tp->base.c_name);
eina_strbuf_append(buf, ")(void *data)");
return;
}
}
database_type_to_str(tp->base_type, buf, tp->base.c_name,
EOLIAN_C_TYPE_DEFAULT);
}

View File

@ -291,7 +291,6 @@ _validate_type(Validate_State *vals, Eolian_Type *tp)
{
case KW_void_ptr:
case KW___undefined_type:
case KW___builtin_free_cb:
if (vals->stable)
{
_eo_parser_log(&tp->base,

View File

@ -64,7 +64,6 @@ enum Tokens
KW(mstring), KW(string), KW(stringshare), KW(strbuf), \
\
KW(void_ptr), \
KW(__builtin_free_cb), \
KW(function), \
KW(__undefined_type), \
\

View File

@ -8,8 +8,6 @@ type @extern Evas.Pants: float; /* not generated */
type @beta Undef: __undefined_type; /* not generated */
type @beta Free: __builtin_free_cb; /* specially generated */
enum Enum.Bar
{
legacy: bar;

View File

@ -19,10 +19,6 @@ typedef Evas_Coord Evas_Coord2;
typedef Evas_Coord2 Evas_Coord3;
#ifdef EFL_BETA_API_SUPPORT
typedef void (*Free)(void *data);
#endif /* EFL_BETA_API_SUPPORT */
typedef enum
{
BAR_FIRST_ITEM = 0,

View File

@ -11,9 +11,5 @@ typedef Evas_Coord Evas_Coord2;
typedef Evas_Coord2 Evas_Coord3;
#ifdef EFL_BETA_API_SUPPORT
typedef void (*Free)(void *data);
#endif /* EFL_BETA_API_SUPPORT */
#endif

View File

@ -402,8 +402,6 @@ EFL_START_TEST(eolian_typedef)
fail_if(!eina_iterator_next(iter, (void**)&tdl));
/* not generated undefined type, skip */
fail_if(!eina_iterator_next(iter, (void**)&tdl));
/* free cb, tested by generation tests */
fail_if(!eina_iterator_next(iter, (void**)&tdl));
fail_if(eina_iterator_next(iter, (void**)&tdl));
eolian_state_free(eos);