[chocolate-doom] 03/31: doomfeatures.h to allow certain features to be disabled in the build
Jonathan Dowland
jmtd at moszumanska.debian.org
Mon Jan 30 15:06:59 UTC 2017
This is an automated email from the git hooks/post-receive script.
jmtd pushed a commit to annotated tag chocolate-doom-0.1.1
in repository chocolate-doom.
commit b9a5732a74152bf8ee21e86fc23fe43d3b235f4c
Author: Simon Howard <fraggle at gmail.com>
Date: Wed Oct 12 21:52:01 2005 +0000
doomfeatures.h to allow certain features to be disabled in the build
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 190
---
src/Makefile.am | 2 +-
src/d_main.c | 12 ++++++++++--
src/deh_main.h | 14 +++++++++++++-
src/{deh_main.h => doomfeatures.h} | 32 +++++++++++++-------------------
4 files changed, 37 insertions(+), 23 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index 71cc492..786bfb5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -31,7 +31,7 @@ d_textur.h i_system.h p_enemy.c p_telept.c r_things.c mmus2mid.h \
deh_defs.h deh_frame.c deh_main.c deh_ptr.c deh_text.c deh_thing.c \
deh_io.c deh_io.h deh_ammo.c deh_cheat.c deh_weapon.c \
deh_misc.c deh_mapping.c deh_mapping.h deh_sound.c deh_main.h \
-w_merge.c w_merge.h
+w_merge.c w_merge.h doomfeatures.h
if HAVE_WINDRES
diff --git a/src/d_main.c b/src/d_main.c
index 71a3b20..5b891ef 100644
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: d_main.c 180 2005-10-09 14:34:19Z fraggle $
+// $Id: d_main.c 190 2005-10-12 21:52:01Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.25 2005/10/12 21:52:01 fraggle
+// doomfeatures.h to allow certain features to be disabled in the build
+//
// Revision 1.24 2005/10/09 14:34:19 fraggle
// Fix banner string for ultimate doom
//
@@ -115,7 +118,7 @@
//-----------------------------------------------------------------------------
-static const char rcsid[] = "$Id: d_main.c 180 2005-10-09 14:34:19Z fraggle $";
+static const char rcsid[] = "$Id: d_main.c 190 2005-10-12 21:52:01Z fraggle $";
#define BGCOLOR 7
#define FGCOLOR 8
@@ -140,6 +143,7 @@ static const char rcsid[] = "$Id: d_main.c 180 2005-10-09 14:34:19Z fraggle $";
#include "doomstat.h"
#include "dstrings.h"
+#include "doomfeatures.h"
#include "sounds.h"
@@ -1146,12 +1150,15 @@ void D_DoomMain (void)
printf ("Z_Init: Init zone memory allocation daemon. \n");
Z_Init ();
+#ifdef FEATURE_DEHACKED
printf("DEH_CheckCommandLine: Init Dehacked support.\n");
DEH_CheckCommandLine();
+#endif
printf ("W_Init: Init WADfiles.\n");
W_InitMultipleFiles (wadfiles);
+#ifdef FEATURE_WAD_MERGE
p = M_CheckParm("-merge");
if (p > 0)
@@ -1161,6 +1168,7 @@ void D_DoomMain (void)
W_MergeFile(myargv[p]);
}
}
+#endif
IdentifyVersion();
diff --git a/src/deh_main.h b/src/deh_main.h
index 8a2b372..7c78f15 100644
--- a/src/deh_main.h
+++ b/src/deh_main.h
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: deh_main.h 160 2005-10-03 21:39:39Z fraggle $
+// $Id: deh_main.h 190 2005-10-12 21:52:01Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -21,6 +21,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.3 2005/10/12 21:52:01 fraggle
+// doomfeatures.h to allow certain features to be disabled in the build
+//
// Revision 1.2 2005/10/03 21:39:39 fraggle
// Dehacked text substitutions
//
@@ -38,6 +41,7 @@
#define DEH_MAIN_H
#include "doomtype.h"
+#include "doomfeatures.h"
void DEH_CheckCommandLine(void);
@@ -47,7 +51,15 @@ boolean DEH_ParseAssignment(char *line, char **variable_name, char **value);
//
// Used to do dehacked text substitutions throughout the program
+#ifdef FEATURE_DEHACKED
+
char *DEH_String(char *s);
+#else
+
+#define DEH_String(x) (x)
+
+#endif
+
#endif /* #ifndef DEH_MAIN_H */
diff --git a/src/deh_main.h b/src/doomfeatures.h
similarity index 60%
copy from src/deh_main.h
copy to src/doomfeatures.h
index 8a2b372..2c056d6 100644
--- a/src/deh_main.h
+++ b/src/doomfeatures.h
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: deh_main.h 160 2005-10-03 21:39:39Z fraggle $
+// $Id: doomfeatures.h 190 2005-10-12 21:52:01Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -21,33 +21,27 @@
// 02111-1307, USA.
//
// $Log$
-// Revision 1.2 2005/10/03 21:39:39 fraggle
-// Dehacked text substitutions
+// Revision 1.1 2005/10/12 21:52:01 fraggle
+// doomfeatures.h to allow certain features to be disabled in the build
//
-// Revision 1.1 2005/10/02 23:49:01 fraggle
-// The beginnings of dehacked support
//
-//
-//-----------------------------------------------------------------------------
-//
-// Dehacked entrypoint and common code
+// DESCRIPTION:
+// List of features which can be enabled/disabled to slim down the
+// program.
//
//-----------------------------------------------------------------------------
-#ifndef DEH_MAIN_H
-#define DEH_MAIN_H
+#ifndef DOOM_FEATURES_H
+#define DOOM_FEATURES_H
-#include "doomtype.h"
+// Enables wad merging (the '-merge' command line parameter)
-void DEH_CheckCommandLine(void);
+#define FEATURE_WAD_MERGE 1
-boolean DEH_ParseAssignment(char *line, char **variable_name, char **value);
+// Enables dehacked support ('-deh')
-// deh_text.c:
-//
-// Used to do dehacked text substitutions throughout the program
+#define FEATURE_DEHACKED 1
-char *DEH_String(char *s);
+#endif /* #ifndef DOOM_FEATURES_H */
-#endif /* #ifndef DEH_MAIN_H */
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/chocolate-doom.git
More information about the Pkg-games-commits
mailing list