X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Flib%2Ftypes.h;h=093b38da5df52bc9d21c8dd6c6f8aae20133d6d9;hb=e0913da3b95ef58d463d59718f9e52436c9bb411;hp=66606fc26c83471f174e4ae60b25ad9932cf20c6;hpb=e0335fc72d6856ec3df7a081281ebd8f36e3981d;p=16.git
diff --git a/src/lib/types.h b/src/lib/types.h
old mode 100644
new mode 100755
index 66606fc2..093b38da
--- a/src/lib/types.h
+++ b/src/lib/types.h
@@ -1,34 +1,65 @@
-/* Project 16 Source Code~
- * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
- *
- * This file is part of Project 16.
- *
- * Project 16 is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * Project 16 is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see , or
- * write to the Free Software Foundation, Inc., 51 Franklin Street,
- * Fifth Floor, Boston, MA 02110-1301 USA.
- *
- */
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see , or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
/*
* Just some handy typedefs that make it easier to think about the low
* level code
*/
+#ifndef _TYPE_H_
+#define _TYPE_H_
+
typedef unsigned char byte;
typedef unsigned short word;
-typedef unsigned long dword;
+typedef unsigned long dword;
typedef signed char sbyte;
typedef signed short sword;
typedef signed long sdword;
-
-//typedef enum {FALSE,TRUE} boolean;
+
+typedef unsigned int iword;
+typedef signed int siword;
+
+typedef unsigned long int diword;
+typedef signed long int sdiword;
+
+typedef enum {false,true} boolean;
+/*typedef unsigned memseg;
+
+memptr should be replaced by memseg in code.
+
+on usage where you need pointer convert memseg type (segment) to far pointer by
+MK_FP(segment value, 0)*/
+#ifdef __WATCOMC__
+//typedef unsigned short _seg; // it will contains segment value (as Borland _seg)
+#define _seg __based( void )
+#define __SEGA __segment
+#endif
+#ifdef __BORLANDC__
+//typedef void _seg * memptr;
+#define __SEGA _seg
+#endif
+
+typedef void _seg * memptr;//typedef void __based( void ) * memptr; ////old //----typedef void __based(__self) * memptr;
+
+#define _argv __argv
+#define _argc __argc
+
+#endif/*_TYPE_H_*/