Changeset 453

Show
Ignore:
Timestamp:
08/06/07 13:09:13 (1 year ago)
Author:
takkaria
Message:

Use header file guards in all header files, and use a consistent naming scheme for them. (Matthew Jones)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/config.h

    r199 r453  
    11/* File: config.h */ 
     2 
     3#ifndef INCLUDED_CONFIG_H 
     4#define INCLUDED_CONFIG_H 
    25 
    36/* 
     
    285288# endif /* USE_GRAPHICS */ 
    286289#endif /* ALLOW_BORG */ 
     290 
     291#endif /* !INCLUDED_CONFIG_H */ 
  • trunk/src/defines.h

    r450 r453  
    11/* File: defines.h */ 
     2 
     3#ifndef INCLUDED_DEFINES_H 
     4#define INCLUDED_DEFINES_H 
    25 
    36/* 
     
    31203123#define NOSCORE_DEBUG           0x0008 
    31213124#define NOSCORE_BORG            0x0010 
     3125 
     3126#endif /* !INCLUDED_DEFINES_H */ 
  • trunk/src/effects.h

    r421 r453  
    2020/* Function */ 
    2121#ifndef EFFECT 
    22 #ifndef ANGBAND_EFFECTS_H 
    23 #define ANGBAND_EFFECTS_H 
     22#ifndef INCLUDED_EFFECTS_H 
     23#define INCLUDED_EFFECTS_H 
    2424 
    2525bool do_effect(int effect, bool *ident, int dir, int beam); 
     
    3838#undef EFFECT 
    3939 
    40 #endif /* ANGBAND_EFFECTS_H */ 
     40#endif /* INCLUDED_EFFECTS_H */ 
    4141 
    4242#else 
  • trunk/src/externs.h

    r450 r453  
    11/* File: externs.h */ 
     2 
     3#ifndef INCLUDED_EXTERNS_H 
     4#define INCLUDED_EXTERNS_H 
    25 
    36/* 
     
    773776 
    774777bool make_fake_artifact(object_type *o_ptr, byte name1); 
     778 
     779#endif /* !INCLUDED_EXTERNS_H */ 
  • trunk/src/osx/osx_tables.h

    r185 r453  
    33 * IMPORTANT: see note in main-crb.c if you wish to add menus. 
    44 */ 
     5#ifndef INCLUDED_OSX_TABLES_H 
     6#define INCLUDED_OSX_TABLES_H 
     7 
    58#define MAX_MENU_ID (150) 
    69 
     
    207210}; 
    208211 
     212#endif /* !INCLUDED_OSX_TABLES_H */ 
  • trunk/src/ui.h

    r348 r453  
    1  
    21/* 
    32 * Copyright (c) 2007 Pete Mack and others 
     
    109 
    1110 
    12 #ifndef UI_H 
    13 #define UI_H 
     11#ifndef INCLUDED_UI_H 
     12#define INCLUDED_UI_H 
    1413 
    1514/* ============= Constants ============ */ 
     
    384383 
    385384 
    386 #endif /* UI_H */ 
    387  
    388  
    389  
    390  
     385#endif /* INCLUDED_UI_H */ 
  • trunk/src/win/readdib.h

    r63 r453  
    11/* File: readdib.h */ 
     2 
     3#ifndef INCLUDED_READDIB_H 
     4#define INCLUDED_READDIB_H 
    25 
    36/* 
     
    2326/* Free a DIB */ 
    2427extern void FreeDIB(DIBINIT *dib); 
     28 
     29#endif /* !INCLUDED_READDIB_H */ 
  • trunk/src/z-type.h

    r96 r453  
    1  
     1#ifndef INCLUDED_ZTYPE_H 
     2#define INCLUDED_ZTYPE_H 
    23 
    34typedef struct data_panel data_panel; 
     
    4344}; 
    4445 
     46#endif /* !INCLUDED_ZTYPE_H */