source: trunk/server/script/findstatic.pl@ 751

Last change on this file since 751 was 414, checked in by Herwig Bauernfeind, 16 years ago

Samba 3.5.0: Initial import

File size: 1.5 KB
Line 
1#!/usr/bin/perl -w
2# find a list of fns and variables in the code that could be static
3# usually called with something like this:
4# findstatic.pl `find . -name "*.o"`
5# Andrew Tridgell <[email protected]>
6
7use strict;
8
9# use nm to find the symbols
10my($saved_delim) = $/;
11undef $/;
12my($syms) = `nm -o @ARGV`;
13$/ = $saved_delim;
14
15my(@lines) = split(/\n/s, $syms);
16