Skip to content

Commit

Permalink
include explicitly initialized globals (int x = 0;) in cross-refs,
Browse files Browse the repository at this point in the history
also thanks to greg price.
  • Loading branch information
kolya committed Oct 12, 2008
1 parent 6186836 commit c780dbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions runoff
Original file line number Diff line number Diff line change
Expand Up @@ -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_]+) +{/){
Expand Down
2 changes: 0 additions & 2 deletions spinlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#include "proc.h"
#include "spinlock.h"

extern int use_console_lock;

void
initlock(struct spinlock *lock, char *name)
{
Expand Down

0 comments on commit c780dbf

Please sign in to comment.