summaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorDaniel Kolesa <daniel@octaforge.org>2019-03-08 09:58:52 -0500
committerMike Blumenkrantz <zmike@samsung.com>2019-03-08 10:12:09 -0500
commitcf200a7d28aada7fff7d01fe3e353bf8359addc0 (patch)
tree2675876e3a1a2765584af59aeda83e7669701c69 /src/scripts
parenta007badbed3972f86bdd09dd974fbfbbde5bc20d (diff)
eolian: remove legacy handling API and most of generation
Summary: This removes all Eolian API that deals with handling of legacy code. It also removes the code using it in the generator as well as bindings, but for now keeps generation of .eo.legacy.h types, as there are still instances in our codebase where things are otherwise broken. We can remove the rest once that is resolved. Reviewers: zmike, cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8255
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/pyolian/eolian.py26
-rw-r--r--src/scripts/pyolian/eolian_lib.py16
2 files changed, 4 insertions, 38 deletions
diff --git a/src/scripts/pyolian/eolian.py b/src/scripts/pyolian/eolian.py
index a2a6b5c323..70ab733ce5 100644
--- a/src/scripts/pyolian/eolian.py
+++ b/src/scripts/pyolian/eolian.py
@@ -661,10 +661,6 @@ class Class(Object):
661 return ret 661 return ret
662 662
663 @cached_property 663 @cached_property
664 def legacy_prefix(self):
665 return _str_to_py(lib.eolian_class_legacy_prefix_get(self))
666
667 @cached_property
668 def eo_prefix(self): 664 def eo_prefix(self):
669 return _str_to_py(lib.eolian_class_eo_prefix_get(self)) 665 return _str_to_py(lib.eolian_class_eo_prefix_get(self))
670 666
@@ -827,8 +823,8 @@ class Function(Object):
827 def __repr__(self): 823 def __repr__(self):
828 return "<eolian.Function '{0.name}'>".format(self) 824 return "<eolian.Function '{0.name}'>".format(self)
829 825
830 def full_c_name_get(self, ftype, use_legacy=False): 826 def full_c_name_get(self, ftype):
831 s = lib.eolian_function_full_c_name_get(self, ftype, use_legacy) 827 s = lib.eolian_function_full_c_name_get(self, ftype)
832 ret = _str_to_py(s) 828 ret = _str_to_py(s)
833 lib.eina_stringshare_del(c_void_p(s)) 829 lib.eina_stringshare_del(c_void_p(s))
834 return ret 830 return ret
@@ -846,18 +842,6 @@ class Function(Object):
846 return self.full_c_name_get(Eolian_Function_Type.PROP_SET) 842 return self.full_c_name_get(Eolian_Function_Type.PROP_SET)
847 843
848 @cached_property 844 @cached_property
849 def full_c_method_name_legacy(self):
850 return self.full_c_name_get(Eolian_Function_Type.METHOD, True)
851
852 @cached_property
853 def full_c_getter_name_legacy(self):
854 return self.full_c_name_get(Eolian_Function_Type.PROP_GET, True)
855
856 @cached_property
857 def full_c_setter_name_legacy(self):
858 return self.full_c_name_get(Eolian_Function_Type.PROP_SET, True)
859
860 @cached_property
861 def type(self): 845 def type(self):
862 return Eolian_Function_Type(lib.eolian_function_type_get(self)) 846 return Eolian_Function_Type(lib.eolian_function_type_get(self))
863 847
@@ -876,12 +860,6 @@ class Function(Object):
876 def setter_scope(self): 860 def setter_scope(self):
877 return self.scope_get(Eolian_Function_Type.PROP_SET) 861 return self.scope_get(Eolian_Function_Type.PROP_SET)
878 862
879 def legacy_get(self, ftype):
880 return _str_to_py(lib.eolian_function_legacy_get(self, ftype))
881
882 def is_legacy_only(self, ftype):
883 return bool(lib.eolian_function_is_legacy_only(self, ftype))
884
885 @cached_property 863 @cached_property
886 def is_class(self): 864 def is_class(self):
887 return bool(lib.eolian_function_is_class(self)) 865 return bool(lib.eolian_function_is_class(self))
diff --git a/src/scripts/pyolian/eolian_lib.py b/src/scripts/pyolian/eolian_lib.py
index 9389683123..9edebd0199 100644
--- a/src/scripts/pyolian/eolian_lib.py
+++ b/src/scripts/pyolian/eolian_lib.py
@@ -242,10 +242,6 @@ lib.eolian_class_type_get.restype = c_int
242lib.eolian_class_documentation_get.argtypes = (c_void_p,) 242lib.eolian_class_documentation_get.argtypes = (c_void_p,)
243lib.eolian_class_documentation_get.restype = c_void_p 243lib.eolian_class_documentation_get.restype = c_void_p
244 244
245# EAPI Eina_Stringshare *eolian_class_legacy_prefix_get(const Eolian_Class *klass);
246lib.eolian_class_legacy_prefix_get.argtypes = (c_void_p,)
247lib.eolian_class_legacy_prefix_get.restype = c_char_p
248
249# EAPI Eina_Stringshare *eolian_class_eo_prefix_get(const Eolian_Class *klass); 245# EAPI Eina_Stringshare *eolian_class_eo_prefix_get(const Eolian_Class *klass);
250lib.eolian_class_eo_prefix_get.argtypes = (c_void_p,) 246lib.eolian_class_eo_prefix_get.argtypes = (c_void_p,)
251lib.eolian_class_eo_prefix_get.restype = c_char_p 247lib.eolian_class_eo_prefix_get.restype = c_char_p
@@ -324,22 +320,14 @@ lib.eolian_function_type_get.restype = c_int
324lib.eolian_function_scope_get.argtypes = (c_void_p, c_int) 320lib.eolian_function_scope_get.argtypes = (c_void_p, c_int)
325lib.eolian_function_scope_get.restype = c_int 321lib.eolian_function_scope_get.restype = c_int
326 322
327# EAPI Eina_Stringshare *eolian_function_full_c_name_get(const Eolian_Function *function_id, Eolian_Function_Type ftype, Eina_Bool use_legacy); 323# EAPI Eina_Stringshare *eolian_function_full_c_name_get(const Eolian_Function *function_id, Eolian_Function_Type ftype);
328lib.eolian_function_full_c_name_get.argtypes = (c_void_p, c_int, c_bool) 324lib.eolian_function_full_c_name_get.argtypes = (c_void_p, c_int)
329lib.eolian_function_full_c_name_get.restype = c_void_p # Stringshare TO BE FREED 325lib.eolian_function_full_c_name_get.restype = c_void_p # Stringshare TO BE FREED
330 326
331# EAPI Eina_Stringshare *eolian_function_legacy_get(const Eolian_Function *function_id, Eolian_Function_Type f_type);
332lib.eolian_function_legacy_get.argtypes = (c_void_p, c_int)
333lib.eolian_function_legacy_get.restype = c_char_p
334
335# EAPI const Eolian_Implement *eolian_function_implement_get(const Eolian_Function *function_id); 327# EAPI const Eolian_Implement *eolian_function_implement_get(const Eolian_Function *function_id);
336lib.eolian_function_implement_get.argtypes = (c_void_p,) 328lib.eolian_function_implement_get.argtypes = (c_void_p,)
337lib.eolian_function_implement_get.restype = c_void_p 329lib.eolian_function_implement_get.restype = c_void_p
338 330
339# EAPI Eina_Bool eolian_function_is_legacy_only(const Eolian_Function *function_id, Eolian_Function_Type ftype);
340lib.eolian_function_is_legacy_only.argtypes = (c_void_p, c_int)
341lib.eolian_function_is_legacy_only.restype = c_bool
342
343# EAPI Eina_Bool eolian_function_is_class(const Eolian_Function *function_id); 331# EAPI Eina_Bool eolian_function_is_class(const Eolian_Function *function_id);
344lib.eolian_function_is_class.argtypes = (c_void_p,) 332lib.eolian_function_is_class.argtypes = (c_void_p,)
345lib.eolian_function_is_class.restype = c_bool 333lib.eolian_function_is_class.restype = c_bool