summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorSavio Sena <savio@expertisesolutions.com.br>2014-07-09 15:55:24 -0300
committerSavio Sena <savio@expertisesolutions.com.br>2014-07-09 15:55:24 -0300
commit012b586c8b280272e0dca725028c2ec0b1d8be72 (patch)
tree9bfedb70683dd965f0eaeae7c8df13222aac206b /src/bin/eolian_cxx
parentd7b7f19e5e791d1b0b9304f4c42d550d7b3e7634 (diff)
eolian-cxx: Pass references instead of pointers.
Fix Eolian-Cxx API to pass references instead of pointers.
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/convert.cc29
-rw-r--r--src/bin/eolian_cxx/convert.hh2
-rw-r--r--src/bin/eolian_cxx/convert_comments.cc18
-rw-r--r--src/bin/eolian_cxx/convert_comments.hh2
-rw-r--r--src/bin/eolian_cxx/eolian_cxx.cc19
-rw-r--r--src/bin/eolian_cxx/eolian_wrappers.hh45
6 files changed, 56 insertions, 59 deletions
diff --git a/src/bin/eolian_cxx/convert.cc b/src/bin/eolian_cxx/convert.cc
index d0ce38435d..6a6e7b1f22 100644
--- a/src/bin/eolian_cxx/convert.cc
+++ b/src/bin/eolian_cxx/convert.cc
@@ -73,12 +73,12 @@ convert_eolian_parameters(Eolian_Function const& func)
73} 73}
74 74
75static efl::eolian::functions_container_type 75static efl::eolian::functions_container_type
76convert_eolian_property_to_functions(Eolian_Class const *& klass) 76convert_eolian_property_to_functions(Eolian_Class const& klass)
77{ 77{
78 efl::eolian::functions_container_type container; 78 efl::eolian::functions_container_type container;
79 std::string cxx_classname = safe_lower(class_name(klass)); 79 std::string cxx_classname = safe_lower(class_name(klass));
80 const Eina_List *properties = 80 const Eina_List *properties =
81 eolian_class_functions_list_get(klass, EOLIAN_PROPERTY); // XXX 81 ::eolian_class_functions_list_get(&klass, EOLIAN_PROPERTY); // XXX
82 const Eina_List *it; 82 const Eina_List *it;
83 void *curr; 83 void *curr;
84 std::string prefix(class_prefix(klass)); 84 std::string prefix(class_prefix(klass));
@@ -156,10 +156,10 @@ convert_eolian_property_to_functions(Eolian_Class const *& klass)
156} 156}
157 157
158void 158void
159convert_eolian_inheritances(efl::eolian::eo_class& cls, Eolian_Class const *& klass) 159convert_eolian_inheritances(efl::eolian::eo_class& cls, Eolian_Class const& klass)
160{ 160{
161 const Eina_List *inheritances = 161 const Eina_List *inheritances =
162 ::eolian_class_inherits_list_get(klass); 162 ::eolian_class_inherits_list_get(&klass);
163 const Eina_List *it; 163 const Eina_List *it;
164 void *curr; 164 void *curr;
165 165
@@ -190,13 +190,13 @@ convert_eolian_inheritances(efl::eolian::eo_class& cls, Eolian_Class const *& kl
190} 190}
191 191
192void 192void
193convert_eolian_implements(efl::eolian::eo_class& cls, Eolian_Class const *& klass) 193convert_eolian_implements(efl::eolian::eo_class& cls, Eolian_Class const& klass)
194{ 194{
195 const Eina_List *it; 195 const Eina_List *it;
196 std::string prefix(class_prefix(klass)); 196 std::string prefix(class_prefix(klass));
197 void *impl_desc_; 197 void *impl_desc_;
198 198
199 EINA_LIST_FOREACH(eolian_class_implements_list_get(klass), it, impl_desc_) 199 EINA_LIST_FOREACH(::eolian_class_implements_list_get(&klass), it, impl_desc_)
200 { 200 {
201 Eolian_Implement *impl_desc = static_cast<Eolian_Implement*>(impl_desc_); 201 Eolian_Implement *impl_desc = static_cast<Eolian_Implement*>(impl_desc_);
202 Eolian_Class *impl_class; 202 Eolian_Class *impl_class;
@@ -218,13 +218,13 @@ convert_eolian_implements(efl::eolian::eo_class& cls, Eolian_Class const *& klas
218} 218}
219 219
220void 220void
221convert_eolian_constructors(efl::eolian::eo_class& cls, Eolian_Class const *& klass) 221convert_eolian_constructors(efl::eolian::eo_class& cls, Eolian_Class const& klass)
222{ 222{
223 const Eina_List *it; 223 const Eina_List *it;
224 void *curr; 224 void *curr;
225 std::string prefix(class_prefix(klass)); 225 std::string prefix(class_prefix(klass));
226 const Eina_List *constructors = 226 const Eina_List *constructors =
227 eolian_class_functions_list_get(klass, EOLIAN_CTOR); 227 ::eolian_class_functions_list_get(&klass, EOLIAN_CTOR);
228 EINA_LIST_FOREACH (constructors, it, curr) 228 EINA_LIST_FOREACH (constructors, it, curr)
229 { 229 {
230 Eolian_Function eo_constructor = static_cast<Eolian_Function>(curr); 230 Eolian_Function eo_constructor = static_cast<Eolian_Function>(curr);
@@ -237,13 +237,13 @@ convert_eolian_constructors(efl::eolian::eo_class& cls, Eolian_Class const *& kl
237} 237}
238 238
239void 239void
240convert_eolian_functions(efl::eolian::eo_class& cls, Eolian_Class const *& klass) 240convert_eolian_functions(efl::eolian::eo_class& cls, Eolian_Class const& klass)
241{ 241{
242 const Eina_List *it; 242 const Eina_List *it;
243 void *curr; 243 void *curr;
244 244
245 const Eina_List *eolian_functions = 245 const Eina_List *eolian_functions =
246 eolian_class_functions_list_get(klass, EOLIAN_METHOD); 246 ::eolian_class_functions_list_get(&klass, EOLIAN_METHOD);
247 EINA_LIST_FOREACH (eolian_functions, it, curr) 247 EINA_LIST_FOREACH (eolian_functions, it, curr)
248 { 248 {
249 efl::eolian::eo_function func_; 249 efl::eolian::eo_function func_;
@@ -260,7 +260,7 @@ convert_eolian_functions(efl::eolian::eo_class& cls, Eolian_Class const *& klass
260} 260}
261 261
262void 262void
263convert_eolian_properties(efl::eolian::eo_class& cls, Eolian_Class const *& klass) 263convert_eolian_properties(efl::eolian::eo_class& cls, Eolian_Class const& klass)
264{ 264{
265 efl::eolian::functions_container_type properties 265 efl::eolian::functions_container_type properties
266 = convert_eolian_property_to_functions(klass); 266 = convert_eolian_property_to_functions(klass);
@@ -269,7 +269,7 @@ convert_eolian_properties(efl::eolian::eo_class& cls, Eolian_Class const *& klas
269} 269}
270 270
271void 271void
272convert_eolian_events(efl::eolian::eo_class& cls, Eolian_Class const *& klass) 272convert_eolian_events(efl::eolian::eo_class& cls, Eolian_Class const& klass)
273{ 273{
274 efl::eolian::events_container_type events = event_list(klass); 274 efl::eolian::events_container_type events = event_list(klass);
275 cls.events.reserve(cls.events.size() + events.size()); 275 cls.events.reserve(cls.events.size() + events.size());
@@ -277,7 +277,7 @@ convert_eolian_events(efl::eolian::eo_class& cls, Eolian_Class const *& klass)
277} 277}
278 278
279efl::eolian::eo_class 279efl::eolian::eo_class
280convert_eolian_class_new(Eolian_Class const *& klass) 280convert_eolian_class_new(Eolian_Class const& klass)
281{ 281{
282 efl::eolian::eo_class cls; 282 efl::eolian::eo_class cls;
283 cls.type = class_type(klass); 283 cls.type = class_type(klass);
@@ -289,9 +289,8 @@ convert_eolian_class_new(Eolian_Class const *& klass)
289} 289}
290 290
291efl::eolian::eo_class 291efl::eolian::eo_class
292convert_eolian_class(const Eolian_Class *klass) 292convert_eolian_class(const Eolian_Class& klass)
293{ 293{
294 assert(klass != NULL);
295 efl::eolian::eo_class cls(eolian_cxx::convert_eolian_class_new(klass)); 294 efl::eolian::eo_class cls(eolian_cxx::convert_eolian_class_new(klass));
296 eolian_cxx::convert_eolian_inheritances(cls, klass); 295 eolian_cxx::convert_eolian_inheritances(cls, klass);
297 eolian_cxx::convert_eolian_implements(cls, klass); 296 eolian_cxx::convert_eolian_implements(cls, klass);
diff --git a/src/bin/eolian_cxx/convert.hh b/src/bin/eolian_cxx/convert.hh
index 43d746213c..df829f4afe 100644
--- a/src/bin/eolian_cxx/convert.hh
+++ b/src/bin/eolian_cxx/convert.hh
@@ -12,7 +12,7 @@ namespace eolian_cxx
12/// @param cls The Eolian class. 12/// @param cls The Eolian class.
13/// @return The @p eo_class describing @p classname. 13/// @return The @p eo_class describing @p classname.
14/// 14///
15efl::eolian::eo_class convert_eolian_class(const Eolian_Class *klass); 15efl::eolian::eo_class convert_eolian_class(const Eolian_Class& klass);
16 16
17} 17}
18 18
diff --git a/src/bin/eolian_cxx/convert_comments.cc b/src/bin/eolian_cxx/convert_comments.cc
index 70f7e728e0..dd20aa8c3b 100644
--- a/src/bin/eolian_cxx/convert_comments.cc
+++ b/src/bin/eolian_cxx/convert_comments.cc
@@ -10,7 +10,7 @@ _comment_parameter(Eolian_Function_Parameter *param)
10 Eolian_Parameter_Dir direction; 10 Eolian_Parameter_Dir direction;
11 Eina_Stringshare *description; 11 Eina_Stringshare *description;
12 12
13 eolian_parameter_information_get 13 ::eolian_parameter_information_get
14 (param, &direction, NULL, NULL, &description); 14 (param, &direction, NULL, NULL, &description);
15 15
16 std::string doc = "@param"; 16 std::string doc = "@param";
@@ -19,7 +19,7 @@ _comment_parameter(Eolian_Function_Parameter *param)
19 else if (direction == EOLIAN_INOUT_PARAM) doc += "[inout] "; 19 else if (direction == EOLIAN_INOUT_PARAM) doc += "[inout] ";
20 else assert(false); 20 else assert(false);
21 21
22 doc += safe_strshare(eolian_parameter_name_get(param)); 22 doc += safe_strshare(::eolian_parameter_name_get(param));
23 doc += " "; 23 doc += " ";
24 doc += safe_str(description); 24 doc += safe_str(description);
25 25
@@ -45,12 +45,12 @@ _comment_brief_and_params(Eolian_Function function,
45 const char *key = EOLIAN_COMMENT) 45 const char *key = EOLIAN_COMMENT)
46{ 46{
47 std::string doc = ""; 47 std::string doc = "";
48 std::string func = safe_str(eolian_function_description_get(function, key)); 48 std::string func = safe_str(::eolian_function_description_get(function, key));
49 if (func != "") 49 if (func != "")
50 { 50 {
51 doc += "@brief " + func + "\n\n"; 51 doc += "@brief " + func + "\n\n";
52 } 52 }
53 std::string params = _comment_parameters_list(eolian_parameters_list_get(function)); 53 std::string params = _comment_parameters_list(::eolian_parameters_list_get(function));
54 if (params != "") 54 if (params != "")
55 { 55 {
56 doc += params + "\n"; 56 doc += params + "\n";
@@ -62,13 +62,13 @@ static std::string
62_comment_return(Eolian_Function function, 62_comment_return(Eolian_Function function,
63 Eolian_Function_Type rettype) 63 Eolian_Function_Type rettype)
64{ 64{
65 Eolian_Type *rettypet = eolian_function_return_type_get(function, rettype); 65 Eolian_Type *rettypet = ::eolian_function_return_type_get(function, rettype);
66 const char *rettypes = NULL; 66 const char *rettypes = NULL;
67 if (rettypet) rettypes = eolian_type_c_type_get(rettypet); 67 if (rettypet) rettypes = ::eolian_type_c_type_get(rettypet);
68 std::string doc = ""; 68 std::string doc = "";
69 std::string ret = safe_str(rettypes); 69 std::string ret = safe_str(rettypes);
70 if (rettypes) eina_stringshare_del(rettypes); 70 if (rettypes) eina_stringshare_del(rettypes);
71 std::string comment = safe_str(eolian_function_return_comment_get(function, rettype)); 71 std::string comment = safe_str(::eolian_function_return_comment_get(function, rettype));
72 if (ret != "void" && ret != "" && comment != "") 72 if (ret != "void" && ret != "" && comment != "")
73 { 73 {
74 doc = "@return " + comment; 74 doc = "@return " + comment;
@@ -77,9 +77,9 @@ _comment_return(Eolian_Function function,
77} 77}
78 78
79std::string 79std::string
80convert_comments_class(Eolian_Class const *& klass) 80convert_comments_class(Eolian_Class const& klass)
81{ 81{
82 return safe_str(eolian_class_description_get(klass)); 82 return safe_str(::eolian_class_description_get(&klass));
83} 83}
84 84
85std::string 85std::string
diff --git a/src/bin/eolian_cxx/convert_comments.hh b/src/bin/eolian_cxx/convert_comments.hh
index 2adad607c1..75d420af58 100644
--- a/src/bin/eolian_cxx/convert_comments.hh
+++ b/src/bin/eolian_cxx/convert_comments.hh
@@ -11,7 +11,7 @@
11 11
12namespace eolian_cxx { 12namespace eolian_cxx {
13 13
14std::string convert_comments_class(Eolian_Class const *& kls); 14std::string convert_comments_class(Eolian_Class const& kls);
15 15
16std::string convert_comments_function(Eolian_Function const& function, 16std::string convert_comments_function(Eolian_Function const& function,
17 Eolian_Function_Type func_type); 17 Eolian_Function_Type func_type);
diff --git a/src/bin/eolian_cxx/eolian_cxx.cc b/src/bin/eolian_cxx/eolian_cxx.cc
index c034ef597f..3e54ed3f13 100644
--- a/src/bin/eolian_cxx/eolian_cxx.cc
+++ b/src/bin/eolian_cxx/eolian_cxx.cc
@@ -88,17 +88,17 @@ opts_check(eolian_cxx::options_type const& opts)
88} 88}
89 89
90efl::eolian::eo_generator_options 90efl::eolian::eo_generator_options
91generator_options(const Eolian_Class *klass) 91generator_options(const Eolian_Class& klass)
92{ 92{
93 efl::eolian::eo_generator_options gen_opts; 93 efl::eolian::eo_generator_options gen_opts;
94 gen_opts.c_headers.push_back(class_base_file(klass) + ".h"); 94 gen_opts.c_headers.push_back(class_base_file(klass) + ".h");
95 95
96 void *cur = NULL; 96 void *cur = NULL;
97 const Eina_List *itr, *inheritances = eolian_class_inherits_list_get(klass); 97 const Eina_List *itr, *inheritances = ::eolian_class_inherits_list_get(&klass);
98 EINA_LIST_FOREACH(inheritances, itr, cur) 98 EINA_LIST_FOREACH(inheritances, itr, cur)
99 { 99 {
100 const Eolian_Class *ext = eolian_class_find_by_name(static_cast<const char*>(cur)); 100 const Eolian_Class *ext = ::eolian_class_find_by_name(static_cast<const char*>(cur));
101 std::string eo_parent_file = class_base_file(ext); 101 std::string eo_parent_file = class_base_file(*ext);
102 if (!eo_parent_file.empty()) 102 if (!eo_parent_file.empty())
103 { 103 {
104 // we have our own eo_base.hh 104 // we have our own eo_base.hh
@@ -121,9 +121,8 @@ generator_options(const Eolian_Class *klass)
121} 121}
122 122
123static bool 123static bool
124generate(const Eolian_Class *klass, eolian_cxx::options_type const& opts) 124generate(const Eolian_Class& klass, eolian_cxx::options_type const& opts)
125{ 125{
126 assert(!!klass);
127 efl::eolian::eo_class cls = eolian_cxx::convert_eolian_class(klass); 126 efl::eolian::eo_class cls = eolian_cxx::convert_eolian_class(klass);
128 efl::eolian::eo_generator_options gen_opts = generator_options(klass); 127 efl::eolian::eo_generator_options gen_opts = generator_options(klass);
129 std::string outname = opts.out_file.empty() ? (class_base_file(klass) + ".hh") : opts.out_file; 128 std::string outname = opts.out_file.empty() ? (class_base_file(klass) + ".hh") : opts.out_file;
@@ -164,17 +163,17 @@ run(options_type const& opts)
164 klass = class_from_file(opts.in_file); 163 klass = class_from_file(opts.in_file);
165 if (klass) 164 if (klass)
166 { 165 {
167 if (!generate(klass, opts)) 166 if (!generate(*klass, opts))
168 goto err; 167 goto err;
169 } 168 }
170 else 169 else
171 { 170 {
172 auto classes = class_list_all(); 171 auto classes = class_list_all();
173 for (const Eolian_Class *c : classes) 172 for (const Eolian_Class& c : classes)
174 { 173 {
175 if (!generate(c, opts)) 174 if (!generate(c, opts))
176 { 175 {
177 klass = c; 176 klass = &c;
178 goto err; 177 goto err;
179 } 178 }
180 } 179 }
@@ -182,7 +181,7 @@ run(options_type const& opts)
182 return; 181 return;
183 err: 182 err:
184 EINA_CXX_DOM_LOG_ERR(eolian_cxx::domain) 183 EINA_CXX_DOM_LOG_ERR(eolian_cxx::domain)
185 << "Error generating: " << class_name(klass) 184 << "Error generating: " << class_name(*klass)
186 << std::endl; 185 << std::endl;
187 std::abort(); 186 std::abort();
188} 187}
diff --git a/src/bin/eolian_cxx/eolian_wrappers.hh b/src/bin/eolian_cxx/eolian_wrappers.hh
index d4e8eb8695..3893fefa0e 100644
--- a/src/bin/eolian_cxx/eolian_wrappers.hh
+++ b/src/bin/eolian_cxx/eolian_wrappers.hh
@@ -27,34 +27,34 @@ method_t const method = {};
27struct ctor_t { static constexpr ::Eolian_Function_Type value = ::EOLIAN_CTOR; }; 27struct ctor_t { static constexpr ::Eolian_Function_Type value = ::EOLIAN_CTOR; };
28ctor_t const ctor = {}; 28ctor_t const ctor = {};
29 29
30inline Eolian_Class * 30inline Eolian_Class*
31class_from_file(std::string const& file) 31class_from_file(std::string const& file)
32{ 32{
33 return ::eolian_class_find_by_file(file.c_str()); 33 return ::eolian_class_find_by_file(file.c_str());
34} 34}
35 35
36inline std::string 36inline std::string
37class_file(Eolian_Class const *& klass) 37class_file(Eolian_Class const& klass)
38{ 38{
39 return safe_str(::eolian_class_file_get(klass)); 39 return safe_str(::eolian_class_file_get(&klass));
40} 40}
41 41
42inline std::string 42inline std::string
43class_base_file(Eolian_Class const *& klass) 43class_base_file(Eolian_Class const& klass)
44{ 44{
45 return path_base(safe_str(::eolian_class_file_get(klass))); 45 return path_base(safe_str(::eolian_class_file_get(&klass)));
46} 46}
47 47
48inline std::string 48inline std::string
49class_name(Eolian_Class const *& klass) 49class_name(Eolian_Class const& klass)
50{ 50{
51 return safe_str(::eolian_class_name_get(klass)); 51 return safe_str(::eolian_class_name_get(&klass));
52} 52}
53 53
54inline std::string 54inline std::string
55class_full_name(Eolian_Class const *& klass) 55class_full_name(Eolian_Class const& klass)
56{ 56{
57 return safe_str(::eolian_class_full_name_get(klass)); 57 return safe_str(::eolian_class_full_name_get(&klass));
58} 58}
59 59
60inline Eolian_Class * 60inline Eolian_Class *
@@ -64,10 +64,10 @@ class_from_name(std::string const& classname)
64} 64}
65 65
66inline std::string 66inline std::string
67class_eo_name(Eolian_Class const *& klass) 67class_eo_name(Eolian_Class const& klass)
68{ 68{
69 std::string suffix; 69 std::string suffix;
70 switch (eolian_class_type_get(klass)) 70 switch (::eolian_class_type_get(&klass))
71 { 71 {
72 case EOLIAN_CLASS_REGULAR: 72 case EOLIAN_CLASS_REGULAR:
73 case EOLIAN_CLASS_ABSTRACT: 73 case EOLIAN_CLASS_ABSTRACT:
@@ -105,9 +105,9 @@ class_format_cxx(std::string const& fullname)
105} 105}
106 106
107inline std::string 107inline std::string
108class_prefix(Eolian_Class const *& klass) 108class_prefix(Eolian_Class const& klass)
109{ 109{
110 std::string prefix = safe_lower(::eolian_class_eo_prefix_get(klass)); 110 std::string prefix = safe_lower(::eolian_class_eo_prefix_get(&klass));
111 if (prefix.empty()) 111 if (prefix.empty())
112 prefix = safe_lower(find_replace(class_full_name(klass), ".", "_")); 112 prefix = safe_lower(find_replace(class_full_name(klass), ".", "_"));
113 assert(!prefix.empty()); 113 assert(!prefix.empty());
@@ -115,11 +115,10 @@ class_prefix(Eolian_Class const *& klass)
115} 115}
116 116
117inline efl::eolian::eo_class::eo_class_type 117inline efl::eolian::eo_class::eo_class_type
118class_type(Eolian_Class const *& klass) 118class_type(Eolian_Class const& klass)
119{ 119{
120 assert(klass != NULL);
121 efl::eolian::eo_class::eo_class_type type; 120 efl::eolian::eo_class::eo_class_type type;
122 Eolian_Class_Type cls_type = ::eolian_class_type_get(klass); 121 Eolian_Class_Type cls_type = ::eolian_class_type_get(&klass);
123 122
124 if (cls_type == EOLIAN_CLASS_REGULAR) 123 if (cls_type == EOLIAN_CLASS_REGULAR)
125 type = efl::eolian::eo_class::regular_; 124 type = efl::eolian::eo_class::regular_;
@@ -135,11 +134,11 @@ class_type(Eolian_Class const *& klass)
135} 134}
136 135
137inline std::string 136inline std::string
138class_namespace_full(Eolian_Class const *& klass) 137class_namespace_full(Eolian_Class const& klass)
139{ 138{
140 std::string s; 139 std::string s;
141 const Eina_List* list = 140 const Eina_List* list =
142 ::eolian_class_namespaces_list_get(klass), *itr; 141 ::eolian_class_namespaces_list_get(&klass), *itr;
143 void* name; 142 void* name;
144 EINA_LIST_FOREACH(list, itr, name) 143 EINA_LIST_FOREACH(list, itr, name)
145 { 144 {
@@ -151,10 +150,10 @@ class_namespace_full(Eolian_Class const *& klass)
151 return safe_lower(s); 150 return safe_lower(s);
152} 151}
153 152
154inline efl::eina::range_ptr_list<const Eolian_Class *> 153inline efl::eina::range_ptr_list<const Eolian_Class>
155class_list_all() 154class_list_all()
156{ 155{
157 return (Eina_List*)::eolian_all_classes_list_get(); 156 return ::eolian_all_classes_list_get();
158} 157}
159 158
160inline std::string 159inline std::string
@@ -308,7 +307,7 @@ parameter_type(Eolian_Function_Parameter const *& parameter, setter_t func_type)
308} 307}
309 308
310inline efl::eolian::eo_event 309inline efl::eolian::eo_event
311event_create(Eolian_Class const *& klass, const Eolian_Event *event_) 310event_create(Eolian_Class const& klass, const Eolian_Event *event_)
312{ 311{
313 efl::eolian::eo_event event; 312 efl::eolian::eo_event event;
314 const char *name, *type, *comment; 313 const char *name, *type, *comment;
@@ -325,10 +324,10 @@ event_create(Eolian_Class const *& klass, const Eolian_Event *event_)
325} 324}
326 325
327inline efl::eolian::events_container_type 326inline efl::eolian::events_container_type
328event_list(Eolian_Class const *& klass) 327event_list(Eolian_Class const& klass)
329{ 328{
330 efl::eolian::events_container_type events; 329 efl::eolian::events_container_type events;
331 const Eina_List* list = eolian_class_events_list_get(klass); 330 const Eina_List* list = ::eolian_class_events_list_get(&klass);
332 unsigned int length = eina_list_count(list); 331 unsigned int length = eina_list_count(list);
333 for (unsigned int i = 0; i < length; ++i) 332 for (unsigned int i = 0; i < length; ++i)
334 { 333 {