summaryrefslogtreecommitdiff
path: root/miniperlmain.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-06-26 18:24:19 +0200
committerNicholas Clark <nick@ccl4.org>2013-07-12 12:51:39 +0200
commit79403e7734f5035577af0aa30b949ca081ec503c (patch)
treefd0b587346a937f98ee4be175a0d81c08bd0a280 /miniperlmain.c
parent5c64bffd0d9c35e88b9ac48fc997977163abcc50 (diff)
downloadperl-79403e7734f5035577af0aa30b949ca081ec503c.tar.gz
For -DPERL_GLOBAL_STRUCT, eliminate local variable plvarsp in main().
Diffstat (limited to 'miniperlmain.c')
-rw-r--r--miniperlmain.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/miniperlmain.c b/miniperlmain.c
index c57c883f8f..a1ef2f1574 100644
--- a/miniperlmain.c
+++ b/miniperlmain.c
@@ -66,12 +66,11 @@ int
main(int argc, char **argv, char **env)
#endif
{
- dVAR;
int exitstatus, i;
#ifdef PERL_GLOBAL_STRUCT
- struct perl_vars *plvarsp = init_global_struct();
+ struct perl_vars *my_vars = init_global_struct();
# ifdef PERL_GLOBAL_STRUCT_PRIVATE
- my_vars = my_plvarsp = plvarsp;
+ my_plvarsp = my_vars;
# endif
#endif /* PERL_GLOBAL_STRUCT */
#ifndef NO_ENV_ARRAY_IN_MAIN
@@ -147,7 +146,7 @@ main(int argc, char **argv, char **env)
PERL_SYS_TERM();
#ifdef PERL_GLOBAL_STRUCT
- free_global_struct(plvarsp);
+ free_global_struct(my_vars);
# ifdef PERL_GLOBAL_STRUCT_PRIVATE
my_plvarsp = NULL;
/* Remember, functions registered with atexit() can run after this point,