Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
325 serge 1
// Emacs style mode select   -*- C++ -*-
2
//-----------------------------------------------------------------------------
3
//
4
// $Id:$
5
//
6
// Copyright (C) 1993-1996 by id Software, Inc.
7
//
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.
11
//
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
15
// for more details.
16
//
17
// DESCRIPTION:
18
//      Simple basic typedefs, isolated here to make it easier
19
//       separating modules.
20
//
21
//-----------------------------------------------------------------------------
22
 
23
 
24
#ifndef __DOOMTYPE__
25
#define __DOOMTYPE__
26
 
27
 
28
//#ifndef __BYTEBOOL__
29
//#define __BYTEBOOL__
30
// Fixed to use builtin bool type with C++.
31
// #ifdef __cplusplus
32
// typedef bool boolean;
33
// #else
34
// #endif
35
//typedef unsigned int boolean;
36
typedef enum {false=0, true,forced=0xFFFFFFFF} boolean;
37
typedef unsigned char byte;
38
//#endif
39
 
40
 
41
// Predefined with some OS.
42
#ifdef LINUX
43
#include 
44
#else
45
#ifndef MAXCHAR
46
#define MAXCHAR         ((char)0x7f)
47
#endif
48
#ifndef MAXSHORT
49
#define MAXSHORT        ((short)0x7fff)
50
#endif
51
 
52
// Max pos 32-bit int.
53
#ifndef MAXINT
54
#define MAXINT          ((int)0x7fffffff)
55
#endif
56
#ifndef MAXLONG
57
#define MAXLONG         ((long)0x7fffffff)
58
#endif
59
#ifndef MINCHAR
60
#define MINCHAR         ((char)0x80)
61
#endif
62
#ifndef MINSHORT
63
#define MINSHORT        ((short)0x8000)
64
#endif
65
 
66
// Max negative 32-bit integer.
67
#ifndef MININT
68
#define MININT          ((int)0x80000000)
69
#endif
70
#ifndef MINLONG
71
#define MINLONG         ((long)0x80000000)
72
#endif
73
#endif
74
 
75
 
76
 
77
 
78
#endif
79
//-----------------------------------------------------------------------------
80
//
81
// $Log:$
82
//
83
//-----------------------------------------------------------------------------