forked from enlightenment/efl
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:
parent
1bcca58d82
commit
1c5fa59ee8
|
@ -169,8 +169,7 @@ ffi.cdef [[
|
||||||
EOLIAN_TYPE_BUILTIN_STRINGSHARE,
|
EOLIAN_TYPE_BUILTIN_STRINGSHARE,
|
||||||
EOLIAN_TYPE_BUILTIN_STRBUF,
|
EOLIAN_TYPE_BUILTIN_STRBUF,
|
||||||
|
|
||||||
EOLIAN_TYPE_BUILTIN_VOID_PTR,
|
EOLIAN_TYPE_BUILTIN_VOID_PTR
|
||||||
EOLIAN_TYPE_BUILTIN_FREE_CB
|
|
||||||
} Eolian_Type_Builtin_Type;
|
} Eolian_Type_Builtin_Type;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
@ -973,8 +972,7 @@ M.type_builtin_type = {
|
||||||
STRINGSHARE = 46,
|
STRINGSHARE = 46,
|
||||||
STRBUF = 47,
|
STRBUF = 47,
|
||||||
|
|
||||||
VOID_PTR = 48,
|
VOID_PTR = 48
|
||||||
FREE_CB = 49
|
|
||||||
}
|
}
|
||||||
|
|
||||||
M.typedecl_type = {
|
M.typedecl_type = {
|
||||||
|
|
|
@ -348,8 +348,7 @@ typedef enum
|
||||||
EOLIAN_TYPE_BUILTIN_STRINGSHARE,
|
EOLIAN_TYPE_BUILTIN_STRINGSHARE,
|
||||||
EOLIAN_TYPE_BUILTIN_STRBUF,
|
EOLIAN_TYPE_BUILTIN_STRBUF,
|
||||||
|
|
||||||
EOLIAN_TYPE_BUILTIN_VOID_PTR,
|
EOLIAN_TYPE_BUILTIN_VOID_PTR
|
||||||
EOLIAN_TYPE_BUILTIN_FREE_CB
|
|
||||||
} Eolian_Type_Builtin_Type;
|
} Eolian_Type_Builtin_Type;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
|
|
@ -189,17 +189,6 @@ static void
|
||||||
_atype_to_str(const Eolian_Typedecl *tp, Eina_Strbuf *buf)
|
_atype_to_str(const Eolian_Typedecl *tp, Eina_Strbuf *buf)
|
||||||
{
|
{
|
||||||
eina_strbuf_append(buf, "typedef ");
|
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,
|
database_type_to_str(tp->base_type, buf, tp->base.c_name,
|
||||||
EOLIAN_C_TYPE_DEFAULT);
|
EOLIAN_C_TYPE_DEFAULT);
|
||||||
}
|
}
|
||||||
|
|
|
@ -291,7 +291,6 @@ _validate_type(Validate_State *vals, Eolian_Type *tp)
|
||||||
{
|
{
|
||||||
case KW_void_ptr:
|
case KW_void_ptr:
|
||||||
case KW___undefined_type:
|
case KW___undefined_type:
|
||||||
case KW___builtin_free_cb:
|
|
||||||
if (vals->stable)
|
if (vals->stable)
|
||||||
{
|
{
|
||||||
_eo_parser_log(&tp->base,
|
_eo_parser_log(&tp->base,
|
||||||
|
|
|
@ -64,7 +64,6 @@ enum Tokens
|
||||||
KW(mstring), KW(string), KW(stringshare), KW(strbuf), \
|
KW(mstring), KW(string), KW(stringshare), KW(strbuf), \
|
||||||
\
|
\
|
||||||
KW(void_ptr), \
|
KW(void_ptr), \
|
||||||
KW(__builtin_free_cb), \
|
|
||||||
KW(function), \
|
KW(function), \
|
||||||
KW(__undefined_type), \
|
KW(__undefined_type), \
|
||||||
\
|
\
|
||||||
|
|
|
@ -8,8 +8,6 @@ type @extern Evas.Pants: float; /* not generated */
|
||||||
|
|
||||||
type @beta Undef: __undefined_type; /* not generated */
|
type @beta Undef: __undefined_type; /* not generated */
|
||||||
|
|
||||||
type @beta Free: __builtin_free_cb; /* specially generated */
|
|
||||||
|
|
||||||
enum Enum.Bar
|
enum Enum.Bar
|
||||||
{
|
{
|
||||||
legacy: bar;
|
legacy: bar;
|
||||||
|
|
|
@ -19,10 +19,6 @@ typedef Evas_Coord Evas_Coord2;
|
||||||
|
|
||||||
typedef Evas_Coord2 Evas_Coord3;
|
typedef Evas_Coord2 Evas_Coord3;
|
||||||
|
|
||||||
#ifdef EFL_BETA_API_SUPPORT
|
|
||||||
typedef void (*Free)(void *data);
|
|
||||||
#endif /* EFL_BETA_API_SUPPORT */
|
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
BAR_FIRST_ITEM = 0,
|
BAR_FIRST_ITEM = 0,
|
||||||
|
|
|
@ -11,9 +11,5 @@ typedef Evas_Coord Evas_Coord2;
|
||||||
|
|
||||||
typedef Evas_Coord2 Evas_Coord3;
|
typedef Evas_Coord2 Evas_Coord3;
|
||||||
|
|
||||||
#ifdef EFL_BETA_API_SUPPORT
|
|
||||||
typedef void (*Free)(void *data);
|
|
||||||
#endif /* EFL_BETA_API_SUPPORT */
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -402,8 +402,6 @@ EFL_START_TEST(eolian_typedef)
|
||||||
fail_if(!eina_iterator_next(iter, (void**)&tdl));
|
fail_if(!eina_iterator_next(iter, (void**)&tdl));
|
||||||
/* not generated undefined type, skip */
|
/* not generated undefined type, skip */
|
||||||
fail_if(!eina_iterator_next(iter, (void**)&tdl));
|
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));
|
fail_if(eina_iterator_next(iter, (void**)&tdl));
|
||||||
|
|
||||||
eolian_state_free(eos);
|
eolian_state_free(eos);
|
||||||
|
|
Loading…
Reference in New Issue