From c780dbf96735123f19ad022cefd555614725fc88 Mon Sep 17 00:00:00 2001 From: kolya Date: Sun, 12 Oct 2008 18:45:30 +0000 Subject: include explicitly initialized globals (int x = 0;) in cross-refs, also thanks to greg price. --- runoff | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'runoff') 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_]+) +{/){ -- cgit v1.2.3