]> Devi Nivas Git - cs3210-lab1.git/commitdiff
include explicitly initialized globals (int x = 0;) in cross-refs,
authorkolya <kolya>
Sun, 12 Oct 2008 18:45:30 +0000 (18:45 +0000)
committerkolya <kolya>
Sun, 12 Oct 2008 18:45:30 +0000 (18:45 +0000)
also thanks to greg price.

runoff
spinlock.c

diff --git a/runoff b/runoff
index 8db9bcc15d8e10f73a57dae661e50666aa2737f7..f2cbc01c5d2ee62ff1091f009ff00fe8ba91155e 100755 (executable)
--- 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_]+) +{/){ 
index 5f04dcf9676715344158cbab6459747c68329fe1..183e730f26651fdcb021cc6bc5f1df82d6ab6073 100644 (file)
@@ -8,8 +8,6 @@
 #include "proc.h"
 #include "spinlock.h"
 
-extern int use_console_lock;
-
 void
 initlock(struct spinlock *lock, char *name)
 {