summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx/grammar/inheritance_base_generator.hh
diff options
context:
space:
mode:
authorSavio Sena <savio@expertisesolutions.com.br>2014-07-16 21:29:47 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-07-18 18:57:13 -0300
commit78e396ac19b203b0dbfb1a2b8d298177fffde9e4 (patch)
tree8281622f4881cf40a65167e3fa3e99d22f4563b3 /src/lib/eolian_cxx/grammar/inheritance_base_generator.hh
parent88f12935278c9d3547da96b74e525402e2efd3f0 (diff)
eolian-cxx: Initial version of complex types / callbacks / events implementation.
Diffstat (limited to 'src/lib/eolian_cxx/grammar/inheritance_base_generator.hh')
-rw-r--r--src/lib/eolian_cxx/grammar/inheritance_base_generator.hh12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/eolian_cxx/grammar/inheritance_base_generator.hh b/src/lib/eolian_cxx/grammar/inheritance_base_generator.hh
index 2bc9a0e755..8f426a50c0 100644
--- a/src/lib/eolian_cxx/grammar/inheritance_base_generator.hh
+++ b/src/lib/eolian_cxx/grammar/inheritance_base_generator.hh
@@ -96,7 +96,7 @@ inline std::ostream&
96operator<<(std::ostream& out, inheritance_wrapper const& x) 96operator<<(std::ostream& out, inheritance_wrapper const& x)
97{ 97{
98 out << "template <typename T>" << endl 98 out << "template <typename T>" << endl
99 << x._func.ret << " " 99 << reinterpret_type(x._func.ret) << " "
100 << _ns_as_prefix(x._cls) << "_" 100 << _ns_as_prefix(x._cls) << "_"
101 << x._cls.name << "_" << x._func.name 101 << x._cls.name << "_" << x._func.name
102 << "_wrapper(Eo* objid EINA_UNUSED, " 102 << "_wrapper(Eo* objid EINA_UNUSED, "
@@ -130,7 +130,7 @@ operator<<(std::ostream& out, inheritance_wrappers const& x)
130 { 130 {
131 eo_function const& func = *it; 131 eo_function const& func = *it;
132 out << "template <typename T>" << endl 132 out << "template <typename T>" << endl
133 << func.ret << " " 133 << reinterpret_type(func.ret) << " "
134 << _ns_as_prefix(x._cls) << "_" 134 << _ns_as_prefix(x._cls) << "_"
135 << x._cls.name << "_" << func.name 135 << x._cls.name << "_" << func.name
136 << "_wrapper(Eo* objid EINA_UNUSED, " 136 << "_wrapper(Eo* objid EINA_UNUSED, "
@@ -186,13 +186,13 @@ operator<<(std::ostream& out, inheritance_base_operations_function const& x)
186 eo_function const& func = x._func; 186 eo_function const& func = x._func;
187 bool is_void = function_is_void(func); 187 bool is_void = function_is_void(func);
188 188
189 out << tab(2) << "virtual " << func.ret << " " 189 out << tab(2) << "virtual " << reinterpret_type(func.ret) << " "
190 << func.name << "(" 190 << func.name << "("
191 << parameters_declaration(func.params) << ")" << endl 191 << parameters_declaration(func.params) << ")" << endl
192 << tab(2) << "{" << endl; 192 << tab(2) << "{" << endl;
193 if (!is_void) 193 if (!is_void)
194 { 194 {
195 out << tab(3) << func.ret << " _tmp_ret = {};" << endl; 195 out << tab(3) << reinterpret_type(func.ret) << " _tmp_ret = {};" << endl;
196 } 196 }
197 out << tab(3) 197 out << tab(3)
198 << "eo_do_super(static_cast<T*>(this)->_eo_ptr()" << endl 198 << "eo_do_super(static_cast<T*>(this)->_eo_ptr()" << endl
@@ -301,7 +301,7 @@ operator<<(std::ostream& out, inheritance_extension_function const& x)
301{ 301{
302 bool is_void = function_is_void(x._func); 302 bool is_void = function_is_void(x._func);
303 out << tab(2) 303 out << tab(2)
304 << x._func.ret << " " 304 << reinterpret_type(x._func.ret) << " "
305 << x._func.name << "(" 305 << x._func.name << "("
306 << parameters_declaration(x._func.params) 306 << parameters_declaration(x._func.params)
307 << ")" << endl 307 << ")" << endl
@@ -309,7 +309,7 @@ operator<<(std::ostream& out, inheritance_extension_function const& x)
309 309
310 if (!is_void) 310 if (!is_void)
311 { 311 {
312 out << tab(3) << x._func.ret << " _tmp_ret = {};" << endl; 312 out << tab(3) << reinterpret_type(x._func.ret) << " _tmp_ret = {};" << endl;
313 } 313 }
314 314
315 out << tab(3) << "eo_do(static_cast<T*>(this)->_eo_ptr(), " 315 out << tab(3) << "eo_do(static_cast<T*>(this)->_eo_ptr(), "