Skip to content

Commit

Permalink
Remove PL_appctx and PL_timesbase interpreter variables
Browse files Browse the repository at this point in the history
These were only ever needed by Symbian.
  • Loading branch information
ilmari committed Jul 20, 2020
1 parent 566a3e5 commit fd0d589
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 29 deletions.
8 changes: 0 additions & 8 deletions makedef.pl
Expand Up @@ -470,14 +470,6 @@ sub readvar {
);
}

unless ($define{'PERL_NEED_APPCTX'}) {
++$skip{PL_appctx};
}

unless ($define{'PERL_NEED_TIMESBASE'}) {
++$skip{PL_timesbase};
}

unless ($define{'DEBUG_LEAKING_SCALARS'}) {
++$skip{PL_sv_serial};
}
Expand Down
7 changes: 0 additions & 7 deletions perl.c
Expand Up @@ -416,13 +416,6 @@ perl_construct(pTHXx)
}
#endif /* HAS_MMAP */

#if defined(HAS_TIMES) && defined(PERL_NEED_TIMESBASE)
PL_timesbase.tms_utime = 0;
PL_timesbase.tms_stime = 0;
PL_timesbase.tms_cutime = 0;
PL_timesbase.tms_cstime = 0;
#endif

PL_osname = Perl_savepvn(aTHX_ STR_WITH_LEN(OSNAME));

PL_registered_mros = newHV();
Expand Down
6 changes: 0 additions & 6 deletions perl.h
Expand Up @@ -4989,12 +4989,6 @@ EXTCONST char PL_bincompat_options[] =
# ifdef PERL_MICRO
" PERL_MICRO"
# endif
# ifdef PERL_NEED_APPCTX
" PERL_NEED_APPCTX"
# endif
# ifdef PERL_NEED_TIMESBASE
" PERL_NEED_TIMESBASE"
# endif
# ifdef PERL_POISON
" PERL_POISON"
# endif
Expand Down
8 changes: 0 additions & 8 deletions perlvars.h
Expand Up @@ -173,14 +173,6 @@ destruction. (Use of C<PL_dirty> is discouraged since 5.14.)
PERLVAR(G, check_mutex, perl_mutex) /* Mutex for PL_check */
#endif

#ifdef PERL_NEED_APPCTX
PERLVAR(G, appctx, void*) /* the application context */
#endif

#if defined(HAS_TIMES) && defined(PERL_NEED_TIMESBASE)
PERLVAR(G, timesbase, struct tms)
#endif

/* allocate a unique index to every module that calls MY_CXT_INIT */

#ifdef PERL_IMPLICIT_CONTEXT
Expand Down

0 comments on commit fd0d589

Please sign in to comment.