summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-07-09 17:01:19 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-07-09 17:01:19 +0100
commit1a4f87d3657ab735d8ce4e880794ec356af68196 (patch)
treed6a0a7edff2426c843e1b4cea460fad3f17e404f /src/bin/eolian_cxx
parentc9119b0c8801ca5e5bb15e1c65172e4f98040521 (diff)
eolian: refactoring step four
Move from all isntances of Eolian_Function_Parameter to Eolian_Function_Parameter* plus const fixes.
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/convert.cc4
-rw-r--r--src/bin/eolian_cxx/convert_comments.cc4
-rw-r--r--src/bin/eolian_cxx/eolian_wrappers.hh18
3 files changed, 13 insertions, 13 deletions
diff --git a/src/bin/eolian_cxx/convert.cc b/src/bin/eolian_cxx/convert.cc
index 066dc77455..d0ce38435d 100644
--- a/src/bin/eolian_cxx/convert.cc
+++ b/src/bin/eolian_cxx/convert.cc
@@ -34,8 +34,8 @@ convert_eolian_parameters(Eina_List const* parameters,
34 efl::eolian::parameters_container_type list; 34 efl::eolian::parameters_container_type list;
35 EINA_LIST_FOREACH (parameters, it, curr) 35 EINA_LIST_FOREACH (parameters, it, curr)
36 { 36 {
37 Eolian_Function_Parameter id = 37 const Eolian_Function_Parameter *id =
38 (static_cast<Eolian_Function_Parameter>(curr)); 38 (static_cast<const Eolian_Function_Parameter*>(curr));
39 list.push_back 39 list.push_back
40 ({ 40 ({
41 parameter_type(id, func_type), 41 parameter_type(id, func_type),
diff --git a/src/bin/eolian_cxx/convert_comments.cc b/src/bin/eolian_cxx/convert_comments.cc
index 6dd0c2ce3e..5331b3cf4b 100644
--- a/src/bin/eolian_cxx/convert_comments.cc
+++ b/src/bin/eolian_cxx/convert_comments.cc
@@ -5,7 +5,7 @@
5namespace eolian_cxx { 5namespace eolian_cxx {
6 6
7static std::string 7static std::string
8_comment_parameter(Eolian_Function_Parameter param) 8_comment_parameter(Eolian_Function_Parameter *param)
9{ 9{
10 Eolian_Parameter_Dir direction; 10 Eolian_Parameter_Dir direction;
11 Eina_Stringshare *description; 11 Eina_Stringshare *description;
@@ -35,7 +35,7 @@ _comment_parameters_list(const Eina_List *params)
35 EINA_LIST_FOREACH (params, it, curr) 35 EINA_LIST_FOREACH (params, it, curr)
36 { 36 {
37 doc += _comment_parameter 37 doc += _comment_parameter
38 (static_cast<Eolian_Function_Parameter>(curr)) + "\n"; 38 (static_cast<Eolian_Function_Parameter*>(curr)) + "\n";
39 } 39 }
40 return doc; 40 return doc;
41} 41}
diff --git a/src/bin/eolian_cxx/eolian_wrappers.hh b/src/bin/eolian_cxx/eolian_wrappers.hh
index 92e9c5e681..d4e8eb8695 100644
--- a/src/bin/eolian_cxx/eolian_wrappers.hh
+++ b/src/bin/eolian_cxx/eolian_wrappers.hh
@@ -234,13 +234,13 @@ property_is_setter(Eolian_Function const& func)
234} 234}
235 235
236inline std::string 236inline std::string
237parameter_name(Eolian_Function_Parameter const& parameter) 237parameter_name(Eolian_Function_Parameter const *& parameter)
238{ 238{
239 return safe_strshare(::eolian_parameter_name_get(parameter)) + "_"; 239 return safe_strshare(::eolian_parameter_name_get(parameter)) + "_";
240} 240}
241 241
242inline bool 242inline bool
243parameter_is_out(Eolian_Function_Parameter const& parameter) 243parameter_is_out(Eolian_Function_Parameter const *& parameter)
244{ 244{
245 Eolian_Parameter_Dir direction; 245 Eolian_Parameter_Dir direction;
246 ::eolian_parameter_information_get(parameter, &direction, NULL, NULL, NULL); 246 ::eolian_parameter_information_get(parameter, &direction, NULL, NULL, NULL);
@@ -248,7 +248,7 @@ parameter_is_out(Eolian_Function_Parameter const& parameter)
248} 248}
249 249
250inline bool 250inline bool
251parameter_is_const(Eolian_Function_Parameter const& parameter, 251parameter_is_const(Eolian_Function_Parameter const *& parameter,
252 Eolian_Function_Type func_type) 252 Eolian_Function_Type func_type)
253{ 253{
254 return ::eolian_parameter_const_attribute_get 254 return ::eolian_parameter_const_attribute_get
@@ -256,7 +256,7 @@ parameter_is_const(Eolian_Function_Parameter const& parameter,
256} 256}
257 257
258inline bool 258inline bool
259parameter_is_const(Eolian_Function_Parameter const& parameter, 259parameter_is_const(Eolian_Function_Parameter const *& parameter,
260 getter_t func_type) 260 getter_t func_type)
261{ 261{
262 return ::eolian_parameter_const_attribute_get 262 return ::eolian_parameter_const_attribute_get
@@ -264,7 +264,7 @@ parameter_is_const(Eolian_Function_Parameter const& parameter,
264} 264}
265 265
266inline bool 266inline bool
267parameter_is_const(Eolian_Function_Parameter const& parameter, 267parameter_is_const(Eolian_Function_Parameter const *& parameter,
268 setter_t func_type) 268 setter_t func_type)
269{ 269{
270 return ::eolian_parameter_const_attribute_get 270 return ::eolian_parameter_const_attribute_get
@@ -272,7 +272,7 @@ parameter_is_const(Eolian_Function_Parameter const& parameter,
272} 272}
273 273
274inline bool 274inline bool
275parameter_is_const(Eolian_Function_Parameter const& parameter, 275parameter_is_const(Eolian_Function_Parameter const *& parameter,
276 Eolian_Function const& func) 276 Eolian_Function const& func)
277{ 277{
278 assert(function_type(func) != EOLIAN_PROPERTY); 278 assert(function_type(func) != EOLIAN_PROPERTY);
@@ -281,7 +281,7 @@ parameter_is_const(Eolian_Function_Parameter const& parameter,
281} 281}
282 282
283inline efl::eolian::eolian_type_instance 283inline efl::eolian::eolian_type_instance
284parameter_type(Eolian_Function_Parameter const& parameter, 284parameter_type(Eolian_Function_Parameter const *& parameter,
285 Eolian_Function_Type func_type = method_t::value) 285 Eolian_Function_Type func_type = method_t::value)
286{ 286{
287 efl::eolian::eolian_type_instance type 287 efl::eolian::eolian_type_instance type
@@ -296,13 +296,13 @@ parameter_type(Eolian_Function_Parameter const& parameter,
296} 296}
297 297
298inline efl::eolian::eolian_type_instance 298inline efl::eolian::eolian_type_instance
299parameter_type(Eolian_Function_Parameter const& parameter, getter_t func_type) 299parameter_type(Eolian_Function_Parameter const *& parameter, getter_t func_type)
300{ 300{
301 return parameter_type(parameter, func_type.value); 301 return parameter_type(parameter, func_type.value);
302} 302}
303 303
304inline efl::eolian::eolian_type_instance 304inline efl::eolian::eolian_type_instance
305parameter_type(Eolian_Function_Parameter const& parameter, setter_t func_type) 305parameter_type(Eolian_Function_Parameter const *& parameter, setter_t func_type)
306{ 306{
307 return parameter_type(parameter, func_type.value); 307 return parameter_type(parameter, func_type.value);
308} 308}