summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2014-02-16 17:10:07 +0200
committerYakov Goldberg <yakov.g@samsung.com>2014-02-16 17:10:07 +0200
commit4465f82abe1478893b8f9483aa3683a9b4fbe3d0 (patch)
treee1079bd016eee875d7c7161db5b9cf733fa425c3
parent62b46a83d66cf301abb23c541962ed99468a0eae (diff)
add hardcoded cases for Edje and evas_object_size_set/getdevelop
-rw-r--r--eoparser/cparser.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/eoparser/cparser.py b/eoparser/cparser.py
index 397eb86..fb1d199 100644
--- a/eoparser/cparser.py
+++ b/eoparser/cparser.py
@@ -449,6 +449,7 @@ class Cparser(object):
449 legacy_name = "" 449 legacy_name = ""
450 if len(ll): 450 if len(ll):
451 legacy_name = ll[0] 451 legacy_name = ll[0]
452 legacy_name = "edje_object" if legacy_name == "edje" else legacy_name
452 else: 453 else:
453 cl_name_arr = ["Evas_Box", "Evas_Grid", "Evas_Image", "Evas_Line", "Evas_Polygon", "Evas_Rectangle", 454 cl_name_arr = ["Evas_Box", "Evas_Grid", "Evas_Image", "Evas_Line", "Evas_Polygon", "Evas_Rectangle",
454 "Evas_Smart", "Evas_Smart_Clipped", "Evas_Table", "Evas_Textblock", "Evas_Text", "Evas_Textgrid"] 455 "Evas_Smart", "Evas_Smart_Clipped", "Evas_Table", "Evas_Textblock", "Evas_Text", "Evas_Textgrid"]
@@ -610,11 +611,11 @@ class Cparser(object):
610 611
611 def find_func_in_hash(self,funcs_list): 612 def find_func_in_hash(self,funcs_list):
612 for func in funcs_list: 613 for func in funcs_list:
613 # try to find right by the key
614 func_backup = "" 614 func_backup = ""
615 if "ecore_poller_interval" in func: 615 if "ecore_poller_interval" in func:
616 func_backup = func 616 func_backup = func
617 func = func.replace("ecore_poller_interval", "ecore_poller_poller_interval") 617 func = func.replace("ecore_poller_interval", "ecore_poller_poller_interval")
618 # try to find right by the key
618 if func in self.eapi_func_ret_type_hash: 619 if func in self.eapi_func_ret_type_hash:
619 # if func totally maches put None 620 # if func totally maches put None
620 eo_func = api_func = func 621 eo_func = api_func = func
@@ -623,6 +624,11 @@ class Cparser(object):
623 self.all_eo_funcs_hash[eo_func] = (self.eapi_func_ret_type_hash[api_func], None if eo_func == api_func else api_func) 624 self.all_eo_funcs_hash[eo_func] = (self.eapi_func_ret_type_hash[api_func], None if eo_func == api_func else api_func)
624 del(self.eapi_func_ret_type_hash[api_func]) 625 del(self.eapi_func_ret_type_hash[api_func])
625 continue 626 continue
627 else:
628 if func in ["evas_object_size_get", "evas_object_size_set"]:
629 self.all_eo_funcs_hash[func] = (("void" , [], None), None)
630 continue
631
626 632
627 # Probaly need to remove this check by tokens 633 # Probaly need to remove this check by tokens
628 # 634 #