Standardized the preprocessor constants used to prevent double inclusion of

header files. Each now begins with "SWORD2_" and ends with "_H". (Well, except
for "SWORD2_H", since I didn't want to name it "SWORD2_SWORD2_H".)

svn-id: r20655
This commit is contained in:
Torbjörn Andersson 2006-02-12 19:57:23 +00:00
parent ff25c5c90a
commit 8935cac6da
19 changed files with 38 additions and 39 deletions

View File

@ -17,11 +17,10 @@
*
* $URL$
* $Id$
*
*/
#ifndef ANIMATION_H
#define ANIMATION_H
#ifndef SWORD2_ANIMATION_H
#define SWORD2_ANIMATION_H
#include "graphics/animation.h"
#include "sound/mixer.h"

View File

@ -19,8 +19,8 @@
* $Id$
*/
#ifndef C_ONSOLE_H
#define C_ONSOLE_H
#ifndef SWORD2_CONSOLE_H
#define SWORD2_CONSOLE_H
#include "common/debugger.h"
#include "sword2/debug.h"

View File

@ -19,8 +19,8 @@
* $Id$
*/
#ifndef _CONTROL_S
#define _CONTROL_S
#ifndef SWORD2_CONTROL_H
#define SWORD2_CONTROL_H
#include "sword2/defs.h"

View File

@ -19,8 +19,8 @@
* $Id$
*/
#ifndef D_DEBUG
#define D_DEBUG
#ifndef SWORD2_DEBUG_H
#define SWORD2_DEBUG_H
// FIXME: I don't know how large this constant used to be
#define MAX_DEBUG_TEXTS 55

View File

@ -19,8 +19,8 @@
* $Id$
*/
#ifndef DEFS
#define DEFS
#ifndef SWORD2_DEFS_H
#define SWORD2_DEFS_H
#define SIZE 0x10000 // 65536 items per section
#define NuSIZE 0xffff // & with this

View File

@ -19,8 +19,8 @@
* $Id$
*/
#ifndef _HEADER
#define _HEADER
#ifndef SWORD2_HEADER_H
#define SWORD2_HEADER_H
#include "common/stream.h"

View File

@ -19,8 +19,8 @@
* $Id$
*/
#ifndef _ICONS
#define _ICONS
#ifndef SWORD2_ICONS_H
#define SWORD2_ICONS_H
#define MENU_MASTER_OBJECT 44
#define TOTAL_subjects (375 - 256 + 1) // the speech subject bar

View File

@ -19,8 +19,8 @@
* $Id$
*/
#ifndef _INTERPRETER
#define _INTERPRETER
#ifndef SWORD2_INTERPRETER_H
#define SWORD2_INTERPRETER_H
namespace Sword2 {

View File

@ -21,8 +21,8 @@
// logic management
#ifndef _LOGIC
#define _LOGIC
#ifndef SWORD2_LOGIC_H
#define SWORD2_LOGIC_H
#include "sword2/memory.h"

View File

@ -19,8 +19,8 @@
* $Id$
*/
#ifndef _MAKETEXT_H
#define _MAKETEXT_H
#ifndef SWORD2_MAKETEXT_H
#define SWORD2_MAKETEXT_H
#include "sword2/debug.h"

View File

@ -19,8 +19,8 @@
* $Id$
*/
#ifndef MEMORY_H
#define MEMORY_H
#ifndef SWORD2_MEMORY_H
#define SWORD2_MEMORY_H
#define MAX_MEMORY_BLOCKS 999

View File

@ -19,8 +19,8 @@
* $Id$
*/
#ifndef MOUSE_H
#define MOUSE_H
#ifndef SWORD2_MOUSE_H
#define SWORD2_MOUSE_H
#define MAX_SUBJECT_LIST 30 // is that enough?

View File

@ -19,8 +19,8 @@
* $Id$
*/
#ifndef _SCRIPT_STRUCTURES
#define _SCRIPT_STRUCTURES
#ifndef SWORD2_OBJECT_H
#define SWORD2_OBJECT_H
#include "common/stream.h"

View File

@ -19,8 +19,8 @@
* $Id$
*/
#ifndef RESMAN_H
#define RESMAN_H
#ifndef SWORD2_RESMAN_H
#define SWORD2_RESMAN_H
namespace Common {
class File;

View File

@ -19,8 +19,8 @@
* $Id$
*/
#ifndef _ROUTER_H
#define _ROUTER_H
#ifndef SWORD2_ROUTER_H
#define SWORD2_ROUTER_H
// This used to be a variable, but it was never set. Actually, it wasn't even
// initialised!

View File

@ -19,8 +19,8 @@
* $Id$
*/
#ifndef SAVE_REST_H
#define SAVE_REST_H
#ifndef SWORD2_SAVELOAD_H
#define SWORD2_SAVELOAD_H
namespace Sword2 {

View File

@ -19,8 +19,8 @@
* $Id$
*/
#ifndef _BUILD_DISPLAY
#define _BUILD_DISPLAY
#ifndef SWORD2_SCREEN_H
#define SWORD2_SCREEN_H
#include "common/rect.h"
#include "common/stream.h"

View File

@ -29,8 +29,8 @@
*
****************************************************************************/
#ifndef SOUND_H
#define SOUND_H
#ifndef SWORD2_SOUND_H
#define SWORD2_SOUND_H
#include "common/file.h"
#include "sound/audiostream.h"

View File

@ -19,8 +19,8 @@
* $Id$
*/
#ifndef _SWORD2
#define _SWORD2
#ifndef SWORD2_H
#define SWORD2_H
// Enable this to make it possible to clear the mouse cursor luggage by
// right-clicking. The original didn't do this, but it feels natural to me.