Added support for retrieving large local types

This commit is contained in:
gergely.erdelyi
2009-04-27 17:38:17 +00:00
parent 5e1871f485
commit 864165a44c
2 changed files with 17 additions and 5 deletions

View File

@ -6089,8 +6089,12 @@ def GetLocalType(ordinal, flags):
@param flags: any of PRTYPE_* constants
@return: local type as a C declaration or ""
@note: This function can return types strings up to 64KiB. Use idaapi.idc_get_local_type()
for larger types.
"""
return idaapi.idc_get_local_type(ordinal, flags)
res,str = idaapi.idc_get_local_type(ordinal, flags, 2**16)
return str
PRTYPE_1LINE = 0x0000 # print to one line
PRTYPE_MULTI = 0x0001 # print to many lines