mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-24 10:09:20 +01:00
idc.py: Whitespace and indentation fixes
This commit is contained in:
parent
cb57938dcc
commit
c21a932cec
@ -6213,6 +6213,7 @@ PT_PAK4 = 0x0030 # #pragma pack(4)
|
||||
PT_PAK8 = 0x0040 # #pragma pack(8)
|
||||
PT_PAK16 = 0x0050 # #pragma pack(16)
|
||||
|
||||
|
||||
def GetMaxLocalType():
|
||||
"""
|
||||
Get number of local types + 1
|
||||
@ -6236,6 +6237,7 @@ def SetLocalType(ordinal, input, flags):
|
||||
"""
|
||||
return idaapi.idc_set_local_type(ordinal, input, flags)
|
||||
|
||||
|
||||
def GetLocalType(ordinal, flags):
|
||||
"""
|
||||
Retrieve a local type declaration
|
||||
@ -7048,14 +7050,14 @@ def SetRegValue(value, name):
|
||||
"""
|
||||
rv = idaapi.regval_t()
|
||||
if type(value)==types.StringType:
|
||||
value = int(value)
|
||||
value = int(value)
|
||||
elif type(value)!=types.IntType:
|
||||
print "SetRegValue: value must be integer!"
|
||||
return BADADDR
|
||||
print "SetRegValue: value must be integer!"
|
||||
return BADADDR
|
||||
|
||||
if value<0:
|
||||
#ival_set cannot handle negative numbers
|
||||
value &= 0xFFFFFFFF
|
||||
#ival_set cannot handle negative numbers
|
||||
value &= 0xFFFFFFFF
|
||||
|
||||
rv.ival = value
|
||||
return idaapi.set_reg_val(name, rv)
|
||||
|
Loading…
Reference in New Issue
Block a user