1 /* Emacs style mode select -*- C++ -*-
2 *-----------------------------------------------------------------------------
5 * PrBoom a Doom port merged with LxDoom and LSDLDoom
6 * based on BOOM, a modified and improved DOOM engine
7 * Copyright (C) 1999 by
8 * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
9 * Copyright (C) 1999-2000 by
10 * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
28 * Simple basic typedefs, isolated here to make it easier
31 *-----------------------------------------------------------------------------*/
34 #include "rockmacros.h"
36 // Fixed to use builtin bool type with C++.
37 typedef unsigned int boolean
;
38 typedef unsigned char byte
;
40 typedef signed long long int_64_t
;
41 typedef unsigned long long uint_64_t
;
43 #define MAXCHAR ((char)0x7f)
44 #define MAXSHORT ((short)0x7fff)
46 // Max pos 32-bit int.
47 #define MAXINT ((int)0x7fffffff)
48 #define MAXLONG ((long)0x7fffffff)
49 #define MINCHAR ((char)0x80)
50 #define MINSHORT ((short)0x8000)
52 // Max negative 32-bit integer.
53 #define MININT ((int)0x80000000)
54 #define MINLONG ((long)0x80000000)
56 /* cph - move compatibility levels here so we can use them in d_server.c */
58 doom_12_compatibility
, /* Behave like early doom versions */
59 doom_demo_compatibility
, /* As compatible as possible for
60 * playing original Doom demos */
61 doom_compatibility
, /* Compatible with original Doom levels */
62 boom_compatibility_compatibility
, /* Boom's compatibility mode */
63 boom_201_compatibility
, /* Compatible with Boom v2.01 */
64 boom_202_compatibility
, /* Compatible with Boom v2.01 */
65 lxdoom_1_compatibility
, /* LxDoom v1.3.2+ */
66 mbf_compatibility
, /* MBF */
67 prboom_1_compatibility
, /* PrBoom 2.03beta? */
68 prboom_2_compatibility
, /* PrBoom 2.1.0-2.1.1 */
69 prboom_3_compatibility
, /* Latest PrBoom */
70 MAX_COMPATIBILITY_LEVEL
, /* Must be last entry */
72 boom_compatibility
= boom_201_compatibility
, /* Alias used by G_Compatibility */
73 best_compatibility
= prboom_3_compatibility
,
75 typedef unsigned complevel_t
;