Corrections to SVN properties.
[AROS.git] / workbench / classes / datatypes / degas / datatype.h
blob530a4c41d19c5df12f89cc3a2104f2603b9a63f1
1 /*
3 Author: Neil Cafferkey
4 Copyright (C) 2002-2011 Neil Cafferkey
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston,
19 MA 02111-1307, USA.
23 #ifndef DATATYPE_H
24 #define DATATYPE_H
27 #include <exec/types.h>
28 #include <exec/libraries.h>
29 #include <intuition/classes.h>
31 #define DATATYPE_NAME "degas.datatype"
32 #define VERSION 1
33 #define REVISION 3
34 #define DATE "24.7.2011"
36 #ifndef UPINT
37 #ifdef __AROS__
38 typedef IPTR UPINT;
39 typedef SIPTR PINT;
40 #else
41 typedef ULONG UPINT;
42 typedef LONG PINT;
43 #endif
44 #endif
46 #define _STR(A) #A
47 #define STR(A) _STR(A)
49 struct DTBase
51 struct Library library;
52 APTR seg_list;
53 struct IClass *class;
54 struct ExecBase *sys_base;
55 struct Library *superclass_base;
56 struct IntuitionBase *intuition_base;
57 struct UtilityBase *utility_base;
58 struct Library *datatypes_base;
59 struct GfxBase *graphics_base;
60 struct DosLibrary *dos_base;
64 #ifdef __AROS__
65 #define BEWord(A) AROS_BE2WORD(A)
66 #define BELong(A) AROS_BE2LONG(A)
67 #else
68 #define BEWord(A) (A)
69 #define BELong(A) (A)
70 #endif
73 #define SysBase (base->sys_base)
74 #define IntuitionBase (base->intuition_base)
75 #define UtilityBase (base->utility_base)
76 #define DataTypesBase (base->datatypes_base)
77 #define GfxBase (base->graphics_base)
78 #define DOSBase (base->dos_base)
80 #ifndef BASE_REG
81 #define BASE_REG "a6"
82 #endif
85 #if defined(__mc68000) && !defined(__AROS__)
86 #define REG(A) __asm(A)
87 #else
88 #define REG(A)
89 #endif
91 #endif