Debian Codegraph @

terps/tads/tads3/vmsa.cpp

raw symbols SCIP
1 #ifdef RCSID
2 static char RCSid[] =
3 "$Header$";
4 #endif
5
6 /*
7 * Copyright (c) 1999, 2002 Michael J. Roberts. All Rights Reserved.
8 *
9 * Please see the accompanying license file, LICENSE.TXT, for information
10 * on using and copying this software.
11 */
12 /*
13 Name
14 vmsa.cpp - stand-alone interpreter entrypoints
15 Function
16 Defines certain entrypoints that are not needed in a normal stand-alone
17 version of the interpreter. The entrypoints defined here are dummy
18 implementations that should never be called.
19
20 Certain functions are needed only in special VM versions that support,
21 for example, rebuilding of an image file after running 'preinit'.
22 Notes
23
24 Modified
25 07/21/99 MJRoberts - Creation
26 */
27
28 #include <assert.h>
29
30 #include "t3std.h"
31 #include "vmobj.h"
32 #include "vmglob.h"
33 #include "vmdict.h"
34 #include "vmstr.h"
35 #include "vmlst.h"
36 #include "vmbignum.h"
37 #include "vmtobj.h"
38 #include "vmgram.h"
39 #include "vmmeta.h"
40 #include "vmintcls.h"
41 #include "vmiter.h"
42 #include "vmvec.h"
43 #include "vmlookup.h"
44 #include "vmbytarr.h"
45 #include "vmcset.h"
46 #include "vmfilobj.h"
47 #include "vmtmpfil.h"
48 #include "vmfilnam.h"
49 #include "vmpat.h"
50 #include "vmstrcmp.h"
51 #include "vmstrbuf.h"
52 #include "vmdynfunc.h"
53 #include "vmfref.h"
54 #include "vmdate.h"
55 #include "vmtzobj.h"
56
57
58 #ifdef TADSNET
59 #include "vmhttpsrv.h"
60 #include "vmhttpreq.h"
61 #endif
62
63
64 ulong CVmObjTads::rebuild_image(VMG_ char *, ulong)
65 {
66 assert(FALSE);
67 return 0;
68 }
69
70 void CVmObjTads::convert_to_const_data(VMG_ CVmConstMapper *,
71 vm_obj_id_t)
72 {
73 assert(FALSE);
74 }
75
76 ulong CVmObjString::rebuild_image(VMG_ char *, ulong)
77 {
78 assert(FALSE);
79 return 0;
80 }
81
82 void CVmObjString::reserve_const_data(VMG_ CVmConstMapper *,
83 vm_obj_id_t)
84 {
85 assert(FALSE);
86 }
87
88 void CVmObjString::convert_to_const_data(VMG_ CVmConstMapper *,
89 vm_obj_id_t)
90 {
91 assert(FALSE);
92 }
93
94 ulong CVmObjList::rebuild_image(VMG_ char *, ulong)
95 {
96 assert(FALSE);
97 return 0;
98 }
99
100 void CVmObjList::reserve_const_data(VMG_ CVmConstMapper *,
101 vm_obj_id_t)
102 {
103 assert(FALSE);
104 }
105
106 void CVmObjList::convert_to_const_data(VMG_ CVmConstMapper *,
107 vm_obj_id_t)
108 {
109 assert(FALSE);
110 }
111
112 ulong CVmObjDict::rebuild_image(VMG_ char *, ulong)
113 {
114 assert(FALSE);
115 return 0;
116 }
117
118 void CVmObjDict::convert_to_const_data(VMG_ CVmConstMapper *,
119 vm_obj_id_t)
120 {
121 assert(FALSE);
122 }
123
124 ulong CVmObjGramProd::rebuild_image(VMG_ char *buf, ulong buflen)
125 {
126 assert(FALSE);
127 return 0;
128 }
129
130 void CVmMetaTable::rebuild_image(class CVmImageWriter *)
131 {
132 }
133
134 ulong CVmObjBigNum::rebuild_image(VMG_ char *, ulong)
135 {
136 assert(FALSE);
137 return 0;
138 }
139
140 void CVmObjBigNum::reserve_const_data(VMG_ CVmConstMapper *,
141 vm_obj_id_t)
142 {
143 assert(FALSE);
144 }
145
146 void CVmObjBigNum::convert_to_const_data(VMG_ CVmConstMapper *,
147 vm_obj_id_t)
148 {
149 assert(FALSE);
150 }
151
152 ulong CVmObjClass::rebuild_image(VMG_ char *, ulong)
153 {
154 assert(FALSE);
155 return 0;
156 }
157
158 ulong CVmObjIterIdx::rebuild_image(VMG_ char *, ulong)
159 {
160 assert(FALSE);
161 return 0;
162 }
163
164 void CVmObjIterIdx::convert_to_const_data(VMG_ CVmConstMapper *,
165 vm_obj_id_t)
166 {
167 assert(FALSE);
168 }
169
170 ulong CVmObjVector::rebuild_image(VMG_ char *, ulong)
171 {
172 assert(FALSE);
173 return 0;
174 }
175
176 void CVmObjVector::reserve_const_data(VMG_ CVmConstMapper *, vm_obj_id_t)
177 {
178 assert(FALSE);
179 }
180
181 void CVmObjVector::convert_to_const_data(VMG_ CVmConstMapper *, vm_obj_id_t)
182 {
183 assert(FALSE);
184 }
185
186 ulong CVmObjLookupTable::rebuild_image(VMG_ char *, ulong)
187 {
188 assert(FALSE);
189 return 0;
190 }
191
192 ulong CVmObjStringBuffer::rebuild_image(VMG_ char *, ulong)
193 {
194 assert(FALSE);
195 return 0;
196 }
197
198 void CVmObjLookupTable::convert_to_const_data(VMG_ CVmConstMapper *,
199 vm_obj_id_t)
200 {
201 assert(FALSE);
202 }
203
204 ulong CVmObjIterLookupTable::rebuild_image(VMG_ char *, ulong)
205 {
206 assert(FALSE);
207 return 0;
208 }
209
210 void CVmObjIterLookupTable::convert_to_const_data(
211 VMG_ CVmConstMapper *, vm_obj_id_t)
212 {
213 assert(FALSE);
214 }
215
216 ulong CVmObjByteArray::rebuild_image(VMG_ char *, ulong)
217 {
218 assert(FALSE);
219 return 0;
220 }
221
222 ulong CVmObjCharSet::rebuild_image(VMG_ char *, ulong)
223 {
224 assert(FALSE);
225 return 0;
226 }
227
228 ulong CVmObjFile::rebuild_image(VMG_ char *, ulong)
229 {
230 assert(FALSE);
231 return 0;
232 }
233
234 ulong CVmObjTemporaryFile::rebuild_image(VMG_ char *buf, ulong buflen)
235 {
236 assert(FALSE);
237 return 0;
238 }
239
240 ulong CVmObjFileName::rebuild_image(VMG_ char *buf, ulong buflen)
241 {
242 assert(FALSE);
243 return 0;
244 }
245
246 ulong CVmObjPattern::rebuild_image(VMG_ char *, ulong)
247 {
248 assert(FALSE);
249 return 0;
250 }
251
252 void CVmObjPattern::convert_to_const_data(VMG_ CVmConstMapper *, vm_obj_id_t)
253 {
254 assert(FALSE);
255 }
256
257 ulong CVmObjStrComp::rebuild_image(VMG_ char *, ulong)
258 {
259 assert(FALSE);
260 return 0;
261 }
262
263 ulong CVmDynamicFunc::rebuild_image(VMG_ char *, ulong)
264 {
265 assert(FALSE);
266 return 0;
267 }
268
269 ulong CVmObjFrameDesc::rebuild_image(VMG_ char *, ulong)
270 {
271 assert(FALSE);
272 return 0;
273 }
274
275 ulong CVmObjFrameRef::rebuild_image(VMG_ char *, ulong)
276 {
277 assert(FALSE);
278 return 0;
279 }
280
281 ulong CVmObjDate::rebuild_image(VMG_ char *buf, ulong buflen)
282 {
283 assert(FALSE);
284 return 0;
285 }
286
287 ulong CVmObjTimeZone::rebuild_image(VMG_ char *buf, ulong buflen)
288 {
289 assert(FALSE);
290 return 0;
291 }
292
293
294 /* ------------------------------------------------------------------------ */
295 /*
296 * networking support, if present
297 */
298
299 #ifdef TADSNET
300
301 ulong CVmObjHTTPServer::rebuild_image(VMG_ char *buf, ulong buflen)
302 {
303 assert(FALSE);
304 return 0;
305 }
306
307 ulong CVmObjHTTPRequest::rebuild_image(VMG_ char *buf, ulong buflen)
308 {
309 assert(FALSE);
310 return 0;
311 }
312
313 #endif