source: codelist.pl @ 7c9c847

barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 7c9c847 was 0ff8fb57, checked in by James M. Kretchmar <kretch@mit.edu>, 21 years ago
More AIM work. The auto-prototype building has been re-enabled as well.
  • Property mode set to 100755
File size: 583 bytes
Line 
1#! /usr/bin/perl
2# $Id$
3
4if ($#ARGV eq -1) {
5    @ARGV=`ls *.c`;
6    chop(@ARGV);
7}
8
9foreach $file (@ARGV) {
10    open(FILE, $file);
11
12    print "/* -------------------------------- $file -------------------------------- */\n";
13    while (<FILE>) {
14        if (/^\S/
15            && (/\{\s*$/ || /\)\s*$/)
16            && !/\}/
17            && !/^\{/
18            && !/^#/
19            && !/^static/
20            && !/^system/
21            && !/^XS/
22            && !/\/\*/
23            && !/ZWRITEOPTIONS/
24            && !/owlfaim_priv/) 
25        {
26            s/\s+\{/\;/;
27            s/\)[ \t]*$/\)\;/;
28            print "extern ";
29            print;
30        }
31           
32    }
33    close(FILE);
34    print "\n";
35}
36
37
Note: See TracBrowser for help on using the repository browser.