summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2017-06-05 17:43:21 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2017-06-19 15:19:07 -0300
commit44b5dda25f2bfd2fca501639f125122d5e2bf779 (patch)
tree385111a9969bd83c7d3276557eceb6a28e70b55a
parent4bfd3c3688507799d2cce3306718ffd963176734 (diff)
js: Update after Eolian_Unit API changedevs/lauromoura/js
-rw-r--r--src/bin/eolian_js/eolian/class.hh2
-rw-r--r--src/bin/eolian_js/main.cc8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/eolian_js/eolian/class.hh b/src/bin/eolian_js/eolian/class.hh
index 633d6c4e72..c9f027d532 100644
--- a/src/bin/eolian_js/eolian/class.hh
+++ b/src/bin/eolian_js/eolian/class.hh
@@ -44,7 +44,7 @@ inline std::string type_class_name(Eolian_Type const* tp)
44 tpt = ::eolian_type_type_get(tp); 44 tpt = ::eolian_type_type_get(tp);
45 if (tpt == EOLIAN_TYPE_CLASS) 45 if (tpt == EOLIAN_TYPE_CLASS)
46 { 46 {
47 Eolian_Class const* klass = ::eolian_type_class_get(tp); 47 Eolian_Class const* klass = ::eolian_type_class_get(NULL, tp);
48 if (klass) 48 if (klass)
49 { 49 {
50 Eina_Stringshare* klass_name = ::eolian_class_full_name_get(klass); 50 Eina_Stringshare* klass_name = ::eolian_class_full_name_get(klass);
diff --git a/src/bin/eolian_js/main.cc b/src/bin/eolian_js/main.cc
index dff474f0c7..f3f1a75a5c 100644
--- a/src/bin/eolian_js/main.cc
+++ b/src/bin/eolian_js/main.cc
@@ -513,7 +513,7 @@ int main(int argc, char** argv)
513 { 513 {
514 char* dup = strdup(in_file.c_str()); 514 char* dup = strdup(in_file.c_str());
515 char *bn = basename(dup); 515 char *bn = basename(dup);
516 klass = ::eolian_class_get_by_file(bn); 516 klass = ::eolian_class_get_by_file(NULL, bn);
517 file_basename = bn; 517 file_basename = bn;
518 free(dup); 518 free(dup);
519 } 519 }
@@ -543,7 +543,7 @@ int main(int argc, char** argv)
543 , last; first != last; ++first) 543 , last; first != last; ++first)
544 { 544 {
545 EINA_CXX_DOM_LOG_WARN(eolian::js::domain) << &*first << std::endl; 545 EINA_CXX_DOM_LOG_WARN(eolian::js::domain) << &*first << std::endl;
546 Eolian_Class const* base = ::eolian_class_get_by_name(&*first); 546 Eolian_Class const* base = ::eolian_class_get_by_name(NULL, &*first);
547 function(base); 547 function(base);
548 recurse_inherits(base, function); 548 recurse_inherits(base, function);
549 } 549 }
@@ -679,7 +679,7 @@ int main(int argc, char** argv)
679 679
680 // generate all structs parsed in this file 680 // generate all structs parsed in this file
681 std::stringstream structs_ss; 681 std::stringstream structs_ss;
682 for (efl::eina::iterator<Eolian_Typedecl> first(::eolian_typedecl_structs_get_by_file(file_basename.c_str())) 682 for (efl::eina::iterator<Eolian_Typedecl> first(::eolian_typedecl_structs_get_by_file(NULL, file_basename.c_str()))
683 , last; first != last; ++first) 683 , last; first != last; ++first)
684 { 684 {
685 std::stringstream ss; 685 std::stringstream ss;
@@ -1151,7 +1151,7 @@ int main(int argc, char** argv)
1151 os << structs_ss.str(); 1151 os << structs_ss.str();
1152 1152
1153 // generate enumerations 1153 // generate enumerations
1154 for (efl::eina::iterator<Eolian_Typedecl> first(::eolian_typedecl_enums_get_by_file(file_basename.c_str())) 1154 for (efl::eina::iterator<Eolian_Typedecl> first(::eolian_typedecl_enums_get_by_file(NULL, file_basename.c_str()))
1155 , last; first != last; ++first) 1155 , last; first != last; ++first)
1156 { 1156 {
1157 auto tpd = &*first; 1157 auto tpd = &*first;