diff options
author | rsc <rsc> | 2007-08-28 19:25:04 +0000 |
---|---|---|
committer | rsc <rsc> | 2007-08-28 19:25:04 +0000 |
commit | cffa9543012ee0bc2a1d355ed00839b03fe7ae0c (patch) | |
tree | 72af3d67a6e1deb91ab579774281472791c46e9b /runoff | |
parent | 5573c8f296091a484e486dcf153ce60b7c632df3 (diff) | |
download | xv6-labs-cffa9543012ee0bc2a1d355ed00839b03fe7ae0c.tar.gz xv6-labs-cffa9543012ee0bc2a1d355ed00839b03fe7ae0c.tar.bz2 xv6-labs-cffa9543012ee0bc2a1d355ed00839b03fe7ae0c.zip |
nits
Diffstat (limited to 'runoff')
-rwxr-xr-x | runoff | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -109,15 +109,20 @@ perl -e ' if (/^([0-9]+) #define +([A-za-z0-9_]+) +?\(.*/) { print "$1 $2\n" } - elsif (/^([0-9]+) #define +([A-Za-z0-9_]+) +([^ ]+)/) { print "$1 $2 $3\n"; } - elsif (/^([0-9]+) #define +([A-Za-z0-9_]+)/) { print "$1 $2\n"; } + if(/^^([0-9]+) \.globl ([a-zA-Z0-9_]+)/){ + $isglobl{$2} = 1; + } + if(/^^([0-9]+) ([a-zA-Z0-9_]+):$/ && $isglobl{$2}){ + print "$1 $2\n"; + } + if (/\(/) { next; } |