-
Notifications
You must be signed in to change notification settings - Fork 6
/
a_glue.c
1107 lines (911 loc) · 23.7 KB
/
a_glue.c
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
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include "mt_gem.h"
#include "gem.h"
/*
* The aim of this file is to allow the linking of gemlib with libraries that have been
* compiled with an old version of gemlib ( release < 0.42.99 ).
*
* With new version of gemlib ( release >= 0.42.99), all AES xxx() functions are transformed to
* mt_xxx() functions thanks to macros in gem.h.
*
* Libraries compiled with old ( < 0.42.99) version of gemlib may requiere to be linked with
* non-mt functions. That's the only purpose of this glue file.
*
* => new AES functions (added since release 0.42.99) shall not appear in this file, because
* they didn't exist on gemlib < 0.42.99, and so, old-not-up-to-date libraries don't
* ask for the symbol name without "mt_" in the link stage.
*/
#ifdef appl_bvset
#undef appl_bvset
#endif
short appl_bvset(short bvdisk, short bvhard);
short
appl_bvset(short bvdisk, short bvhard)
{
return(mt_appl_bvset(bvdisk, bvhard, aes_global));
}
#ifdef appl_control
#undef appl_control
#endif
short appl_control(short ap_cid, short ap_cwhat, void *ap_cout);
short
appl_control(short ap_cid, short ap_cwhat, void *ap_cout)
{
return(mt_appl_control(ap_cid,ap_cwhat,ap_cout, aes_global));
}
#ifdef appl_exit
#undef appl_exit
#endif
short appl_exit(void);
short
appl_exit(void)
{
return(mt_appl_exit(aes_global));
}
#ifdef appl_find
#undef appl_find
#endif
short appl_find(const char *name);
short
appl_find(const char *name)
{
return(mt_appl_find(name, aes_global));
}
#ifdef appl_getinfo
#undef appl_getinfo
#endif
short appl_getinfo(short type, short *out1, short *out2, short *out3, short *out4);
short
appl_getinfo(short type, short *out1, short *out2, short *out3, short *out4)
{
return(mt_appl_getinfo(type,out1, out2, out3, out4, aes_global));
}
/* for backward compatibility with gemlib 42 */
#ifdef appl_xgetinfo
#undef appl_xgetinfo
#endif
short appl_xgetinfo(short type, short *out1, short *out2, short *out3, short *out4);
short
appl_xgetinfo(short type, short *out1, short *out2, short *out3, short *out4)
{
return(mt_appl_getinfo(type,out1, out2, out3, out4, aes_global));
}
#ifdef appl_read
#undef appl_read
#endif
short appl_read(short ap_id, short length, void *ap_pbuff);
short
appl_read(short ap_id, short length, void *ap_pbuff)
{
return(mt_appl_read(ap_id, length, ap_pbuff, aes_global));
}
#ifdef appl_search
#undef appl_search
#endif
short appl_search(short mode, char *fname, short *type, short *ap_id);
short
appl_search(short mode, char *fname, short *type, short *ap_id)
{
return(mt_appl_search( mode, fname, type, ap_id, aes_global));
}
#ifdef appl_tplay
#undef appl_tplay
#endif
short appl_tplay(void *mem, short num, short scale);
short
appl_tplay(void *mem, short num, short scale)
{
return(mt_appl_tplay(mem, num, scale, aes_global));
}
#ifdef appl_trecord
#undef appl_trecord
#endif
short appl_trecord(void *mem, short count) ;
short
appl_trecord(void *mem, short count)
{
return(mt_appl_trecord(mem, count, aes_global));
}
#ifdef appl_write
#undef appl_write
#endif
short appl_write(short ap_id, short length, void *ap_pbuff);
short
appl_write(short ap_id, short length, void *ap_pbuff)
{
return(mt_appl_write( ap_id, length, ap_pbuff, aes_global));
}
#ifdef appl_yield
#undef appl_yield
#endif
short appl_yield(void);
short
appl_yield(void)
{
return(mt_appl_yield(aes_global));
}
#ifdef evnt_button
#undef evnt_button
#endif
short evnt_button(short clicks, short mask, short state,
short *mx, short *my, short *mbutton, short *kmeta);
short
evnt_button(short clicks, short mask, short state,
short *mx, short *my, short *mbutton, short *kmeta)
{
return(mt_evnt_button(clicks,mask,state,
mx,my,mbutton,kmeta, aes_global));
}
#ifdef evnt_dclick
#undef evnt_dclick
#endif
short evnt_dclick(short value, short sflag);
short evnt_dclick(short value, short sflag)
{
return(mt_evnt_dclick(value, sflag, aes_global));
}
#ifdef evnt_keybd
#undef evnt_keybd
#endif
int evnt_keybd(void);
int evnt_keybd(void)
{
return(mt_evnt_keybd(aes_global));
}
#ifdef evnt_mesag
#undef evnt_mesag
#endif
short evnt_mesag(short msg[]);
short evnt_mesag(short msg[])
{
return(mt_evnt_mesag(msg, aes_global));
}
#ifdef evnt_mouse
#undef evnt_mouse
#endif
short evnt_mouse(short flag, short x, short y, short w, short h,
short *mx, short *my, short *mbutton, short *kmeta);
short evnt_mouse(short flag, short x, short y, short w, short h,
short *mx, short *my, short *mbutton, short *kmeta)
{
return(mt_evnt_mouse(flag, x, y, w, h, mx, my, mbutton, kmeta, aes_global));
}
#ifdef evnt_multi
#undef evnt_multi
#endif
short
evnt_multi(short events, short bclicks, short bmask, short bstate,
short m1_leave, short m1_x, short m1_y, short m1_w, short m1_h,
short m2_leave, short m2_x, short m2_y, short m2_w, short m2_h,
short msg[], unsigned long interval,
short *mx, short *my,
short *mbutton, short *kmeta, short *kreturn, short *mbclicks);
short
evnt_multi(short events, short bclicks, short bmask, short bstate,
short m1_leave, short m1_x, short m1_y, short m1_w, short m1_h,
short m2_leave, short m2_x, short m2_y, short m2_w, short m2_h,
short msg[], unsigned long interval,
short *mx, short *my,
short *mbutton, short *kmeta, short *kreturn, short *mbclicks)
{
return(mt_evnt_multi(events, bclicks, bmask, bstate, m1_leave, m1_x, m1_y, m1_w, m1_h, m2_leave, m2_x, m2_y, m2_w, m2_h, msg, interval, mx, my, mbutton, kmeta, kreturn, mbclicks, aes_global));
}
#ifdef evnt_multi_fast
#undef evnt_multi_fast
#endif
short evnt_multi_fast (const EVMULT_IN * em_in, short msg[], EVMULT_OUT * em_out);
short
evnt_multi_fast (const EVMULT_IN * em_in, short msg[], EVMULT_OUT * em_out)
{
return(mt_evnt_multi_fast(em_in,msg,em_out,aes_global));
}
#ifdef evnt_timer
#undef evnt_timer
#endif
short evnt_timer(unsigned long interval);
short
evnt_timer(unsigned long interval)
{
return(mt_evnt_timer(interval, aes_global));
}
#ifdef form_alert
#undef form_alert
#endif
short form_alert(short default_button, const char *alert_string);
short
form_alert(short default_button, const char *alert_string)
{
return (mt_form_alert(default_button,alert_string, aes_global));
}
#ifdef form_button
#undef form_button
#endif
short form_button(OBJECT *tree, short object, short clicks, short *nextobj);
short
form_button(OBJECT *tree, short object, short clicks, short *nextobj)
{
return(mt_form_button(tree, object, clicks, nextobj, aes_global));
}
#ifdef form_center
#undef form_center
#endif
short form_center(OBJECT *tree, short *cx, short *cy, short *cw, short *ch);
short
form_center(OBJECT *tree, short *cx, short *cy, short *cw, short *ch)
{
return(mt_form_center(tree, cx, cy, cw, ch, aes_global));
}
#ifdef form_dial
#undef form_dial
#endif
short form_dial(short mode,
short x1, short y1, short w1, short h1,
short x2, short y2, short w2, short h2);
short
form_dial(short mode,
short x1, short y1, short w1, short h1,
short x2, short y2, short w2, short h2)
{
return(mt_form_dial( mode, x1, y1, w1, h1, x2, y2, w2, h2, aes_global));
}
#ifdef form_do
#undef form_do
#endif
short form_do(OBJECT *tree, short startobj);
short
form_do(OBJECT *tree, short startobj)
{
return(mt_form_do(tree, startobj, aes_global));
}
#ifdef form_error
#undef form_error
#endif
short form_error(short error_code);
short
form_error(short error_code)
{
return(mt_form_error(error_code, aes_global));
}
#ifdef form_keybd
#undef form_keybd
#endif
short form_keybd(OBJECT *tree, short object, short reserved, short key, short *nextobject, short *nextchar);
short
form_keybd(OBJECT *tree, short object, short reserved, short key, short *nextobject, short *nextchar)
{
return(mt_form_keybd(tree, object, reserved, key, nextobject, nextchar, aes_global));
}
#ifdef fsel_exinput
#undef fsel_exinput
#endif
short fsel_exinput(char *path, char *file, short *exit_but, const char *title);
short
fsel_exinput(char *path, char *file, short *exit_but, const char *title)
{
return(mt_fsel_exinput(path, file, exit_but, title, aes_global));
}
#ifdef fsel_input
#undef fsel_input
#endif
short fsel_input(char *path, char *file, short *exit_but);
short
fsel_input(char *path, char *file, short *exit_but)
{
return(mt_fsel_input(path, file, exit_but,aes_global));
}
#ifdef graf_dragbox
#undef graf_dragbox
#endif
short graf_dragbox(short w, short h, short sx, short sy,
short bx, short by, short bw, short bh, short *rx, short *ry);
short
graf_dragbox(short w, short h, short sx, short sy,
short bx, short by, short bw, short bh, short *rx, short *ry)
{
return(mt_graf_dragbox(w, h, sx, sy, bx, by, bw, bh, rx, ry, aes_global));
}
#ifdef graf_growbox
#undef graf_growbox
#endif
short graf_growbox(short sx, short sy, short sw, short sh,
short fx, short fy, short fw, short fh);
short
graf_growbox(short sx, short sy, short sw, short sh,
short fx, short fy, short fw, short fh)
{
return(mt_graf_growbox( sx, sy, sw, sh, fx, fy, fw, fh, aes_global));
}
#ifdef graf_handle
#undef graf_handle
#endif
short graf_handle(short *wcell, short *hcell, short *wbox, short *hbox);
short
graf_handle(short *wcell, short *hcell, short *wbox, short *hbox)
{
return(mt_graf_handle(wcell, hcell, wbox, hbox, aes_global));
}
#ifdef graf_watchbox
#undef graf_watchbox
#endif
short graf_watchbox(OBJECT *tree, short object, short in_state, short out_state);
short
graf_watchbox(OBJECT *tree, short object, short in_state, short out_state)
{
return(mt_graf_watchbox(tree, object, in_state, out_state, aes_global));
}
#ifdef graf_mbox
#undef graf_mbox
#endif
short graf_mbox(short w, short h, short sx, short sy, short dx, short dy);
short
graf_mbox(short w, short h, short sx, short sy, short dx, short dy)
{
return(mt_graf_mbox( w, h, sx, sy, dx, dy, aes_global));
}
#ifdef graf_mkstate
#undef graf_mkstate
#endif
short graf_mkstate(short *mx, short *my, short *mbutton, short *kmeta);
short
graf_mkstate(short *mx, short *my, short *mbutton, short *kmeta)
{
return(mt_graf_mkstate(mx, my, mbutton, kmeta, aes_global));
}
#ifdef graf_mouse
#undef graf_mouse
#endif
short graf_mouse(short shape, const MFORM *shape_addr);
short
graf_mouse(short shape, const MFORM *shape_addr)
{
return(mt_graf_mouse( shape, shape_addr, aes_global));
}
#ifdef graf_rubberbox
#undef graf_rubberbox
#endif
short graf_rubberbox(short bx, short by, short mw, short mh, short *rw, short *rh);
short
graf_rubberbox(short bx, short by, short mw, short mh, short *rw, short *rh)
{
return(mt_graf_rubberbox( bx, by, mw, mh, rw, rh, aes_global));
}
#ifdef graf_rubbbox
#undef graf_rubbbox
#endif
short graf_rubbbox(short bx, short by, short mw, short mh, short *rw, short *rh);
short
graf_rubbbox(short bx, short by, short mw, short mh, short *rw, short *rh)
{
return(mt_graf_rubberbox( bx, by, mw, mh, rw, rh, aes_global));
}
#ifdef graf_rubbox
#undef graf_rubbox
#endif
short graf_rubbox(short bx, short by, short mw, short mh, short *rw, short *rh);
short
graf_rubbox(short bx, short by, short mw, short mh, short *rw, short *rh)
{
return(mt_graf_rubberbox( bx, by, mw, mh, rw, rh, aes_global));
}
#ifdef graf_shrinkbox
#undef graf_shrinkbox
#endif
short graf_shrinkbox(short fx, short fy, short fw, short fh,
short sx, short sy, short sw, short sh);
short
graf_shrinkbox(short fx, short fy, short fw, short fh,
short sx, short sy, short sw, short sh)
{
return(mt_graf_shrinkbox( fx, fy, fw, fh, sx, sy, sw, sh, aes_global));
}
#ifdef graf_slidebox
#undef graf_slidebox
#endif
short graf_slidebox(OBJECT *tree, short parent, short object, short direction);
short
graf_slidebox(OBJECT *tree, short parent, short object, short direction)
{
return(mt_graf_slidebox(tree, parent, object, direction, aes_global));
}
#ifdef menu_attach
#undef menu_attach
#endif
short menu_attach(short me_flag, OBJECT *me_tree, short me_item, MENU *me_mdata);
short
menu_attach(short me_flag, OBJECT *me_tree, short me_item, MENU *me_mdata)
{
return(mt_menu_attach( me_flag, me_tree, me_item, me_mdata, aes_global));
}
#ifdef menu_bar
#undef menu_bar
#endif
short menu_bar(OBJECT *me_tree, int me_mode);
short
menu_bar(OBJECT *me_tree, int me_mode)
{
return(mt_menu_bar(me_tree, me_mode, aes_global));
}
#ifdef menu_click
#undef menu_click
#endif
short menu_click(short click, short setit);
short
menu_click(short click, short setit)
{
return(mt_menu_click( click, setit, aes_global));
}
#ifdef menu_icheck
#undef menu_icheck
#endif
short menu_icheck(OBJECT *me_tree, short me_item, short me_check);
short
menu_icheck(OBJECT *me_tree, short me_item, short me_check)
{
return(mt_menu_icheck(me_tree, me_item, me_check, aes_global));
}
#ifdef menu_ienable
#undef menu_ienable
#endif
short menu_ienable(OBJECT *me_tree, short me_item, short me_enable);
short
menu_ienable(OBJECT *me_tree, short me_item, short me_enable)
{
return(mt_menu_ienable(me_tree, me_item, me_enable,aes_global));
}
#ifdef menu_istart
#undef menu_istart
#endif
short menu_istart(short me_flag, OBJECT *me_tree, short me_imenu, short me_item);
short
menu_istart(short me_flag, OBJECT *me_tree, short me_imenu, short me_item)
{
return(mt_menu_istart(me_flag, me_tree, me_imenu, me_item, aes_global));
}
#ifdef menu_popup
#undef menu_popup
#endif
short menu_popup(MENU *me_menu, short me_xpos, short me_ypos, MENU *me_mdata);
short
menu_popup(MENU *me_menu, short me_xpos, short me_ypos, MENU *me_mdata)
{
return(mt_menu_popup(me_menu, me_xpos, me_ypos, me_mdata, aes_global));
}
#ifdef menu_register
#undef menu_register
#endif
short menu_register(short ap_id, char *me_text);
short
menu_register(short ap_id, char *me_text)
{
return(mt_menu_register(ap_id, me_text, aes_global));
}
#ifdef menu_settings
#undef menu_settings
#endif
short menu_settings(short me_flag, MN_SET *me_values);
short
menu_settings(short me_flag, MN_SET *me_values)
{
return(mt_menu_settings(me_flag, me_values, aes_global));
}
#ifdef menu_text
#undef menu_text
#endif
short menu_text(OBJECT *me_tree, int me_item, char *me_text);
short
menu_text(OBJECT *me_tree, int me_item, char *me_text)
{
return(mt_menu_text(me_tree, me_item, me_text, aes_global));
}
#ifdef menu_tnormal
#undef menu_tnormal
#endif
short menu_tnormal(OBJECT *me_tree, short me_item, short me_normal);
short
menu_tnormal(OBJECT *me_tree, short me_item, short me_normal)
{
return(mt_menu_tnormal(me_tree, me_item, me_normal, aes_global));
}
#ifdef menu_unregister
#undef menu_unregister
#endif
short menu_unregister(int id);
short
menu_unregister(int id)
{
return(mt_menu_unregister(id, aes_global));
}
#ifdef objc_add
#undef objc_add
#endif
short objc_add(OBJECT *tree, short parent, short child);
short
objc_add(OBJECT *tree, short parent, short child)
{
return(mt_objc_add(tree,parent,child,aes_global));
}
#ifdef objc_change
#undef objc_change
#endif
short objc_change(OBJECT *tree, short object, short res, short cx, short cy,
short cw, short ch, short new_state, short redraw);
short
objc_change(OBJECT *tree, short object, short res, short cx, short cy,
short cw, short ch, short new_state, short redraw)
{
return(mt_objc_change(tree, object, res, cx, cy, cw, ch, new_state, redraw, aes_global));
}
#ifdef objc_delete
#undef objc_delete
#endif
short objc_delete(OBJECT *tree, short object);
short
objc_delete(OBJECT *tree, short object)
{
return(mt_objc_delete(tree, object, aes_global));
}
#ifdef objc_draw
#undef objc_draw
#endif
short objc_draw(OBJECT *tree, short start, short depth,
short cx, short cy, short cw, short ch);
short
objc_draw(OBJECT *tree, short start, short depth,
short cx, short cy, short cw, short ch)
{
return(mt_objc_draw(tree, start, depth, cx, cy, cw, ch, aes_global));
}
#ifdef objc_edit
#undef objc_edit
#endif
short objc_edit(OBJECT *tree, short object, short ch, short *index, short kind);
short
objc_edit(OBJECT *tree, short object, short ch, short *index, short kind)
{
return(mt_objc_edit(tree, object, ch, index, kind, aes_global));
}
#ifdef objc_find
#undef objc_find
#endif
short objc_find(OBJECT *tree, short start, short depth, short mx, short my);
short
objc_find(OBJECT *tree, short start, short depth, short mx, short my)
{
return(mt_objc_find(tree, start, depth, mx, my, aes_global));
}
#ifdef objc_offset
#undef objc_offset
#endif
short objc_offset(OBJECT *tree, short object, short *x, short *y);
short
objc_offset(OBJECT *tree, short object, short *x, short *y)
{
return(mt_objc_offset(tree, object, x, y, aes_global));
}
#ifdef objc_order
#undef objc_order
#endif
short objc_order(OBJECT *tree, short object, short new_pos);
short
objc_order(OBJECT *tree, short object, short new_pos)
{
return(mt_objc_order(tree, object, new_pos, aes_global));
}
#ifdef objc_sysvar
#undef objc_sysvar
#endif
short objc_sysvar(short mode, short which, short in1, short in2,
short *out1, short *out2);
short
objc_sysvar(short mode, short which, short in1, short in2,
short *out1, short *out2)
{
return(mt_objc_sysvar(mode, which, in1, in2, out1, out2, aes_global));
}
#ifdef rsrc_free
#undef rsrc_free
#endif
short rsrc_free(void);
short
rsrc_free(void)
{
return(mt_rsrc_free(aes_global));
}
#ifdef rsrc_gaddr
#undef rsrc_gaddr
#endif
short rsrc_gaddr(short Type, short Index, void *Address);
short
rsrc_gaddr(short Type, short Index, void *Address)
{
return( mt_rsrc_gaddr( Type, Index,Address, aes_global));
}
#ifdef rsrc_load
#undef rsrc_load
#endif
short rsrc_load(const char *Name);
short
rsrc_load(const char *Name)
{
return(mt_rsrc_load(Name, aes_global));
}
#ifdef rsrc_obfix
#undef rsrc_obfix
#endif
short rsrc_obfix(OBJECT *Tree, short Index);
short
rsrc_obfix(OBJECT *Tree, short Index)
{
return(mt_rsrc_obfix(Tree, Index, aes_global));
}
#ifdef rsrc_rcfix
#undef rsrc_rcfix
#endif
short rsrc_rcfix(void *rc_header);
short
rsrc_rcfix(void *rc_header)
{
return(mt_rsrc_rcfix(rc_header, aes_global));
}
#ifdef rsrc_saddr
#undef rsrc_saddr
#endif
short rsrc_saddr(short Type, short Index, void *Address);
short
rsrc_saddr(short Type, short Index, void *Address)
{
return(mt_rsrc_saddr(Type, Index, Address,aes_global));
}
#ifdef scrp_clear
#undef scrp_clear
#endif
short scrp_clear(void);
short
scrp_clear(void)
{
return(mt_scrp_clear(aes_global));
}
#ifdef scrp_read
#undef scrp_read
#endif
short scrp_read(char *Scrappath);
short
scrp_read(char *Scrappath)
{
return(mt_scrp_read(Scrappath, aes_global));
}
#ifdef scrp_write
#undef scrp_write
#endif
short scrp_write(const char *Scrappath);
short
scrp_write(const char *Scrappath)
{
return(mt_scrp_write(Scrappath, aes_global));
}
#ifdef shel_envrn
#undef shel_envrn
#endif
short shel_envrn(char **result, const char *param);
short
shel_envrn(char **result, const char *param)
{
return(mt_shel_envrn(result,param, aes_global));
}
#ifdef shel_find
#undef shel_find
#endif
short shel_find(char *buf);
short
shel_find(char *buf)
{
return(mt_shel_find(buf, aes_global));
}
#ifdef shel_get
#undef shel_get
#endif
short shel_get(char *Buf, short Len);
short
shel_get(char *Buf, short Len)
{
return(mt_shel_get(Buf, Len, aes_global));
}
#ifdef shel_help
#undef shel_help
#endif
short shel_help(short sh_hmode, const char *sh_hfile, const char *sh_hkey);
short
shel_help(short sh_hmode, const char *sh_hfile, const char *sh_hkey)
{
return(mt_shel_help(sh_hmode, sh_hfile, sh_hkey, aes_global));
}
#ifdef shel_put
#undef shel_put
#endif
short shel_put(const char *Buf, short Len);
short
shel_put(const char *Buf, short Len)
{
return(mt_shel_put(Buf, Len, aes_global));
}
#ifdef shel_rdef
#undef shel_rdef
#endif
void shel_rdef(char *lpcmd, char *lpdir);
void shel_rdef(char *lpcmd, char *lpdir)
{
mt_shel_rdef(lpcmd, lpdir, aes_global);
}
#ifdef shel_read
#undef shel_read
#endif
short shel_read(char *Command, char *Tail);
short
shel_read(char *Command, char *Tail)
{
return(mt_shel_read(Command, Tail, aes_global));
}
#ifdef shel_wdef
#undef shel_wdef
#endif
void shel_wdef(const char *lpcmd, const char *lpdir);
void shel_wdef(const char *lpcmd, const char *lpdir)
{
mt_shel_wdef(lpcmd, lpdir, aes_global);
}
#ifdef shel_write
#undef shel_write
#endif
short shel_write(short wodex, short wisgr, short wiscr, void *cmd, char *tail);
short
shel_write(short wodex, short wisgr, short wiscr, void *cmd, char *tail)
{
return(mt_shel_write(wodex, wisgr, wiscr, cmd, tail, aes_global));
}
#ifdef wind_calc
#undef wind_calc
#endif
short wind_calc(short Type, short Parts, short InX, short InY, short InW, short InH,
short *OutX, short *OutY, short *OutW, short *OutH);
short
wind_calc(short Type, short Parts, short InX, short InY, short InW, short InH,
short *OutX, short *OutY, short *OutW, short *OutH)
{
return(mt_wind_calc( Type, Parts, InX, InY, InW, InH, OutX, OutY, OutW, OutH, aes_global));
}
#ifdef wind_calc_grect
#undef wind_calc_grect
#endif
short wind_calc_grect(short Type, short Parts, const GRECT *In, GRECT *Out);
short
wind_calc_grect(short Type, short Parts, const GRECT *In, GRECT *Out)
{
return(mt_wind_calc_grect(Type, Parts, In, Out, aes_global));
}
#ifdef wind_close
#undef wind_close
#endif
short wind_close(short WindowHandle);
short
wind_close(short WindowHandle)
{
return(mt_wind_close(WindowHandle, aes_global));
}
#ifdef wind_create
#undef wind_create
#endif
short wind_create(short Parts, short Wx, short Wy, short Ww, short Wh);
short
wind_create(short Parts, short Wx, short Wy, short Ww, short Wh)
{
return(mt_wind_create(Parts, Wx, Wy, Ww, Wh, aes_global));
}
#ifdef wind_create_grect
#undef wind_create_grect
#endif
short wind_create_grect(short Parts, const GRECT *r);
short
wind_create_grect(short Parts, const GRECT *r)
{
return(mt_wind_create_grect( Parts, r, aes_global));
}
#ifdef wind_delete
#undef wind_delete
#endif
short wind_delete(short WindowHandle);
short
wind_delete(short WindowHandle)
{
return(mt_wind_delete(WindowHandle, aes_global));
}
#ifdef wind_find
#undef wind_find
#endif
short wind_find(short X, short Y);