idc.py: Whitespace and indentation fixes

This commit is contained in:
gergely.erdelyi 2009-10-17 21:12:15 +00:00
parent cb57938dcc
commit c21a932cec

View File

@ -6213,6 +6213,7 @@ PT_PAK4 = 0x0030 # #pragma pack(4)
PT_PAK8 = 0x0040 # #pragma pack(8) PT_PAK8 = 0x0040 # #pragma pack(8)
PT_PAK16 = 0x0050 # #pragma pack(16) PT_PAK16 = 0x0050 # #pragma pack(16)
def GetMaxLocalType(): def GetMaxLocalType():
""" """
Get number of local types + 1 Get number of local types + 1
@ -6236,6 +6237,7 @@ def SetLocalType(ordinal, input, flags):
""" """
return idaapi.idc_set_local_type(ordinal, input, flags) return idaapi.idc_set_local_type(ordinal, input, flags)
def GetLocalType(ordinal, flags): def GetLocalType(ordinal, flags):
""" """
Retrieve a local type declaration Retrieve a local type declaration
@ -7048,14 +7050,14 @@ def SetRegValue(value, name):
""" """
rv = idaapi.regval_t() rv = idaapi.regval_t()
if type(value)==types.StringType: if type(value)==types.StringType:
value = int(value) value = int(value)
elif type(value)!=types.IntType: elif type(value)!=types.IntType:
print "SetRegValue: value must be integer!" print "SetRegValue: value must be integer!"
return BADADDR return BADADDR
if value<0: if value<0:
#ival_set cannot handle negative numbers #ival_set cannot handle negative numbers
value &= 0xFFFFFFFF value &= 0xFFFFFFFF
rv.ival = value rv.ival = value
return idaapi.set_reg_val(name, rv) return idaapi.set_reg_val(name, rv)