Changeset 06adc25 for codelist.pl


Ignore:
Timestamp:
Aug 21, 2010, 3:19:22 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
691d012
Parents:
86f740e
git-author:
David Benjamin <davidben@mit.edu> (08/07/10 19:16:55)
git-committer:
David Benjamin <davidben@mit.edu> (08/21/10 15:19:22)
Message:
Sanitize our include guards somewhat

Avoid double underscores to avoid clashing with reserved symbols. Also
adding BARNOWL to guard names. While I'm at it, owl_prototypes.h could
use guards.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • codelist.pl

    rd7cc50b r06adc25  
    11#! /usr/bin/perl
    22
     3my $guard_symbol = "INC_BARNOWL_OWL_PROTOTYPES_H";
     4print "#ifndef $guard_symbol\n";
     5print "#define $guard_symbol\n";
    36foreach $file (@ARGV) {
    47    open(FILE, $file);
     
    3134    print "\n";
    3235}
    33 
    34 
     36print "#endif /* $guard_symbol */\n";
Note: See TracChangeset for help on using the changeset viewer.