summaryrefslogtreecommitdiff
path: root/perl.h
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.h
parent6f8d0260355f8c4ae7955768122638ad99f0ebab (diff)
downloadperl-cbec8ebe2f7855c619451e56c6921e1537d3eba5.tar.gz
make PERL_SYS_INIT/INIT3/TERM into functions
p4raw-id: //depot/perl@31970
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index ff4746d874..5c6d656a31 100644
--- a/perl.h
+++ b/perl.h
@@ -2648,10 +2648,14 @@ typedef struct clone_params CLONE_PARAMS;
# define PERL_FPU_POST_EXEC }
#endif
-#ifndef PERL_SYS_INIT3
-# define PERL_SYS_INIT3(argvp,argcp,envp) PERL_SYS_INIT(argvp,argcp)
+#ifndef PERL_SYS_INIT3_BODY
+# define PERL_SYS_INIT3_BODY(argvp,argcp,envp) PERL_SYS_INIT_BODY(argvp,argcp)
#endif
+#define PERL_SYS_INIT(argc, argv) Perl_sys_init(argc, argv)
+#define PERL_SYS_INIT3(argc, argv, env) Perl_sys_init3(argc, argv, env)
+#define PERL_SYS_TERM() Perl_sys_term(aTHX)
+
#ifndef PERL_WRITE_MSG_TO_CONSOLE
# define PERL_WRITE_MSG_TO_CONSOLE(io, msg, len) PerlIO_write(io, msg, len)
#endif