1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
6 // Copyright (C) 1993-1996 by id Software, Inc.
8 // This source is available for distribution and/or modification
9 // only under the terms of the DOOM Source Code License as
10 // published by id Software. All rights reserved.
12 // The source is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
18 // Simple basic typedefs, isolated here to make it easier
19 // separating modules.
21 //-----------------------------------------------------------------------------
30 // Fixed to use builtin bool type with C++.
34 typedef enum {false, true} boolean;
36 typedef unsigned char byte;
40 // Predefined with some OS.
44 #define MAXCHAR ((char)0x7f)
45 #define MAXSHORT ((short)0x7fff)
47 // Max pos 32-bit int.
48 #define MAXINT ((int)0x7fffffff)
49 #define MAXLONG ((long)0x7fffffff)
50 #define MINCHAR ((char)0x80)
51 #define MINSHORT ((short)0x8000)
53 // Max negative 32-bit integer.
54 #define MININT ((int)0x80000000)
55 #define MINLONG ((long)0x80000000)
62 //-----------------------------------------------------------------------------
66 //-----------------------------------------------------------------------------