1 /* Project 16 Source Code~
\r
2 * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover
\r
4 * This file is part of Project 16.
\r
6 * Project 16 is free software; you can redistribute it and/or modify
\r
7 * it under the terms of the GNU General Public License as published by
\r
8 * the Free Software Foundation; either version 3 of the License, or
\r
9 * (at your option) any later version.
\r
11 * Project 16 is distributed in the hope that it will be useful,
\r
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
14 * GNU General Public License for more details.
\r
16 * You should have received a copy of the GNU General Public License
\r
17 * along with this program. If not, see <http://www.gnu.org/licenses/>, or
\r
18 * write to the Free Software Foundation, Inc., 51 Franklin Street,
\r
19 * Fifth Floor, Boston, MA 02110-1301 USA.
\r
23 * Just some handy typedefs that make it easier to think about the low
\r
30 typedef unsigned char byte;
\r
31 typedef unsigned short word;
\r
32 typedef unsigned long dword;
\r
33 typedef signed char sbyte;
\r
34 typedef signed short sword;
\r
35 typedef signed long sdword;
\r
37 typedef unsigned int iword;
\r
38 typedef signed int siword;
\r
40 typedef unsigned long int diword;
\r
41 typedef signed long int sdiword;
\r
43 typedef enum {false,true} boolean;
\r
44 /*typedef unsigned memseg;
\r
46 memptr should be replaced by memseg in code.
\r
48 on usage where you need pointer convert memseg type (segment) to far pointer by
\r
49 MK_FP(segment value, 0)*/
\r
51 typedef void __based( void ) * memptr; ////old //----typedef void __based(__self) * memptr;
\r
52 typedef unsigned short _seg; // it will contains segment value (as Borland _seg)
\r
53 #define __SEGA __segment
\r
56 typedef void _seg * memptr;
\r