diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2007-09-25 18:00:32 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2007-09-25 18:00:32 +0000 |
commit | cbec8ebe2f7855c619451e56c6921e1537d3eba5 (patch) | |
tree | b15c2a3f29a517dce5b080fa94e0beef050444dc /perl.c | |
parent | 6f8d0260355f8c4ae7955768122638ad99f0ebab (diff) | |
download | perl-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.c | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -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, |