summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-10-21 21:02:53 +0000
committerNicholas Clark <nick@ccl4.org>2006-10-21 21:02:53 +0000
commit6b29934bd65555b7f172ba7a683ba95b59eb919b (patch)
treeced7bee3366f7491faf8b3db3d0c61128b520e8f
parent12b31bedfd2f422eff75009215acbc2ee0cc3fa6 (diff)
downloadperl-6b29934bd65555b7f172ba7a683ba95b59eb919b.tar.gz
Always defining PERLIO_TERM, even if it's empty, makes for a simpler
PERL_SYS_TERM p4raw-id: //depot/perl@29073
-rw-r--r--dosish.h4
-rw-r--r--perl.h3
-rw-r--r--unixish.h4
3 files changed, 3 insertions, 8 deletions
diff --git a/dosish.h b/dosish.h
index a5eeace522..b930de2e3b 100644
--- a/dosish.h
+++ b/dosish.h
@@ -43,11 +43,7 @@
#endif /* DJGPP */
#ifndef PERL_SYS_TERM
-# ifdef USE_PERLIO
# define PERL_SYS_TERM() HINTS_REFCNT_TERM; OP_REFCNT_TERM; PERLIO_TERM; MALLOC_TERM
-# else
-# define PERL_SYS_TERM() HINTS_REFCNT_TERM; OP_REFCNT_TERM; MALLOC_TERM
-# endif
#endif
#define dXSUB_SYS
diff --git a/perl.h b/perl.h
index 93dad5bebf..d047030a9c 100644
--- a/perl.h
+++ b/perl.h
@@ -3876,6 +3876,9 @@ EXTERN_C void PerlIO_teardown(pTHX);
# define PERLIO_INIT
# define PERLIO_TERM PerlIO_teardown(aTHX)
# endif
+#else
+# define PERLIO_INIT
+# define PERLIO_TERM
#endif
#ifdef MYMALLOC
diff --git a/unixish.h b/unixish.h
index a08e8ba051..eeb074e80c 100644
--- a/unixish.h
+++ b/unixish.h
@@ -131,11 +131,7 @@
#endif
#ifndef PERL_SYS_TERM
-# ifdef USE_PERLIO
# define PERL_SYS_TERM() HINTS_REFCNT_TERM; OP_REFCNT_TERM; PERLIO_TERM; MALLOC_TERM
-# else
-# define PERL_SYS_TERM() HINTS_REFCNT_TERM; OP_REFCNT_TERM; MALLOC_TERM
-# endif
#endif
#define BIT_BUCKET "/dev/null"