mirror of https://github.com/yasm/yasm.git
reducing C compiler warnings). svn path=/trunk/yasm/; revision=6470.3
parent
5ba3fb01bf
commit
9eedce2b89
3 changed files with 14 additions and 2 deletions
@ -0,0 +1,10 @@ |
||||
#!/usr/bin/perl |
||||
my @sourcelines = <>; |
||||
my %usedlabel; |
||||
for (@sourcelines) { |
||||
$usedlabel{"$1:"} = "$1:" if m/goto\s+(yy[0-9]*)\s*;/ |
||||
} |
||||
for (@sourcelines) { |
||||
s/^(yy[0-9]*:)/$usedlabel{$1}/; |
||||
print; |
||||
} |
Loading…
Reference in new issue