File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,7 @@ int main(int argc, char* argv[])
280280 return EXIT_FAILURE ;
281281 }
282282
283+
283284 // initiate global variables set up
284285 if (globals != 0 ) {
285286 for (size_t i = 0 ; i < globals ; i ++ ) {
@@ -296,6 +297,7 @@ int main(int argc, char* argv[])
296297 free (globals_argv );
297298 }
298299
300+
299301 // initiate the libraries
300302 if (no_libraries == 0 )
301303 luaL_openlibs (L );
@@ -318,12 +320,14 @@ int main(int argc, char* argv[])
318320 lua_close (gL );
319321 }
320322
323+
321324 // copyright
322325 if (copyright_squelch == 0 ) {
323326 fprintf (stdout , LUA_COPYRIGHT "\n" );
324327 fprintf (stdout , LUA_CONSOLE_COPYRIGHT );
325328 }
326329
330+
327331 // if there is nothing to do, then exit, as there is nothing left to do
328332 if (no_file == 1 ) {
329333 lua_close (L );
@@ -335,6 +339,7 @@ int main(int argc, char* argv[])
335339 if (no_additions == 0 )
336340 additions_add (L );
337341
342+
338343 // load function into protected mode (pcall)
339344 int status = start_protective_mode (& lua_main_dofile , argv [1 ], parameters_argv , parameters );
340345
Original file line number Diff line number Diff line change @@ -365,6 +365,7 @@ int main(int argc, char* argv[])
365365 return EXIT_FAILURE ;
366366 }
367367
368+
368369 // initiate global variables set up
369370 if (globals != 0 ) {
370371 for (size_t i = 0 ; i < globals ; i ++ ) {
@@ -381,6 +382,7 @@ int main(int argc, char* argv[])
381382 free (globals_argv );
382383 }
383384
385+
384386 // initiate the libraries
385387 if (no_libraries == 0 )
386388 luaL_openlibs (L );
@@ -403,6 +405,7 @@ int main(int argc, char* argv[])
403405 lua_close (gL );
404406 }
405407
408+
406409 // copyright
407410 if (copyright_squelch == 0 ) {
408411 fprintf (stdout , LUA_COPYRIGHT "\n" );
@@ -421,6 +424,7 @@ int main(int argc, char* argv[])
421424 if (no_additions == 0 )
422425 additions_add (L );
423426
427+
424428 // load function into protected mode (pcall)
425429 int status = 0 ;
426430 if (post_exist == 1 ) {
@@ -429,6 +433,7 @@ int main(int argc, char* argv[])
429433 status = start_protective_mode (& lua_main_postexist , NULL , parameters_argv , parameters );
430434 } else status = start_protective_mode (& lua_main_dofile , argv [1 ], parameters_argv , parameters );
431435
436+
432437 // free resources
433438 lua_close (L );
434439
You can’t perform that action at this time.
0 commit comments