summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-09-25 18:00:32 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-09-25 18:00:32 +0000
commitcbec8ebe2f7855c619451e56c6921e1537d3eba5 (patch)
treeb15c2a3f29a517dce5b080fa94e0beef050444dc /perl.c
parent6f8d0260355f8c4ae7955768122638ad99f0ebab (diff)
downloadperl-cbec8ebe2f7855c619451e56c6921e1537d3eba5.tar.gz
make PERL_SYS_INIT/INIT3/TERM into functions
p4raw-id: //depot/perl@31970
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 0bc2b25333..9fe10423ee 100644
--- a/perl.c
+++ b/perl.c
@@ -181,6 +181,33 @@ S_init_tls_and_interp(PerlInterpreter *my_perl)
}
}
+
+/* these implement the PERL_SYS_INIT, PERL_SYS_INIT3, PERL_SYS_TERM macros */
+
+void
+Perl_sys_init(int* argc, char*** argv)
+{
+ PERL_UNUSED_ARG(argc); /* may not be used depending on _BODY macro */
+ PERL_UNUSED_ARG(argv);
+ PERL_SYS_INIT_BODY(argc, argv);
+}
+
+void
+Perl_sys_init3(int* argc, char*** argv, char*** env)
+{
+ PERL_UNUSED_ARG(argc); /* may not be used depending on _BODY macro */
+ PERL_UNUSED_ARG(argv);
+ PERL_UNUSED_ARG(env);
+ PERL_SYS_INIT3_BODY(argc, argv, env);
+}
+
+void
+Perl_sys_term(pTHX)
+{
+ PERL_SYS_TERM_BODY();
+}
+
+
#ifdef PERL_IMPLICIT_SYS
PerlInterpreter *
perl_alloc_using(struct IPerlMem* ipM, struct IPerlMem* ipMS,