DEADSOFTWARE

Editing source tree for configuring with CMake
[flatwaifu.git] / src / glob.h
1 /*
2 Copyright (C) Prikol Software 1996-1997
3 Copyright (C) Aleksey Volynskov 1996-1997
4 Copyright (C) <ARembo@gmail.com> 2011
6 This file is part of the Doom2D:Rembo project.
8 Doom2D:Rembo is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License version 2 as
10 published by the Free Software Foundation.
12 Doom2D:Rembo is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, see <http://www.gnu.org/licenses/> or
19 write to the Free Software Foundation, Inc.,
20 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
23 // Globals
25 #ifndef MYGLOB
26 #define MYGLOB
28 #ifndef NULL
29 #define NULL 0
30 #endif
32 #define ON 1
33 #define OFF 0
34 #define TRUE 1
35 #define FALSE 0
37 typedef unsigned char byte;
38 typedef unsigned short word;
39 typedef unsigned int dword;
41 void logo(const char *,...);
42 void logo_gas(int,int);
44 extern int gammaa;
45 extern int snd_card;
46 extern int _cpu;
49 #define __MAX_PATH 255
50 #define __MAX_DRIVE 50
51 #define __MAX_DIR 100
52 #define __MAX_FNAME 50
53 #define __MAX_EXT 50
56 #define min(a,b) ((a)<(b)?(a):(b))
57 #define max(a,b) ((a)>(b)?(a):(b))
59 #define myrand(a) (rand()%(a))
61 #include <stdio.h>
62 void myfread(void *ptr, size_t n, size_t size, FILE *f);
63 size_t myfreadc(void *ptr, size_t n, size_t size, FILE *f);
64 void myfwrite(void *ptr, size_t n, size_t size, FILE *f);
66 extern int SCRW;
67 extern int SCRH;
69 #define DELAY 50
71 #endif