Skip to content

Commit

Permalink
Renaming: Rename .size directives
Browse files Browse the repository at this point in the history
  • Loading branch information
mkannwischer committed Dec 18, 2024
1 parent 086d870 commit 68c95bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions slothy/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ def change_funcname(line):
s = re.sub( f"{old_funcname}:", f"{new_funcname}:", s)
s = re.sub( f"\\.global(\\s+){old_funcname}", f".global\\1{new_funcname}", s)
s = re.sub( f"\\.type(\\s+){old_funcname}", f".type\\1{new_funcname}", s)
s = re.sub( f"\\.size(\\s+){old_funcname},(\\s*)\\.-{old_funcname}", f".size {new_funcname}, .-{new_funcname}", s)
return line.copy().set_text(s)
return [ change_funcname(s) for s in source ]

Expand Down

0 comments on commit 68c95bf

Please sign in to comment.