summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-09-26 16:56:13 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-09-26 16:56:13 +0200
commitb0ee540ec9a52824c79f42bff4fc6e06e0492f96 (patch)
tree8b60cbbc5d93f771b09695d74de849eeb6722c7f /src/bin/eolian
parentcdff7852e03840fddb28e6ac451be80cfd877b94 (diff)
eolian: rename param direction enum and fields for consistency
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/docs.c6
-rw-r--r--src/bin/eolian/headers.c4
-rw-r--r--src/bin/eolian/sources.c12
3 files changed, 11 insertions, 11 deletions
diff --git a/src/bin/eolian/docs.c b/src/bin/eolian/docs.c
index 6b016eb..31a80a2 100644
--- a/src/bin/eolian/docs.c
+++ b/src/bin/eolian/docs.c
@@ -623,17 +623,17 @@ eo_gen_docs_func_gen(const Eolian_State *state, const Eolian_Function *fid,
623 const Eolian_Documentation *adoc = eolian_parameter_documentation_get(par); 623 const Eolian_Documentation *adoc = eolian_parameter_documentation_get(par);
624 curl = _indent_line(buf, indent); 624 curl = _indent_line(buf, indent);
625 625
626 Eolian_Parameter_Dir dir = EOLIAN_OUT_PARAM; 626 Eolian_Parameter_Direction dir = EOLIAN_PARAMETER_OUT;
627 if (!force_out) 627 if (!force_out)
628 dir = eolian_parameter_direction_get(par); 628 dir = eolian_parameter_direction_get(par);
629 629
630 switch (dir) 630 switch (dir)
631 { 631 {
632 case EOLIAN_OUT_PARAM: 632 case EOLIAN_PARAMETER_OUT:
633 eina_strbuf_append(buf, " * @param[out] "); 633 eina_strbuf_append(buf, " * @param[out] ");
634 curl += sizeof(" * @param[out] ") - 1; 634 curl += sizeof(" * @param[out] ") - 1;
635 break; 635 break;
636 case EOLIAN_INOUT_PARAM: 636 case EOLIAN_PARAMETER_INOUT:
637 eina_strbuf_append(buf, " * @param[in,out] "); 637 eina_strbuf_append(buf, " * @param[in,out] ");
638 curl += sizeof(" * @param[in,out] ") - 1; 638 curl += sizeof(" * @param[in,out] ") - 1;
639 break; 639 break;
diff --git a/src/bin/eolian/headers.c b/src/bin/eolian/headers.c
index 0973038..3a84e0a 100644
--- a/src/bin/eolian/headers.c
+++ b/src/bin/eolian/headers.c
@@ -2,11 +2,11 @@
2#include "docs.h" 2#include "docs.h"
3 3
4static const char * 4static const char *
5_get_add_star(Eolian_Function_Type ftype, Eolian_Parameter_Dir pdir) 5_get_add_star(Eolian_Function_Type ftype, Eolian_Parameter_Direction pdir)
6{ 6{
7 if (ftype == EOLIAN_PROP_GET) 7 if (ftype == EOLIAN_PROP_GET)
8 return "*"; 8 return "*";
9 if ((pdir == EOLIAN_OUT_PARAM) || (pdir == EOLIAN_INOUT_PARAM)) 9 if ((pdir == EOLIAN_PARAMETER_OUT) || (pdir == EOLIAN_PARAMETER_INOUT))
10 return "*"; 10 return "*";
11 return ""; 11 return "";
12} 12}
diff --git a/src/bin/eolian/sources.c b/src/bin/eolian/sources.c
index 37a8ef0..58be274 100644
--- a/src/bin/eolian/sources.c
+++ b/src/bin/eolian/sources.c
@@ -9,11 +9,11 @@ static Eina_Hash *_funcs_params_init_get = NULL;
9static Eina_Hash *_funcs_params_init_set = NULL; 9static Eina_Hash *_funcs_params_init_set = NULL;
10 10
11static const char * 11static const char *
12_get_add_star(Eolian_Function_Type ftype, Eolian_Parameter_Dir pdir) 12_get_add_star(Eolian_Function_Type ftype, Eolian_Parameter_Direction pdir)
13{ 13{
14 if (ftype == EOLIAN_PROP_GET) 14 if (ftype == EOLIAN_PROP_GET)
15 return "*"; 15 return "*";
16 if ((pdir == EOLIAN_OUT_PARAM) || (pdir == EOLIAN_INOUT_PARAM)) 16 if ((pdir == EOLIAN_PARAMETER_OUT) || (pdir == EOLIAN_PARAMETER_INOUT))
17 return "*"; 17 return "*";
18 return ""; 18 return "";
19} 19}
@@ -307,7 +307,7 @@ _gen_function_param_fallback(Eina_Iterator *itr, Eina_Strbuf *fallback_free_owne
307 inner_type = eolian_type_base_type_get(type); 307 inner_type = eolian_type_base_type_get(type);
308 308
309 //check if they should be freed or just ignored 309 //check if they should be freed or just ignored
310 if (!eolian_parameter_is_move(pr) || eolian_parameter_direction_get(pr) == EOLIAN_OUT_PARAM) 310 if (!eolian_parameter_is_move(pr) || eolian_parameter_direction_get(pr) == EOLIAN_PARAMETER_OUT)
311 { 311 {
312 eina_strbuf_append_printf(fallback_free_ownership, " (void)%s;\n", eolian_parameter_name_get(pr)); 312 eina_strbuf_append_printf(fallback_free_ownership, " (void)%s;\n", eolian_parameter_name_get(pr));
313 continue; 313 continue;
@@ -317,7 +317,7 @@ _gen_function_param_fallback(Eina_Iterator *itr, Eina_Strbuf *fallback_free_owne
317 317
318 eina_strbuf_reset(param_call); 318 eina_strbuf_reset(param_call);
319 319
320 if (eolian_parameter_direction_get(pr) == EOLIAN_INOUT_PARAM) 320 if (eolian_parameter_direction_get(pr) == EOLIAN_PARAMETER_INOUT)
321 eina_strbuf_append_char(param_call, '*'); 321 eina_strbuf_append_char(param_call, '*');
322 eina_strbuf_append(param_call, eolian_parameter_name_get(pr)); 322 eina_strbuf_append(param_call, eolian_parameter_name_get(pr));
323 323
@@ -638,7 +638,7 @@ _gen_func(const Eolian_Class *cl, const Eolian_Function *fid,
638 Eolian_Function_Parameter *pr; 638 Eolian_Function_Parameter *pr;
639 EINA_ITERATOR_FOREACH(itr, pr) 639 EINA_ITERATOR_FOREACH(itr, pr)
640 { 640 {
641 Eolian_Parameter_Dir pd = eolian_parameter_direction_get(pr); 641 Eolian_Parameter_Direction pd = eolian_parameter_direction_get(pr);
642 const Eolian_Expression *dfv = eolian_parameter_default_value_get(pr); 642 const Eolian_Expression *dfv = eolian_parameter_default_value_get(pr);
643 const char *prn = eolian_parameter_name_get(pr); 643 const char *prn = eolian_parameter_name_get(pr);
644 const Eolian_Type *pt = eolian_parameter_type_get(pr); 644 const Eolian_Type *pt = eolian_parameter_type_get(pr);
@@ -1267,7 +1267,7 @@ _gen_params(const Eolian_Function *fid, Eolian_Function_Type ftype,
1267 Eolian_Function_Parameter *pr; 1267 Eolian_Function_Parameter *pr;
1268 EINA_ITERATOR_FOREACH(itr, pr) 1268 EINA_ITERATOR_FOREACH(itr, pr)
1269 { 1269 {
1270 Eolian_Parameter_Dir pd = eolian_parameter_direction_get(pr); 1270 Eolian_Parameter_Direction pd = eolian_parameter_direction_get(pr);
1271 const char *prn = eolian_parameter_name_get(pr); 1271 const char *prn = eolian_parameter_name_get(pr);
1272 const Eolian_Type *pt = eolian_parameter_type_get(pr); 1272 const Eolian_Type *pt = eolian_parameter_type_get(pr);
1273 const Eolian_Typedecl *ptd = eolian_type_typedecl_get(pt); 1273 const Eolian_Typedecl *ptd = eolian_type_typedecl_get(pt);