File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ main(int argc, char **argv)
235235 /* new interpreter instance */
236236 mrb = mrb_open ();
237237 if (mrb == NULL ) {
238- fprintf ( stderr , "Invalid mrb interpreter, exiting mirb" );
238+ fputs ( "Invalid mrb interpreter, exiting mirb\n" , stderr );
239239 return EXIT_FAILURE ;
240240 }
241241
@@ -262,7 +262,7 @@ main(int argc, char **argv)
262262 last_code_line [char_index ++ ] = last_char ;
263263 }
264264 if (last_char == EOF ) {
265- printf ("\n" );
265+ fputs ("\n" , stdout );
266266 break ;
267267 }
268268
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ main(int argc, char **argv)
182182 mrb_value result ;
183183
184184 if (mrb == NULL ) {
185- fprintf ( stderr , "Invalid mrb_state, exiting mrbc" );
185+ fputs ( "Invalid mrb_state, exiting mrbc\n" , stderr );
186186 return EXIT_FAILURE ;
187187 }
188188
@@ -204,7 +204,7 @@ main(int argc, char **argv)
204204 return EXIT_FAILURE ;
205205 }
206206 if (args .check_syntax ) {
207- printf ("Syntax OK\n " );
207+ puts ("Syntax OK" );
208208 cleanup (mrb , & args );
209209 return EXIT_SUCCESS ;
210210 }
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ main(int argc, char **argv)
235235 mrb_value ARGV ;
236236
237237 if (mrb == NULL ) {
238- fprintf ( stderr , "Invalid mrb_state, exiting mruby\n" );
238+ fputs ( "Invalid mrb_state, exiting mruby\n" , stderr );
239239 return EXIT_FAILURE ;
240240 }
241241
You can’t perform that action at this time.
0 commit comments