File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ extern void Init_Ext_Test(void); // see: host-ext-test.c
108
108
#endif
109
109
110
110
// Host bare-bones stdio functs:
111
- extern REBREQ * Open_StdIO (void );
111
+ extern REBREQ * Open_StdIO (REBOOL cgi );
112
112
extern void Close_StdIO (void );
113
113
extern void Put_Str (REBYTE * buf );
114
114
extern REBYTE * Get_Str (void );
@@ -343,12 +343,15 @@ int main(int argc, char **argv) {
343
343
REBYTE vers [8 ];
344
344
REBINT n ;
345
345
REBREQ * std_io ;
346
+ REBOOL cgi ;
346
347
347
348
Parse_Args (argc , (REBCHR * * )argv , & Main_Args );
348
349
350
+ cgi = Main_Args .options & RO_CGI ;
351
+
349
352
// Must be done before an console I/O can occur. Does not use reb-lib,
350
353
// so this device should open even if there are other problems.
351
- std_io = Open_StdIO (( Main_Args . options & RO_CGI ) ); // also sets up interrupt handler
354
+ std_io = Open_StdIO (cgi ); // also sets up interrupt handler
352
355
353
356
Host_Lib = & Host_Lib_Init ;
354
357
@@ -390,7 +393,7 @@ int main(int argc, char **argv) {
390
393
#endif
391
394
392
395
if (
393
- !( Main_Args . options & RO_CGI )
396
+ !cgi
394
397
&& (
395
398
!Main_Args .script // no script was provided
396
399
|| n < 0 // script halted or had error
You can’t perform that action at this time.
0 commit comments