summaryrefslogtreecommitdiff
path: root/runoff
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-28 19:25:04 +0000
committerrsc <rsc>2007-08-28 19:25:04 +0000
commitcffa9543012ee0bc2a1d355ed00839b03fe7ae0c (patch)
tree72af3d67a6e1deb91ab579774281472791c46e9b /runoff
parent5573c8f296091a484e486dcf153ce60b7c632df3 (diff)
downloadxv6-labs-cffa9543012ee0bc2a1d355ed00839b03fe7ae0c.tar.gz
xv6-labs-cffa9543012ee0bc2a1d355ed00839b03fe7ae0c.tar.bz2
xv6-labs-cffa9543012ee0bc2a1d355ed00839b03fe7ae0c.zip
nits
Diffstat (limited to 'runoff')
-rwxr-xr-xrunoff9
1 files changed, 7 insertions, 2 deletions
diff --git a/runoff b/runoff
index 37ca014..8ebaf13 100755
--- a/runoff
+++ b/runoff
@@ -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;
}