eolian: remove redundant enum
This commit is contained in:
parent
78bc58813e
commit
4b427d6c16
|
@ -18,17 +18,9 @@ typedef struct _Eo_Ret_Def
|
||||||
|
|
||||||
/* PARAM */
|
/* PARAM */
|
||||||
|
|
||||||
typedef enum _Param_Way
|
|
||||||
{
|
|
||||||
PARAM_IN,
|
|
||||||
PARAM_OUT,
|
|
||||||
PARAM_INOUT,
|
|
||||||
PARAM_WAY_LAST
|
|
||||||
} Param_Way;
|
|
||||||
|
|
||||||
typedef struct _Eo_Param_Def
|
typedef struct _Eo_Param_Def
|
||||||
{
|
{
|
||||||
Param_Way way;
|
Eolian_Parameter_Dir way;
|
||||||
Eolian_Type *type;
|
Eolian_Type *type;
|
||||||
Eina_Stringshare *name;
|
Eina_Stringshare *name;
|
||||||
Eina_Stringshare *comment;
|
Eina_Stringshare *comment;
|
||||||
|
@ -40,8 +32,7 @@ typedef struct _Eo_Param_Def
|
||||||
typedef enum _Eo_Accessor_Type
|
typedef enum _Eo_Accessor_Type
|
||||||
{
|
{
|
||||||
SETTER,
|
SETTER,
|
||||||
GETTER,
|
GETTER
|
||||||
ACCESSOR_TYPE_LAST
|
|
||||||
} Eo_Accessor_Type;
|
} Eo_Accessor_Type;
|
||||||
|
|
||||||
typedef struct _Eo_Accessor_Param
|
typedef struct _Eo_Accessor_Param
|
||||||
|
|
|
@ -436,23 +436,23 @@ parse_param(Eo_Lexer *ls, Eina_Bool allow_inout)
|
||||||
{
|
{
|
||||||
if (ls->t.kw == KW_at_in)
|
if (ls->t.kw == KW_at_in)
|
||||||
{
|
{
|
||||||
par->way = PARAM_IN;
|
par->way = EOLIAN_IN_PARAM;
|
||||||
eo_lexer_get(ls);
|
eo_lexer_get(ls);
|
||||||
}
|
}
|
||||||
else if (ls->t.kw == KW_at_out)
|
else if (ls->t.kw == KW_at_out)
|
||||||
{
|
{
|
||||||
par->way = PARAM_OUT;
|
par->way = EOLIAN_OUT_PARAM;
|
||||||
eo_lexer_get(ls);
|
eo_lexer_get(ls);
|
||||||
}
|
}
|
||||||
else if (ls->t.kw == KW_at_inout)
|
else if (ls->t.kw == KW_at_inout)
|
||||||
{
|
{
|
||||||
par->way = PARAM_INOUT;
|
par->way = EOLIAN_INOUT_PARAM;
|
||||||
eo_lexer_get(ls);
|
eo_lexer_get(ls);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
par->way = PARAM_IN;
|
par->way = EOLIAN_IN_PARAM;
|
||||||
}
|
}
|
||||||
if (par->way == PARAM_OUT)
|
if (par->way == EOLIAN_OUT_PARAM)
|
||||||
par->type = parse_type_void(ls);
|
par->type = parse_type_void(ls);
|
||||||
else
|
else
|
||||||
par->type = parse_type(ls);
|
par->type = parse_type(ls);
|
||||||
|
@ -1054,8 +1054,8 @@ parse_chunk(Eo_Lexer *ls, Eina_Bool eot)
|
||||||
parse_unit(ls, eot);
|
parse_unit(ls, eot);
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *_accessor_type_str[ACCESSOR_TYPE_LAST] = { "setter", "getter" };
|
static char *_accessor_type_str[2] = { "setter", "getter" };
|
||||||
static char * _param_way_str[ PARAM_WAY_LAST] = { "IN", "OUT", "INOUT" };
|
static char * _param_way_str[3] = { "IN", "OUT", "INOUT" };
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_dump_class(Eo_Class_Def *kls)
|
_dump_class(Eo_Class_Def *kls)
|
||||||
|
|
Loading…
Reference in New Issue