-
Notifications
You must be signed in to change notification settings - Fork 34
/
dxetemplate.txt
467 lines (450 loc) · 5.9 KB
/
dxetemplate.txt
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
#include <allegro.h>
#include <allegro/internal/aintern.h>
#include <allegro/platform/aintdos.h>
#include <assert.h>
#include <bios.h>
#include <conio.h>
#include <ctype.h>
#include <dirent.h>
#include <dpmi.h>
#include <glide.h>
#include <go32.h>
#include <io.h>
#include <math.h>
#include <netdb.h>
#include <pc.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <sys/exceptn.h>
#include <sys/farptr.h>
#include <sys/movedata.h>
#include <sys/stat.h>
#include <tcp.h>
#include <termios.h>
#include <time.h>
#include <unistd.h>
#include <zlib.h>
#include <setjmp.h>
#include <locale.h>
#include "DOjS.h"
#include "intarray.h"
#include "bytearray.h"
#include "util.h"
#include "zipfile.h"
#include "bitmap.h"
// symbols without include file from libgcc
extern BOOL _watt_do_exit;
extern long __divdi3 (long A, long B);
extern long __moddi3 (long A, long B);
extern unsigned long __udivdi3 (unsigned long A, unsigned long B);
extern unsigned long __udivmoddi4 (unsigned long A, unsigned long B, unsigned long *C);
extern long __divmoddi4 (long A, long B, long *C);
extern unsigned long __umoddi3 (unsigned long A, unsigned long B);
// stdio/files
close
close_s
closedir
fchmod
fchown
fclose
fdopen
feof
ferror
fflush
fgetc
fgets
fileno
fopen
fprintf
fputc
fputs
fread
freeaddrinfo
fscanf
fseek
fstat
fsync
ftell
ftruncate
fwrite
getc
getch
getcwd
lseek
lstat
mkdir
open
opendir
perror
printf
putc
puts
read
read_s
readdir
readlink
rename
rmdir
snprintf
sprintf
sscanf
stat
strerror
unlink
utimes
vfprintf
vsnprintf
vsprintf
write
exit
alarm
putchar
select
mkstemp
setlocale
_truename
// time
clock
delay
gettimeofday
gmtime
localtime
localtime_r
sleep
usleep
strftime
time
// copy/move/strings
atoi
atof
bzero
memchr
memcmp
memcpy
memmove
memset
strcasecmp
strcat
strchr
strcmp
strcpy
strcspn
strdup
stricmp
strlen
strncasecmp
strncmp
strncpy
strpbrk
strrchr
strspn
strstr
strtol
strtok
strtoull
strtoll
strtoul
stpcpy
// memory/system
abort
atexit
calloc
errno
fcntl
free
getenv
malloc
qsort
raise
realloc
signal
longjmp
setjmp
sigaction
// math/random
__fpclassifyd
rand
srand
pow
exp
ldexp
floor
tan
sqrt
cos
sin
roundf
log
log10
// other
bsearch
// gcc/djgpp/lowlevel
__divdi3
__divmoddi4
__dj_assert
__dj_ctype_flags
__dj_ctype_tolower
__dj_huge_valf
__dj_stderr
__dj_stdin
__dj_stdout
__djgpp_ds_alias
__dpmi_allocate_dos_memory
__dpmi_free_dos_memory
__dpmi_get_protected_mode_interrupt_vector
__dpmi_int
__dpmi_int
__dpmi_set_protected_mode_interrupt_vector
__dpmi_simulate_real_mode_interrupt
__moddi3
__udivdi3
__udivmoddi4
__umoddi3
_farpeekb
_farpeekw
_get_dos_version
_go32_dpmi_allocate_dos_memory
_go32_dpmi_allocate_real_mode_callback_retf
_go32_dpmi_lock_code
_go32_dpmi_lock_data
_go32_info_block
_os_flavor
_osmajor
_osminor
biosprint
dosmemget
dosmemput
inportb
inportl
inportw
outportb
outportl
outportw
// allegro
_bitmap_has_alpha
_color_load_depth
_fixup_loaded_bitmap
_install_irq
_persp_xoffset_f
_persp_xscale_f
_persp_yoffset_f
_persp_yscale_f
_remove_irq
_rgb_a_shift_32
_rgb_b_shift_15
_rgb_b_shift_16
_rgb_b_shift_24
_rgb_b_shift_32
_rgb_g_shift_15
_rgb_g_shift_16
_rgb_g_shift_24
_rgb_g_shift_32
_rgb_r_shift_15
_rgb_r_shift_16
_rgb_r_shift_24
_rgb_r_shift_32
_rgb_scale_5
_rgb_scale_6
_timer_installed
allegro_error
apply_matrix_f
clear_bitmap
clear_scene
clear_zbuffer
clip3d_f
create_bitmap_ex
create_scene
create_zbuffer
create_sample
play_sample
destroy_sample
stop_audio_stream
free_audio_stream_buffer
play_audio_stream
get_audio_stream_buffer
voice_set_pan
deallocate_voice
allocate_voice
voice_set_volume
voice_set_playmode
voice_stop
voice_start
voice_get_position
blit
destroy_bitmap
destroy_scene
destroy_zbuffer
generate_332_palette
get_palette
get_rotation_matrix_f
get_transformation_matrix_f
get_x_rotate_matrix_f
get_y_rotate_matrix_f
get_z_rotate_matrix_f
getr
getg
getb
geta
geta_depth
getb_depth
getg_depth
getr_depth
install_param_int
install_timer
matrix_mul_f
pack_fclose
pack_feof
pack_ferror
pack_fopen
pack_fread
pack_fseek
pack_fwrite
pack_getc
pack_igetl
pack_mgetl
pack_mputl
pack_putc
register_bitmap_file_type
register_datafile_object
remove_param_int
render_scene
scene_gap
scene_polygon3d_f
select_palette
set_projection_viewport
set_zbuffer
unselect_palette
// zlib
compress2
compressBound
inflate
inflateEnd
inflateInit_
inflateInit2_
uncompress
zlibVersion
// zipfile/DojS/util
check_zipfile1
check_zipfile2
DOjS
dojs_do_file
dojs_do_zipfile
read_zipfile1
read_zipfile2
ut_clone_string
ut_file_exists
ut_read_file
// IntArray
IntArray_create
IntArray_destroy
IntArray_fromStruct
IntArray_push
// ByteArray
ByteArray_create
ByteArray_destroy
ByteArray_fromStruct
ByteArray_push
ByteArray_fromBytes
Bitmap_fromRGBA
// watt32
_w32_inet_pton
_watt_do_exit
accept
access
basename
bind
chmod
clearerr
connect
gai_strerror
getaddrinfo
getegid
geteuid
getgid
gethostbyname
getnameinfo
getpeername
getpid
getsockname
getsockopt
getuid
ioctlsocket
isatty
listen
pathconf
recv
recvfrom
select_s
send
sendto
setbuf
setmode
setsockopt
setvbuf
shutdown
socket
tcgetattr
tcsetattr
watt_sock_init
// 3dfx GLIDE
grSstSelect
grTexSource
guFogGenerateExp2
grGetString
grDepthMask
grFogMode
grDrawPoint
grDisable
grDrawVertexArrayContiguous
grGlideSetState
grTexCombine
grDrawTriangle
grFlush
guFogGenerateExp
grLfbReadRegion
grGet
grAlphaBlendFunction
grTexFilterMode
grColorMask
grTexClampMode
grLfbUnlock
grTexMaxAddress
grAlphaTestFunction
grGlideGetState
grGlideInit
grGlideShutdown
grTexDownloadMipMapLevel
grBufferClear
grFogColorValue
grAlphaTestReferenceValue
grLfbWriteRegion
grDepthBufferFunction
grEnable
grVertexLayout
grBufferSwap
grCullMode
grRenderBuffer
guFogGenerateLinear
grTexDownloadTable
grTexMinAddress
grLfbLock
grTexDownloadMipMapLevelPartial
grTexMipMapMode
grClipWindow
grColorCombine
grDepthBufferMode
grTexTextureMemRequired
grReset
grTexLodBiasValue
grDrawLine
grDepthBiasLevel
grAlphaCombine
grConstantColorValue
grSstWinClose
grCoordinateSpace
grLfbWriteColorFormat
grDitherMode
grSstWinOpen
grFogTable