|
|
1.1 ! root 1: // Emacs style mode select -*- C++ -*- ! 2: //----------------------------------------------------------------------------- ! 3: // ! 4: // $Id:$ ! 5: // ! 6: // Copyright (C) 1993-1996 by id Software, Inc. ! 7: // ! 8: // This program is free software; you can redistribute it and/or ! 9: // modify it under the terms of the GNU General Public License ! 10: // as published by the Free Software Foundation; either version 2 ! 11: // of the License, or (at your option) any later version. ! 12: // ! 13: // This program is distributed in the hope that it will be useful, ! 14: // but WITHOUT ANY WARRANTY; without even the implied warranty of ! 15: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! 16: // GNU General Public License for more details. ! 17: // ! 18: // DESCRIPTION: ! 19: // Simple basic typedefs, isolated here to make it easier ! 20: // separating modules. ! 21: // ! 22: //----------------------------------------------------------------------------- ! 23: ! 24: ! 25: #ifndef __DOOMTYPE__ ! 26: #define __DOOMTYPE__ ! 27: ! 28: ! 29: #ifndef __BYTEBOOL__ ! 30: #define __BYTEBOOL__ ! 31: // Fixed to use builtin bool type with C++. ! 32: #ifdef __cplusplus ! 33: typedef bool boolean; ! 34: #else ! 35: typedef enum {false, true} boolean; ! 36: #endif ! 37: typedef unsigned char byte; ! 38: #endif ! 39: ! 40: ! 41: // Predefined with some OS. ! 42: #ifdef LINUX ! 43: #include <values.h> ! 44: #else ! 45: #define MAXCHAR ((char)0x7f) ! 46: #define MAXSHORT ((short)0x7fff) ! 47: ! 48: // Max pos 32-bit int. ! 49: #define MAXINT ((int)0x7fffffff) ! 50: #define MAXLONG ((long)0x7fffffff) ! 51: #define MINCHAR ((char)0x80) ! 52: #define MINSHORT ((short)0x8000) ! 53: ! 54: // Max negative 32-bit integer. ! 55: #define MININT ((int)0x80000000) ! 56: #define MINLONG ((long)0x80000000) ! 57: #endif ! 58: ! 59: ! 60: ! 61: ! 62: #endif ! 63: //----------------------------------------------------------------------------- ! 64: // ! 65: // $Log:$ ! 66: // ! 67: //-----------------------------------------------------------------------------
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.