浏览代码

morphunits: imported the traditional Amiga types and some consts into exec for better Amiga & AROS compatibility

git-svn-id: trunk@31000 -
Károly Balogh 10 年之前
父节点
当前提交
c1946ace52
共有 1 个文件被更改,包括 24 次插入0 次删除
  1. 24 0
      packages/morphunits/src/exec.pas

+ 24 - 0
packages/morphunits/src/exec.pas

@@ -24,6 +24,30 @@ var
   ExecBase: Pointer;
 
 
+{ Some types for classic Amiga and AROS compatibility }
+type
+  STRPTR    = PChar;
+  ULONG     = Longword;
+  LONG      = Longint;
+  APTR      = Pointer;
+  BPTR      = Longint;
+  BSTR      = Longint;
+  BOOL      = Smallint; { I think this could be changed to WordBool (KB) }
+  UWORD     = Word;
+  WORDBITS  = Word;
+  LONGBITS  = Longword;
+  PLONGBITS = ^LONGBITS;
+  UBYTE     = Byte;
+  PULONG    = ^Longword;
+  PAPTR     = ^APTR;
+  PLONG     = ^LONG;
+
+{ Some constants for classic Amiga and AROS compatibility }
+const
+  LTrue  : Longint = 1;
+  LFalse : Longint = 0;
+
+
 { * emulinterface consts from MorphOS SDK * }
 
 const