X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=miniperlmain.c;h=d1b3e8ed99ec8f3db28222391ca5c15dcf6fbfb0;hb=9e21b3d0833fbf0b55b44c5179a22178e636d2e9;hp=f7b24f45cc063908cd1074871a83cd9be686a6dd;hpb=51371543ca1a75ed152020ad0846b5b8cf11c32f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/miniperlmain.c b/miniperlmain.c index f7b24f4..d1b3e8e 100644 --- a/miniperlmain.c +++ b/miniperlmain.c @@ -13,7 +13,6 @@ static void xs_init (pTHX); static PerlInterpreter *my_perl; -static struct perl_thread *thr; /* XXXXXX testing */ #if defined (__MINT__) || defined (atarist) /* The Atari operating system doesn't have a dynamic stack. The @@ -38,27 +37,27 @@ main(int argc, char **argv, char **env) #undef PERLVARIC #endif - PERL_SYS_INIT(&argc,&argv); + PERL_SYS_INIT3(&argc,&argv,&env); if (!PL_do_undump) { my_perl = perl_alloc(); if (!my_perl) exit(1); - perl_construct( my_perl ); + perl_construct(my_perl); PL_perl_destruct_level = 0; } - exitstatus = perl_parse( my_perl, xs_init, argc, argv, (char **) NULL ); + exitstatus = perl_parse(my_perl, xs_init, argc, argv, (char **)NULL); if (!exitstatus) { - exitstatus = perl_run( my_perl ); + exitstatus = perl_run(my_perl); } - perl_destruct( my_perl ); - perl_free( my_perl ); + perl_destruct(my_perl); + perl_free(my_perl); PERL_SYS_TERM(); - exit( exitstatus ); + exit(exitstatus); return exitstatus; } @@ -69,5 +68,5 @@ main(int argc, char **argv, char **env) static void xs_init(pTHX) { - dXSUB_SYS; + dXSUB_SYS; }