-
Notifications
You must be signed in to change notification settings - Fork 2
/
Runtime.cpp
123 lines (102 loc) · 2.38 KB
/
Runtime.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#include "Common.h"
// DEBUGGER /////////////////////////////////////////////////////////////////
#if !defined(RUN_ONLY)
// Identifiers of items displayed in the debugger
enum
{
// Example
// -------
// DB_CURRENTSTRING,
// DB_CURRENTVALUE,
// DB_CURRENTCHECK,
// DB_CURRENTCOMBO
};
// Items displayed in the debugger
WORD DebugTree[]=
{
// Example
// -------
// DB_CURRENTSTRING|DB_EDITABLE,
// DB_CURRENTVALUE|DB_EDITABLE,
// DB_CURRENTCHECK,
// DB_CURRENTCOMBO,
// End of table (required)
DB_END
};
#endif // !defined(RUN_ONLY)
// ============================================================================
//
// START APP / END APP / START FRAME / END FRAME routines
//
// ============================================================================
// -------------------
// StartApp
// -------------------
// Called when the application starts or restarts.
// Useful for storing global data
//
void WINAPI DLLExport StartApp(mv _far *mV, CRunApp* pApp)
{
}
// -------------------
// EndApp
// -------------------
// Called when the application ends.
//
void WINAPI DLLExport EndApp(mv _far *mV, CRunApp* pApp)
{
}
// -------------------
// StartFrame
// -------------------
// Called when the frame starts or restarts.
//
void WINAPI DLLExport StartFrame(mv _far *mV, DWORD dwReserved, int nFrameIndex)
{
}
// -------------------
// EndFrame
// -------------------
// Called when the frame ends.
//
void WINAPI DLLExport EndFrame(mv _far *mV, DWORD dwReserved, int nFrameIndex)
{
}
// ============================================================================
//
// DEBUGGER ROUTINES
//
// ============================================================================
// -----------------
// GetDebugTree
// -----------------
// This routine returns the address of the debugger tree
//
LPWORD WINAPI DLLExport GetDebugTree(LPRDATA rdPtr)
{
#if !defined(RUN_ONLY)
return DebugTree;
#else
return NULL;
#endif // !defined(RUN_ONLY)
}
// -----------------
// GetDebugItem
// -----------------
// This routine returns the text of a given item.
//
void WINAPI DLLExport GetDebugItem(LPSTR pBuffer, LPRDATA rdPtr, int id)
{
#if !defined(RUN_ONLY)
#endif // !defined(RUN_ONLY)
}
// -----------------
// EditDebugItem
// -----------------
// This routine allows to edit editable items.
//
void WINAPI DLLExport EditDebugItem(LPRDATA rdPtr, int id)
{
#if !defined(RUN_ONLY)
#endif // !defined(RUN_ONLY)
}