include explicitly initialized globals (int x = 0;) in cross-refs,
also thanks to greg price.
This commit is contained in:
parent
6186836d28
commit
c780dbf967
2 changed files with 2 additions and 5 deletions
5
runoff
5
runoff
|
@ -127,9 +127,8 @@ perl -e '
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (/^([0-9]+) (((static|struct|extern|union|enum) +)*([A-Za-z0-9_]+))( .*)? +([A-Za-z_][A-Za-z0-9_]*)[,;]/) {
|
if (/^([0-9]+) (((static|struct|extern|union|enum) +)*([A-Za-z0-9_]+))( .*)? +([A-Za-z_][A-Za-z0-9_]*)(,|;|=| =)/) {
|
||||||
|
print "$1 $7\n";
|
||||||
print "$1 $7\n"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
elsif(/^([0-9]+) (enum|struct|union) +([A-Za-z0-9_]+) +{/){
|
elsif(/^([0-9]+) (enum|struct|union) +([A-Za-z0-9_]+) +{/){
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
#include "proc.h"
|
#include "proc.h"
|
||||||
#include "spinlock.h"
|
#include "spinlock.h"
|
||||||
|
|
||||||
extern int use_console_lock;
|
|
||||||
|
|
||||||
void
|
void
|
||||||
initlock(struct spinlock *lock, char *name)
|
initlock(struct spinlock *lock, char *name)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue