Changeset 06adc25


Ignore:
Timestamp:
Aug 21, 2010, 3:19:22 PM (7 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.
Files:
5 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";
  • filterproc.h

    rd564c3d r06adc25  
    1 #ifndef __FILTER_PROC_H__
    2 #define __FILTER_PROC_H__
     1#ifndef INC_BARNOWL_FILTER_PROC_H
     2#define INC_BARNOWL_FILTER_PROC_H
    33
    44int call_filter(const char *prog,
     
    77                char **out, int *status);
    88
    9 #endif
     9#endif /* INC_BARNOWL_FILTER_PROC_H */
  • owl.h

    rd40ad8b r06adc25  
    77 */
    88
    9 #ifndef INC_OWL_H
    10 #define INC_OWL_H
     9#ifndef INC_BARNOWL_OWL_H
     10#define INC_BARNOWL_OWL_H
    1111
    1212#ifdef HAVE_STDBOOL_H
     
    648648#endif
    649649
    650 #endif /* INC_OWL_H */
     650#endif /* INC_BARNOWL_OWL_H */
  • owl_perl.h

    rbafbba1 r06adc25  
    1 #ifndef INC_OWL_PERL_H
    2 #define INC_OWL_PERL_H
     1#ifndef INC_BARNOWL_OWL_PERL_H
     2#define INC_BARNOWL_OWL_PERL_H
    33
    44#define OWL_PERL_VOID_CALL (void)POPs;
     
    5353}
    5454
    55 #endif /* INC_PERL_PERL_H */
     55#endif /* INC_BARNOWL_OWL_PERL_H */
  • window.h

    r9379760 r06adc25  
    1 #ifndef __BARNOWL_WINDOW_H__
    2 #define __BARNOWL_WINDOW_H__
     1#ifndef INC_BARNOWL_WINDOW_H
     2#define INC_BARNOWL_WINDOW_H
    33
    44#include <glib.h>
     
    6767G_END_DECLS
    6868
    69 #endif /* __BARNOWL_WINDOW_H__ */
     69#endif /* INC_BARNOWL_WINDOW_H */
Note: See TracChangeset for help on using the changeset viewer.