@@ -110,6 +110,8 @@ REBCNT Test_Sync_Callback(REBSER *obj, REBCNT word, RXIARG *result)
110
110
RXIARG args [4 ];
111
111
REBCNT n ;
112
112
113
+ puts ("Test_Sync_Callback" );
114
+
113
115
// These can be on the stack, because it's synchronous.
114
116
CLEAR (& cbi , sizeof (cbi ));
115
117
CLEAR (& args [0 ], sizeof (args ));
@@ -136,6 +138,8 @@ REBCNT Test_Async_Callback(REBSER *obj, REBCNT word)
136
138
RXIARG * args ;
137
139
REBCNT n ;
138
140
141
+ puts ("Test_Async_Callback" );
142
+
139
143
// These cannot be on the stack, because they are used
140
144
// when the callback happens later.
141
145
cbi = MAKE_NEW (* cbi );
@@ -158,8 +162,7 @@ REBCNT Test_Async_Callback(REBSER *obj, REBCNT word)
158
162
return n ;
159
163
}
160
164
161
-
162
- RXIEXT int RX_Call (int cmd , RXIFRM * frm , REBCEC * ctx ) {
165
+ RXIEXT int RX_Call (int cmd , RXIFRM * frm , void * ctx ) {
163
166
REBYTE * str ;
164
167
165
168
switch (cmd ) {
@@ -217,8 +220,12 @@ RXIEXT int RX_Call(int cmd, RXIFRM *frm, REBCEC *ctx) {
217
220
return RXR_UNSET ;
218
221
219
222
case 10 :
220
- RXA_INT64 (frm , 1 ) = (i64 )(ctx ? ctx -> index : -1 );
221
- RXA_TYPE (frm , 1 ) = RXT_INTEGER ;
223
+ {
224
+ REBCEC * cec = (REBCEC * )ctx ;
225
+ RXA_INT64 (frm , 1 ) = (i64 )(cec ? cec -> index : -1 );
226
+ RXA_TYPE (frm , 1 ) = RXT_INTEGER ;
227
+ }
228
+
222
229
break ;
223
230
224
231
default :
@@ -230,5 +237,5 @@ RXIEXT int RX_Call(int cmd, RXIFRM *frm, REBCEC *ctx) {
230
237
231
238
void Init_Ext_Test (void )
232
239
{
233
- RL = RL_Extend (& RX_Spec [0 ], & RX_Call );
240
+ RL = RL_Extend (& RX_Spec [0 ], ( RXICAL ) & RX_Call );
234
241
}
0 commit comments