summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkolya <kolya>2008-10-12 18:45:30 +0000
committerkolya <kolya>2008-10-12 18:45:30 +0000
commitc780dbf96735123f19ad022cefd555614725fc88 (patch)
treef5a5c48ec089b46901f36b95d86b1403fa4baeac
parent6186836d28944dbe3451bc154c0268ac2c90a313 (diff)
downloadxv6-labs-c780dbf96735123f19ad022cefd555614725fc88.tar.gz
xv6-labs-c780dbf96735123f19ad022cefd555614725fc88.tar.bz2
xv6-labs-c780dbf96735123f19ad022cefd555614725fc88.zip
include explicitly initialized globals (int x = 0;) in cross-refs,
also thanks to greg price.
-rwxr-xr-xrunoff5
-rw-r--r--spinlock.c2
2 files changed, 2 insertions, 5 deletions
diff --git a/runoff b/runoff
index 8db9bcc..f2cbc01 100755
--- a/runoff
+++ b/runoff
@@ -127,9 +127,8 @@ perl -e '
next;
}
- if (/^([0-9]+) (((static|struct|extern|union|enum) +)*([A-Za-z0-9_]+))( .*)? +([A-Za-z_][A-Za-z0-9_]*)[,;]/) {
-
- print "$1 $7\n"
+ if (/^([0-9]+) (((static|struct|extern|union|enum) +)*([A-Za-z0-9_]+))( .*)? +([A-Za-z_][A-Za-z0-9_]*)(,|;|=| =)/) {
+ print "$1 $7\n";
}
elsif(/^([0-9]+) (enum|struct|union) +([A-Za-z0-9_]+) +{/){
diff --git a/spinlock.c b/spinlock.c
index 5f04dcf..183e730 100644
--- a/spinlock.c
+++ b/spinlock.c
@@ -8,8 +8,6 @@
#include "proc.h"
#include "spinlock.h"
-extern int use_console_lock;
-
void
initlock(struct spinlock *lock, char *name)
{