comparison src/ui/mfw/mfw_sys.h @ 3:67bfe9f274f6

src/ui: import of src/ui3 from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:33:10 +0000
parents
children
comparison
equal deleted inserted replaced
2:3a14ee9a9843 3:67bfe9f274f6
1 /*
2 +--------------------------------------------------------------------+
3 | PROJECT: MMI-Framework (8417) $Workfile:: mfw_sys.h $|
4 | $Author:: Es $ CONDAT GmbH $Revision:: 5 $|
5 | CREATED: 21.09.98 $Modtime:: 8.07.99 9:10 $|
6 | STATE : code |
7 +--------------------------------------------------------------------+
8
9 MODULE : MFW_SYS
10
11 PURPOSE : MFW system interface
12
13 EXPORT :
14
15 TO DO :
16
17 $History:: mfw_sys.h $
18 *
19 * ***************** Version 5 *****************
20 * User: Es Date: 8.07.99 Time: 12:04
21 * Updated in $/GSM/DEV/MS/SRC/MFW
22 *
23 * ***************** Version 4 *****************
24 * User: Es Date: 6.07.99 Time: 12:30
25 * Updated in $/GSM/DEV/MS/SRC/MFW
26 *
27 * ***************** Version 3 *****************
28 * User: Es Date: 17.02.99 Time: 19:11
29 * Updated in $/GSM/DEV/MS/SRC/MFW
30 *
31 * ***************** Version 2 *****************
32 * User: Es Date: 23.12.98 Time: 16:19
33 * Updated in $/GSM/DEV/MS/SRC/MFW
34 */
35
36 #ifndef _DEF_MFW_SYS_H_
37 #define _DEF_MFW_SYS_H_
38
39 #ifdef __BORLANDC__
40 #include <stdio.h>
41 #include <stdlib.h>
42 #include <mem.h>
43
44 #define EXTERN extern
45 #define GLOBAL
46 #define LOCAL static
47 #define ULONG unsigned long
48 #define LONG long
49 #define USHORT unsigned short
50 #define SHORT short
51 #define UBYTE unsigned char
52 #define BYTE unsigned char
53
54 #define sysAlloc(s) malloc(s)
55 #define sysFree(m) free(m)
56 typedef int T_VSI_THANDLE;
57 typedef unsigned long T_VSI_TVALUE;
58 #define VSI_OK 0
59 #define vsi_o_ptrace(a,b)
60 #define vsi_c_awake(a) timTimeout()
61 #ifdef VSI_CALLER
62 #undef VSI_CALLER
63 #endif
64 #define VSI_CALLER
65 #ifdef TRACE_EVENT
66 #undef TRACE_EVENT
67 #endif
68 void TRACE_EVENT (char *a);
69 //#define TRACE_EVENT(a);
70 #ifdef TRACE_ERROR
71 #undef TRACE_ERROR
72 #endif
73 void TRACE_ERROR (char *a);
74 //#define TRACE_ERROR(a);
75 #ifdef _ENTITY_PREFIXED
76 #undef _ENTITY_PREFIXED
77 #define _ENTITY_PREFIXED(a) (a)
78 #endif
79
80 #else
81
82 #if defined (NEW_FRAME)
83
84 #include "typedefs.h"
85 #include "vsi.h"
86 #include "custom.h"
87 #include "gsm.h"
88
89 #else
90
91 #include "STDDEFS.H"
92 #include "custom.h"
93 #include "gsm.h"
94 #include "vsi.h"
95
96 #endif
97
98 #if defined (NEW_FRAME)
99 #ifdef MEMORY_SUPERVISION
100 #define sysAlloc(s) vsi_c_new(VSI_CALLER s,0, __FILE__, __LINE__)
101 #define sysFree(m) vsi_c_free(VSI_CALLER (T_VOID_STRUCT**) &(m), __FILE__, __LINE__)
102 #else
103 #define sysAlloc(s) vsi_c_new(VSI_CALLER s,0)
104 #define sysFree(m) vsi_c_free(VSI_CALLER (T_VOID_STRUCT**) &(m))
105 #endif
106 #else
107 #define sysAlloc(s) vsi_c_new(VSI_CALLER s)
108 #define sysFree(m) vsi_c_free(VSI_CALLER &(m))
109 #endif
110
111
112 #endif
113
114 #endif
115