consolidate build status /patchlevel info settings in one place - patchlevel.h

This commit is contained in:
nhmall
2020-07-06 09:12:22 -04:00
parent 34e11c0139
commit 3cecb97da6
7 changed files with 36 additions and 47 deletions
+15 -5
View File
@@ -7,7 +7,17 @@
#define CONFIG_H #define CONFIG_H
/* /*
* Section 1: Operating and window systems selection. * Section 1: NetHack consolidated version, patchlevel, development status.
*/
#ifdef SHORT_FILENAMES
#include "patchlev.h"
#else
#include "patchlevel.h"
#endif
/*
* Section 2: Operating and window systems selection.
* Select the version of the OS you are using. * Select the version of the OS you are using.
* For "UNIX" select BSD, ULTRIX, SYSV, or HPUX in unixconf.h. * For "UNIX" select BSD, ULTRIX, SYSV, or HPUX in unixconf.h.
* A "VMS" option is not needed since the VMS C-compilers * A "VMS" option is not needed since the VMS C-compilers
@@ -144,7 +154,7 @@
#endif #endif
/* /*
* Section 2: Some global parameters and filenames. * Section 3: Some global parameters and filenames.
* *
* LOGFILE, XLOGFILE, NEWS and PANICLOG refer to files in * LOGFILE, XLOGFILE, NEWS and PANICLOG refer to files in
* the playground directory. Commenting out LOGFILE, XLOGFILE, * the playground directory. Commenting out LOGFILE, XLOGFILE,
@@ -373,7 +383,7 @@
#endif /* CHDIR */ #endif /* CHDIR */
/* /*
* Section 3: Definitions that may vary with system type. * Section 4: Definitions that may vary with system type.
* For example, both schar and uchar should be short ints on * For example, both schar and uchar should be short ints on
* the AT&T 3B2/3B5/etc. family. * the AT&T 3B2/3B5/etc. family.
*/ */
@@ -466,7 +476,7 @@ typedef unsigned char uchar;
#endif #endif
/* /*
* Section 4: EXPERIMENTAL STUFF * Section 5: EXPERIMENTAL STUFF
* *
* Conditional compilation of new or experimental options are controlled here. * Conditional compilation of new or experimental options are controlled here.
* Enable any of these at your own risk -- there are almost certainly * Enable any of these at your own risk -- there are almost certainly
@@ -576,7 +586,7 @@ typedef unsigned char uchar;
#define USE_ISAAC64 /* Use cross-plattform, bundled RNG */ #define USE_ISAAC64 /* Use cross-plattform, bundled RNG */
/* End of Section 4 */ /* End of Section 5 */
#ifdef TTY_TILES_ESCCODES #ifdef TTY_TILES_ESCCODES
# ifndef USE_TILES # ifndef USE_TILES
-17
View File
@@ -8,23 +8,6 @@
#include <stdio.h> #include <stdio.h>
/*
* Development status possibilities.
*/
#define NH_STATUS_RELEASED 0 /* Released */
#define NH_STATUS_WIP 1 /* Work in progress */
#define NH_STATUS_BETA 2 /* BETA testing */
#define NH_STATUS_POSTRELEASE 3 /* patch commit point only */
/*
* Development status of this NetHack version.
*/
#define NH_DEVEL_STATUS NH_STATUS_WIP
#ifndef DEBUG /* allow tool chains to define without causing warnings */
#define DEBUG
#endif
/* /*
* Files expected to exist in the playground directory. * Files expected to exist in the playground directory.
*/ */
+21
View File
@@ -3,6 +3,9 @@
/*-Copyright (c) Michael Allison, 2012. */ /*-Copyright (c) Michael Allison, 2012. */
/* NetHack may be freely redistributed. See license for details. */ /* NetHack may be freely redistributed. See license for details. */
#ifndef PATCHLEVEL_H
#define PATCHLEVEL_H
/* NetHack 3.7.x */ /* NetHack 3.7.x */
#define VERSION_MAJOR 3 #define VERSION_MAJOR 3
#define VERSION_MINOR 7 #define VERSION_MINOR 7
@@ -16,6 +19,23 @@
*/ */
#define EDITLEVEL 22 #define EDITLEVEL 22
/*
* Development status possibilities.
*/
#define NH_STATUS_RELEASED 0 /* Released */
#define NH_STATUS_WIP 1 /* Work in progress */
#define NH_STATUS_BETA 2 /* BETA testing */
#define NH_STATUS_POSTRELEASE 3 /* patch commit point only */
/*
* Development status of this NetHack version.
*/
#define NH_DEVEL_STATUS NH_STATUS_WIP
#ifndef DEBUG /* allow tool chains to define without causing warnings */
#define DEBUG
#endif
#define COPYRIGHT_BANNER_A "NetHack, Copyright 1985-2020" #define COPYRIGHT_BANNER_A "NetHack, Copyright 1985-2020"
#define COPYRIGHT_BANNER_B \ #define COPYRIGHT_BANNER_B \
" By Stichting Mathematisch Centrum and M. Stephenson." " By Stichting Mathematisch Centrum and M. Stephenson."
@@ -532,4 +552,5 @@
/****************************************************************************/ /****************************************************************************/
#endif /* PATHLEVEL_H */
/*patchlevel.h*/ /*patchlevel.h*/
-3
View File
@@ -4,9 +4,6 @@
#include "config.h" #include "config.h"
#include "dlb.h" #include "dlb.h"
#if defined(VERSION_IN_DLB_FILENAME)
#include "patchlevel.h"
#endif
#ifdef __DJGPP__ #ifdef __DJGPP__
#include <string.h> #include <string.h>
-5
View File
@@ -5,11 +5,6 @@
#include "hack.h" #include "hack.h"
#include "dlb.h" #include "dlb.h"
#ifdef SHORT_FILENAMES
#include "patchlev.h"
#else
#include "patchlevel.h"
#endif
/* If UPDATE_RECORD_IN_PLACE is defined, we don't want to rewrite the /* If UPDATE_RECORD_IN_PLACE is defined, we don't want to rewrite the
* whole file, because that entails creating a new version which * whole file, because that entails creating a new version which
-10
View File
@@ -7,16 +7,6 @@
#include "dlb.h" #include "dlb.h"
#include "date.h" #include "date.h"
/*
* All the references to the contents of patchlevel.h have been moved
* into makedefs....
*/
#ifdef SHORT_FILENAMES
#include "patchlev.h"
#else
#include "patchlevel.h"
#endif
#if defined(CROSSCOMPILE) #if defined(CROSSCOMPILE)
struct cross_target_s cross_target = { struct cross_target_s cross_target = {
/* https://groups.google.com/forum/#!original/ /* https://groups.google.com/forum/#!original/
-7
View File
@@ -23,13 +23,6 @@
#include "flag.h" #include "flag.h"
#include "dlb.h" #include "dlb.h"
/* version information */
#ifdef SHORT_FILENAMES
#include "patchlev.h"
#else
#include "patchlevel.h"
#endif
#include <ctype.h> #include <ctype.h>
#ifdef MAC #ifdef MAC
#if defined(__SC__) || defined(__MRC__) /* MPW compilers */ #if defined(__SC__) || defined(__MRC__) /* MPW compilers */