Skip to content

Commit

Permalink
Renaming type->signature + added docstrings.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmr232 committed Jun 17, 2017
1 parent 3b1980d commit 39d4961
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sark/code/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,17 +286,19 @@ def func_t(self):
return self._func

@property
def type(self):
def signature(self):
'''The C signature of the function.'''
return idc.GetType(self.startEA)

@type.setter
def type(self, c_signature):
@signature.setter
def signature(self, c_signature):
success = idc.SetType(self.startEA, c_signature)
if not success:
raise exceptions.SetTypeFailed(self.startEA, c_signature)

@property
def tinfo(self):
'''The tinfo of the function type'''
return idc.GetTinfo(self.startEA)

@tinfo.setter
Expand Down

0 comments on commit 39d4961

Please sign in to comment.