Skip to content

Commit

Permalink
rename flags
Browse files Browse the repository at this point in the history
  • Loading branch information
blattm committed Jul 3, 2024
1 parent 2596f02 commit 2373c7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions decompiler/backend/cexpressiongenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ def get_struct_string_address_offset(vartype) -> int | None:
return address_offset


INLINE_COMPLEX_STRINGS = True
DETECT_COMPLEX_STRINGS = True
INLINE_STRUCT_STRINGS = True
DETECT_STRUCT_STRINGS = True


def is_struct_string(vartype) -> bool:
if not DETECT_COMPLEX_STRINGS:
if not DETECT_STRUCT_STRINGS:
return False
return get_struct_string_address_offset(vartype) is not None

Expand All @@ -67,7 +67,7 @@ def inline_global_variable(var) -> bool:
if var.type.type in [Integer.char(), CustomType.wchar16(), CustomType.wchar32()]:
return True
case Struct():
if INLINE_COMPLEX_STRINGS and is_struct_string(var.type):
if INLINE_STRUCT_STRINGS and is_struct_string(var.type):
return True
case _:
return False
Expand Down

0 comments on commit 2373c7b

Please sign in to comment.