-
Notifications
You must be signed in to change notification settings - Fork 0
/
orinfglk.h
1059 lines (965 loc) · 24.6 KB
/
orinfglk.h
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
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! 2004.02.07 ORInfGlk [GLULX]
! A wrapping of the INFGLK wrapper which eases GlulxInform development.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!--------------------------------------------------------------------------------------
! Written by John 'Katre' Cater
! Wrapped into the ORLibray by Jim Fisher (with permission)
!-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
! License:
! Matches that of the original "InfGlk.h". Contact [email protected] for
! details.
!--------------------------------------------------------------------------------------
! InfGlk was created by a Perl program written by John 'Katre' Cater.
! It was wrapped in this ORLib module (without major modification) by Jim Fisher
!
! This is a simple wrapping of the code contained in infglx file, unmodified and
! included in it's entirety. The header of this file is included below.
!--------------------------------------------------------------------------------------
! infglk - an Inform library to allow easy access to glk functions
! under glulx
! Dynamically created by glk2inf.pl on 1000802 at 11:17.34.
! Send comments or suggestions to: [email protected]
!--------------------------------------------------------------------------------------
! To register this module with your library, add the line:
!
! #include "ORInfGlk"; !Constant USE_ORInfGlk;
!
! to the library header file (OR_Library_Include). To use in a game, add the line:
!
! Constant USE_ORInfGlk; to the game file;
!
! to the game file;
!-------------------------------------------------------------------------------
! Revision History
! 2002.02.10 Initial Wrapping
! 2002.02.26 Fit into new template.
!--------------------------------------------------------------------------------------
message " Processing library extension ORInfGlk...";
!======================================================================================
! D E P E N D A N C I E S section (for bringing in dependant modules)
!======================================================================================
! #ifndef <REPLACEWITHINCLUDENAME>_DONEREPLACE; default USE_<REPLACEWITHINCLUDENAME> 0; message " [ORInfGlk forcing inclusion of <REPLACEWITHINCLUDENAME>]"; #include "<REPLACEWITHINCLUDENAME>"; #endif;
! #ifndef ORLibraryInclude; message fatalerror "ORInfGlk has dependences and cannot stand alone. Leverage the OR_Library_Include file to automatically meet module prerequisites."; #endif;
! -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
!======================================================================================
#ifndef LIBRARY_PARSER; #ifndef ORInfGlk_DONEREPLACE; constant ORInfGlk_DONEREPLACE; #ifdef ORInfGlk_DONEREPLACE; #endif; !--suppress warning
! -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
! R E P L A C E section (for code that preceeds the inclusion of PARSER)
!======================================================================================
System_file;
#Ifdef TARGET_GLULX;
#Ifndef infglk_h;
Constant infglk_h;
!Message "[Including <infglk>]";
Constant GLK_NULL 0;
! Constant definitions from glk
Constant gestalt_Version 0;
Constant gestalt_CharInput 1;
Constant gestalt_LineInput 2;
Constant gestalt_CharOutput 3;
Constant gestalt_CharOutput_CannotPrint 0;
Constant gestalt_CharOutput_ApproxPrint 1;
Constant gestalt_CharOutput_ExactPrint 2;
Constant gestalt_MouseInput 4;
Constant gestalt_Timer 5;
Constant gestalt_Graphics 6;
Constant gestalt_DrawImage 7;
Constant gestalt_Sound 8;
Constant gestalt_SoundVolume 9;
Constant gestalt_SoundNotify 10;
Constant gestalt_Hyperlinks 11;
Constant gestalt_HyperlinkInput 12;
Constant gestalt_SoundMusic 13;
Constant gestalt_GraphicsTransparency 14;
Constant evtype_None 0;
Constant evtype_Timer 1;
Constant evtype_CharInput 2;
Constant evtype_LineInput 3;
Constant evtype_MouseInput 4;
Constant evtype_Arrange 5;
Constant evtype_Redraw 6;
Constant evtype_SoundNotify 7;
Constant evtype_Hyperlink 8;
Constant keycode_Unknown $ffffffff;
Constant keycode_Left $fffffffe;
Constant keycode_Right $fffffffd;
Constant keycode_Up $fffffffc;
Constant keycode_Down $fffffffb;
Constant keycode_Return $fffffffa;
Constant keycode_Delete $fffffff9;
Constant keycode_Escape $fffffff8;
Constant keycode_Tab $fffffff7;
Constant keycode_PageUp $fffffff6;
Constant keycode_PageDown $fffffff5;
Constant keycode_Home $fffffff4;
Constant keycode_End $fffffff3;
Constant keycode_Func1 $ffffffef;
Constant keycode_Func2 $ffffffee;
Constant keycode_Func3 $ffffffed;
Constant keycode_Func4 $ffffffec;
Constant keycode_Func5 $ffffffeb;
Constant keycode_Func6 $ffffffea;
Constant keycode_Func7 $ffffffe9;
Constant keycode_Func8 $ffffffe8;
Constant keycode_Func9 $ffffffe7;
Constant keycode_Func10 $ffffffe6;
Constant keycode_Func11 $ffffffe5;
Constant keycode_Func12 $ffffffe4;
Constant keycode_MAXVAL 28;
Constant style_Normal 0;
Constant style_Emphasized 1;
Constant style_Preformatted 2;
Constant style_Header 3;
Constant style_Subheader 4;
Constant style_Alert 5;
Constant style_Note 6;
Constant style_BlockQuote 7;
Constant style_Input 8;
Constant style_User1 9;
Constant style_User2 10;
Constant style_NUMSTYLES 11;
Constant wintype_AllTypes 0;
Constant wintype_Pair 1;
Constant wintype_Blank 2;
Constant wintype_TextBuffer 3;
Constant wintype_TextGrid 4;
Constant wintype_Graphics 5;
Constant winmethod_Left $00;
Constant winmethod_Right $01;
Constant winmethod_Above $02;
Constant winmethod_Below $03;
Constant winmethod_DirMask $0f;
Constant winmethod_Fixed $10;
Constant winmethod_Proportional $20;
Constant winmethod_DivisionMask $f0;
Constant fileusage_Data $00;
Constant fileusage_SavedGame $01;
Constant fileusage_Transcript $02;
Constant fileusage_InputRecord $03;
Constant fileusage_TypeMask $0f;
Constant fileusage_TextMode $100;
Constant fileusage_BinaryMode $000;
Constant filemode_Write $01;
Constant filemode_Read $02;
Constant filemode_ReadWrite $03;
Constant filemode_WriteAppend $05;
Constant seekmode_Start 0;
Constant seekmode_Current 1;
Constant seekmode_End 2;
Constant stylehint_Indentation 0;
Constant stylehint_ParaIndentation 1;
Constant stylehint_Justification 2;
Constant stylehint_Size 3;
Constant stylehint_Weight 4;
Constant stylehint_Oblique 5;
Constant stylehint_Proportional 6;
Constant stylehint_TextColor 7;
Constant stylehint_BackColor 8;
Constant stylehint_ReverseColor 9;
Constant stylehint_NUMHINTS 10;
Constant stylehint_just_LeftFlush 0;
Constant stylehint_just_LeftRight 1;
Constant stylehint_just_Centered 2;
Constant stylehint_just_RightFlush 3;
Constant imagealign_InlineUp $01;
Constant imagealign_InlineDown $02;
Constant imagealign_InlineCenter $03;
Constant imagealign_MarginLeft $04;
Constant imagealign_MarginRight $05;
! The actual glk functions.
[ glk_exit
ret;
! Must push arguments onto the stack in reverse order
! And now the @glk call
@glk 1 0 ret;
return ret;
];
[ glk_set_interrupt_handler func
ret;
! Must push arguments onto the stack in reverse order
@copy func sp;
! And now the @glk call
@glk 2 1 ret;
return ret;
];
[ glk_tick
ret;
! Must push arguments onto the stack in reverse order
! And now the @glk call
@glk 3 0 ret;
return ret;
];
[ glk_gestalt sel val
ret;
! Must push arguments onto the stack in reverse order
@copy val sp;
@copy sel sp;
! And now the @glk call
@glk 4 2 ret;
return ret;
];
[ glk_gestalt_ext sel val arr arrlen
ret;
! Must push arguments onto the stack in reverse order
@copy arrlen sp;
@copy arr sp;
@copy val sp;
@copy sel sp;
! And now the @glk call
@glk 5 4 ret;
return ret;
];
[ glk_char_to_lower ch
ret;
! Must push arguments onto the stack in reverse order
@copy ch sp;
! And now the @glk call
@glk 160 1 ret;
return ret;
];
[ glk_char_to_upper ch
ret;
! Must push arguments onto the stack in reverse order
@copy ch sp;
! And now the @glk call
@glk 161 1 ret;
return ret;
];
[ glk_window_get_root
ret;
! Must push arguments onto the stack in reverse order
! And now the @glk call
@glk 34 0 ret;
return ret;
];
[ glk_window_open split method size wintype rock
ret;
! Must push arguments onto the stack in reverse order
@copy rock sp;
@copy wintype sp;
@copy size sp;
@copy method sp;
@copy split sp;
! And now the @glk call
@glk 35 5 ret;
return ret;
];
[ glk_window_close win result
ret;
! Must push arguments onto the stack in reverse order
@copy result sp;
@copy win sp;
! And now the @glk call
@glk 36 2 ret;
return ret;
];
[ glk_window_get_size win widthptr heightptr
ret;
! Must push arguments onto the stack in reverse order
@copy heightptr sp;
@copy widthptr sp;
@copy win sp;
! And now the @glk call
@glk 37 3 ret;
return ret;
];
[ glk_window_set_arrangement win method size keywin
ret;
! Must push arguments onto the stack in reverse order
@copy keywin sp;
@copy size sp;
@copy method sp;
@copy win sp;
! And now the @glk call
@glk 38 4 ret;
return ret;
];
[ glk_window_get_arrangement win methodptr sizeptr keywinptr
ret;
! Must push arguments onto the stack in reverse order
@copy keywinptr sp;
@copy sizeptr sp;
@copy methodptr sp;
@copy win sp;
! And now the @glk call
@glk 39 4 ret;
return ret;
];
[ glk_window_iterate win rockptr
ret;
! Must push arguments onto the stack in reverse order
@copy rockptr sp;
@copy win sp;
! And now the @glk call
@glk 32 2 ret;
return ret;
];
[ glk_window_get_rock win
ret;
! Must push arguments onto the stack in reverse order
@copy win sp;
! And now the @glk call
@glk 33 1 ret;
return ret;
];
[ glk_window_get_type win
ret;
! Must push arguments onto the stack in reverse order
@copy win sp;
! And now the @glk call
@glk 40 1 ret;
return ret;
];
[ glk_window_get_parent win
ret;
! Must push arguments onto the stack in reverse order
@copy win sp;
! And now the @glk call
@glk 41 1 ret;
return ret;
];
[ glk_window_get_sibling win
ret;
! Must push arguments onto the stack in reverse order
@copy win sp;
! And now the @glk call
@glk 48 1 ret;
return ret;
];
[ glk_window_clear win
ret;
! Must push arguments onto the stack in reverse order
@copy win sp;
! And now the @glk call
@glk 42 1 ret;
return ret;
];
[ glk_window_move_cursor win xpos ypos
ret;
! Must push arguments onto the stack in reverse order
@copy ypos sp;
@copy xpos sp;
@copy win sp;
! And now the @glk call
@glk 43 3 ret;
return ret;
];
[ glk_window_get_stream win
ret;
! Must push arguments onto the stack in reverse order
@copy win sp;
! And now the @glk call
@glk 44 1 ret;
return ret;
];
[ glk_window_set_echo_stream win str
ret;
! Must push arguments onto the stack in reverse order
@copy str sp;
@copy win sp;
! And now the @glk call
@glk 45 2 ret;
return ret;
];
[ glk_window_get_echo_stream win
ret;
! Must push arguments onto the stack in reverse order
@copy win sp;
! And now the @glk call
@glk 46 1 ret;
return ret;
];
[ glk_set_window win
ret;
! Must push arguments onto the stack in reverse order
@copy win sp;
! And now the @glk call
@glk 47 1 ret;
return ret;
];
[ glk_stream_open_file fileref fmode rock
ret;
! Must push arguments onto the stack in reverse order
@copy rock sp;
@copy fmode sp;
@copy fileref sp;
! And now the @glk call
@glk 66 3 ret;
return ret;
];
[ glk_stream_open_memory buf buflen fmode rock
ret;
! Must push arguments onto the stack in reverse order
@copy rock sp;
@copy fmode sp;
@copy buflen sp;
@copy buf sp;
! And now the @glk call
@glk 67 4 ret;
return ret;
];
[ glk_stream_close str result
ret;
! Must push arguments onto the stack in reverse order
@copy result sp;
@copy str sp;
! And now the @glk call
@glk 68 2 ret;
return ret;
];
[ glk_stream_iterate str rockptr
ret;
! Must push arguments onto the stack in reverse order
@copy rockptr sp;
@copy str sp;
! And now the @glk call
@glk 64 2 ret;
return ret;
];
[ glk_stream_get_rock str
ret;
! Must push arguments onto the stack in reverse order
@copy str sp;
! And now the @glk call
@glk 65 1 ret;
return ret;
];
[ glk_stream_set_position str pos seekmode
ret;
! Must push arguments onto the stack in reverse order
@copy seekmode sp;
@copy pos sp;
@copy str sp;
! And now the @glk call
@glk 69 3 ret;
return ret;
];
[ glk_stream_get_position str
ret;
! Must push arguments onto the stack in reverse order
@copy str sp;
! And now the @glk call
@glk 70 1 ret;
return ret;
];
[ glk_stream_set_current str
ret;
! Must push arguments onto the stack in reverse order
@copy str sp;
! And now the @glk call
@glk 71 1 ret;
return ret;
];
[ glk_stream_get_current
ret;
! Must push arguments onto the stack in reverse order
! And now the @glk call
@glk 72 0 ret;
return ret;
];
[ glk_put_char ch
ret;
! Must push arguments onto the stack in reverse order
@copy ch sp;
! And now the @glk call
@glk 128 1 ret;
return ret;
];
[ glk_put_char_stream str ch
ret;
! Must push arguments onto the stack in reverse order
@copy ch sp;
@copy str sp;
! And now the @glk call
@glk 129 2 ret;
return ret;
];
[ glk_put_string s
ret;
! Must push arguments onto the stack in reverse order
@copy s sp;
! And now the @glk call
@glk 130 1 ret;
return ret;
];
[ glk_put_string_stream str s
ret;
! Must push arguments onto the stack in reverse order
@copy s sp;
@copy str sp;
! And now the @glk call
@glk 131 2 ret;
return ret;
];
[ glk_put_buffer buf len
ret;
! Must push arguments onto the stack in reverse order
@copy len sp;
@copy buf sp;
! And now the @glk call
@glk 132 2 ret;
return ret;
];
[ glk_put_buffer_stream str buf len
ret;
! Must push arguments onto the stack in reverse order
@copy len sp;
@copy buf sp;
@copy str sp;
! And now the @glk call
@glk 133 3 ret;
return ret;
];
[ glk_set_style styl
ret;
! Must push arguments onto the stack in reverse order
@copy styl sp;
! And now the @glk call
@glk 134 1 ret;
return ret;
];
[ glk_set_style_stream str styl
ret;
! Must push arguments onto the stack in reverse order
@copy styl sp;
@copy str sp;
! And now the @glk call
@glk 135 2 ret;
return ret;
];
[ glk_get_char_stream str
ret;
! Must push arguments onto the stack in reverse order
@copy str sp;
! And now the @glk call
@glk 144 1 ret;
return ret;
];
[ glk_get_line_stream str buf len
ret;
! Must push arguments onto the stack in reverse order
@copy len sp;
@copy buf sp;
@copy str sp;
! And now the @glk call
@glk 145 3 ret;
return ret;
];
[ glk_get_buffer_stream str buf len
ret;
! Must push arguments onto the stack in reverse order
@copy len sp;
@copy buf sp;
@copy str sp;
! And now the @glk call
@glk 146 3 ret;
return ret;
];
[ glk_stylehint_set wintype styl hint val
ret;
! Must push arguments onto the stack in reverse order
@copy val sp;
@copy hint sp;
@copy styl sp;
@copy wintype sp;
! And now the @glk call
@glk 176 4 ret;
return ret;
];
[ glk_stylehint_clear wintype styl hint
ret;
! Must push arguments onto the stack in reverse order
@copy hint sp;
@copy styl sp;
@copy wintype sp;
! And now the @glk call
@glk 177 3 ret;
return ret;
];
[ glk_style_distinguish win styl1 styl2
ret;
! Must push arguments onto the stack in reverse order
@copy styl2 sp;
@copy styl1 sp;
@copy win sp;
! And now the @glk call
@glk 178 3 ret;
return ret;
];
[ glk_style_measure win styl hint result
ret;
! Must push arguments onto the stack in reverse order
@copy result sp;
@copy hint sp;
@copy styl sp;
@copy win sp;
! And now the @glk call
@glk 179 4 ret;
return ret;
];
[ glk_fileref_create_temp usage rock
ret;
! Must push arguments onto the stack in reverse order
@copy rock sp;
@copy usage sp;
! And now the @glk call
@glk 96 2 ret;
return ret;
];
[ glk_fileref_create_by_name usage name rock
ret;
! Must push arguments onto the stack in reverse order
@copy rock sp;
@copy name sp;
@copy usage sp;
! And now the @glk call
@glk 97 3 ret;
return ret;
];
[ glk_fileref_create_by_prompt usage fmode rock
ret;
! Must push arguments onto the stack in reverse order
@copy rock sp;
@copy fmode sp;
@copy usage sp;
! And now the @glk call
@glk 98 3 ret;
return ret;
];
[ glk_fileref_create_from_fileref usage fref rock
ret;
! Must push arguments onto the stack in reverse order
@copy rock sp;
@copy fref sp;
@copy usage sp;
! And now the @glk call
@glk 104 3 ret;
return ret;
];
[ glk_fileref_destroy fref
ret;
! Must push arguments onto the stack in reverse order
@copy fref sp;
! And now the @glk call
@glk 99 1 ret;
return ret;
];
[ glk_fileref_iterate fref rockptr
ret;
! Must push arguments onto the stack in reverse order
@copy rockptr sp;
@copy fref sp;
! And now the @glk call
@glk 100 2 ret;
return ret;
];
[ glk_fileref_get_rock fref
ret;
! Must push arguments onto the stack in reverse order
@copy fref sp;
! And now the @glk call
@glk 101 1 ret;
return ret;
];
[ glk_fileref_delete_file fref
ret;
! Must push arguments onto the stack in reverse order
@copy fref sp;
! And now the @glk call
@glk 102 1 ret;
return ret;
];
[ glk_fileref_does_file_exist fref
ret;
! Must push arguments onto the stack in reverse order
@copy fref sp;
! And now the @glk call
@glk 103 1 ret;
return ret;
];
[ glk_select event
ret;
! Must push arguments onto the stack in reverse order
@copy event sp;
! And now the @glk call
@glk 192 1 ret;
return ret;
];
[ glk_select_poll event
ret;
! Must push arguments onto the stack in reverse order
@copy event sp;
! And now the @glk call
@glk 193 1 ret;
return ret;
];
[ glk_request_timer_events millisecs
ret;
! Must push arguments onto the stack in reverse order
@copy millisecs sp;
! And now the @glk call
@glk 214 1 ret;
return ret;
];
[ glk_request_line_event win buf maxlen initlen
ret;
! Must push arguments onto the stack in reverse order
@copy initlen sp;
@copy maxlen sp;
@copy buf sp;
@copy win sp;
! And now the @glk call
@glk 208 4 ret;
return ret;
];
[ glk_request_char_event win
ret;
! Must push arguments onto the stack in reverse order
@copy win sp;
! And now the @glk call
@glk 210 1 ret;
return ret;
];
[ glk_request_mouse_event win
ret;
! Must push arguments onto the stack in reverse order
@copy win sp;
! And now the @glk call
@glk 212 1 ret;
return ret;
];
[ glk_cancel_line_event win event
ret;
! Must push arguments onto the stack in reverse order
@copy event sp;
@copy win sp;
! And now the @glk call
@glk 209 2 ret;
return ret;
];
[ glk_cancel_char_event win
ret;
! Must push arguments onto the stack in reverse order
@copy win sp;
! And now the @glk call
@glk 211 1 ret;
return ret;
];
[ glk_cancel_mouse_event win
ret;
! Must push arguments onto the stack in reverse order
@copy win sp;
! And now the @glk call
@glk 213 1 ret;
return ret;
];
[ glk_image_draw win image val1 val2
ret;
! Must push arguments onto the stack in reverse order
@copy val2 sp;
@copy val1 sp;
@copy image sp;
@copy win sp;
! And now the @glk call
@glk 225 4 ret;
return ret;
];
[ glk_image_draw_scaled win image val1 val2 width height
ret;
! Must push arguments onto the stack in reverse order
@copy height sp;
@copy width sp;
@copy val2 sp;
@copy val1 sp;
@copy image sp;
@copy win sp;
! And now the @glk call
@glk 226 6 ret;
return ret;
];
[ glk_image_get_info image width height
ret;
! Must push arguments onto the stack in reverse order
@copy height sp;
@copy width sp;
@copy image sp;
! And now the @glk call
@glk 224 3 ret;
return ret;
];
[ glk_window_flow_break win
ret;
! Must push arguments onto the stack in reverse order
@copy win sp;
! And now the @glk call
@glk 232 1 ret;
return ret;
];
[ glk_window_erase_rect win left top width height
ret;
! Must push arguments onto the stack in reverse order
@copy height sp;
@copy width sp;
@copy top sp;
@copy left sp;
@copy win sp;
! And now the @glk call
@glk 233 5 ret;
return ret;
];
[ glk_window_fill_rect win color left top width height
ret;
! Must push arguments onto the stack in reverse order
@copy height sp;
@copy width sp;
@copy top sp;
@copy left sp;
@copy color sp;
@copy win sp;
! And now the @glk call
@glk 234 6 ret;
return ret;
];
[ glk_window_set_background_color win color
ret;
! Must push arguments onto the stack in reverse order
@copy color sp;
@copy win sp;
! And now the @glk call
@glk 235 2 ret;
return ret;
];
[ glk_schannel_create rock
ret;
! Must push arguments onto the stack in reverse order
@copy rock sp;
! And now the @glk call
@glk 242 1 ret;
return ret;
];
[ glk_schannel_destroy chan
ret;
! Must push arguments onto the stack in reverse order
@copy chan sp;
! And now the @glk call
@glk 243 1 ret;
return ret;
];
[ glk_schannel_iterate chan rockptr
ret;
! Must push arguments onto the stack in reverse order
@copy rockptr sp;
@copy chan sp;
! And now the @glk call
@glk 240 2 ret;
return ret;
];
[ glk_schannel_get_rock chan
ret;
! Must push arguments onto the stack in reverse order
@copy chan sp;
! And now the @glk call
@glk 241 1 ret;
return ret;
];
[ glk_schannel_play chan snd
ret;
! Must push arguments onto the stack in reverse order
@copy snd sp;
@copy chan sp;
! And now the @glk call
@glk 248 2 ret;
return ret;
];
[ glk_schannel_play_ext chan snd repeats notify
ret;
! Must push arguments onto the stack in reverse order
@copy notify sp;
@copy repeats sp;
@copy snd sp;
@copy chan sp;
! And now the @glk call
@glk 249 4 ret;
return ret;
];
[ glk_schannel_stop chan
ret;
! Must push arguments onto the stack in reverse order
@copy chan sp;
! And now the @glk call
@glk 250 1 ret;
return ret;
];
[ glk_schannel_set_volume chan vol
ret;
! Must push arguments onto the stack in reverse order
@copy vol sp;
@copy chan sp;
! And now the @glk call
@glk 251 2 ret;
return ret;
];
[ glk_sound_load_hint snd flag
ret;
! Must push arguments onto the stack in reverse order
@copy flag sp;
@copy snd sp;
! And now the @glk call
@glk 252 2 ret;
return ret;
];
[ glk_set_hyperlink linkval