diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-10-30 08:38:07 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-10-30 08:38:07 +0000 |
commit | a9f96b3fd8bd68e3c0062e4f23c142442340b0b5 (patch) | |
tree | 490643ed9d7e00a107119e6564f7164ba9b796d1 | |
parent | 9555a685dbd794b0e9f549335341b2a3b1ea3da5 (diff) | |
download | perl-a9f96b3fd8bd68e3c0062e4f23c142442340b0b5.tar.gz |
Replace do_aexec() with a macro to call do_aexec5() with the two extra
0 arguments. Move the old body to mathoms.c
p4raw-id: //depot/perl@25891
-rw-r--r-- | doio.c | 8 | ||||
-rw-r--r-- | embed.fnc | 2 | ||||
-rw-r--r-- | embed.h | 2 | ||||
-rw-r--r-- | mathoms.c | 8 | ||||
-rw-r--r-- | perl.h | 5 | ||||
-rw-r--r-- | proto.h | 4 |
6 files changed, 15 insertions, 14 deletions
@@ -1409,14 +1409,6 @@ Perl_my_lstat(pTHX) return PL_laststatval; } -#ifndef OS2 -bool -Perl_do_aexec(pTHX_ SV *really, register SV **mark, register SV **sp) -{ - return do_aexec5(really, mark, sp, 0, 0); -} -#endif - bool Perl_do_aexec5(pTHX_ SV *really, register SV **mark, register SV **sp, int fd, int do_report) @@ -177,7 +177,7 @@ Afp |OP* |die |NULLOK const char* pat|... p |OP* |vdie |NULLOK const char* pat|NULLOK va_list* args p |OP* |die_where |NULLOK const char* message|STRLEN msglen Ap |void |dounwind |I32 cxix -p |bool |do_aexec |NULLOK SV* really|NN SV** mark|NN SV** sp +pmb |bool |do_aexec |NULLOK SV* really|NN SV** mark|NN SV** sp p |bool |do_aexec5 |NULLOK SV* really|NN SV** mark|NN SV** sp|int fd|int flag Ap |int |do_binmode |NN PerlIO *fp|int iotype|int mode p |void |do_chop |NN SV* asv|NN SV* sv @@ -155,7 +155,6 @@ #endif #define dounwind Perl_dounwind #ifdef PERL_CORE -#define do_aexec Perl_do_aexec #define do_aexec5 Perl_do_aexec5 #endif #define do_binmode Perl_do_binmode @@ -2148,7 +2147,6 @@ #endif #define dounwind(a) Perl_dounwind(aTHX_ a) #ifdef PERL_CORE -#define do_aexec(a,b,c) Perl_do_aexec(aTHX_ a,b,c) #define do_aexec5(a,b,c,d,e) Perl_do_aexec5(aTHX_ a,b,c,d,e) #endif #define do_binmode(a,b,c) Perl_do_binmode(aTHX_ a,b,c) @@ -636,6 +636,14 @@ Perl_do_binmode(pTHX_ PerlIO *fp, int iotype, int mode) return PerlIO_binmode(aTHX_ fp, iotype, mode, name); } +#ifndef OS2 +bool +Perl_do_aexec(pTHX_ SV *really, register SV **mark, register SV **sp) +{ + return do_aexec5(really, mark, sp, 0, 0); +} +#endif + #ifdef PERL_DEFAULT_DO_EXEC3_IMPLEMENTATION bool Perl_do_exec(pTHX_ const char *cmd) @@ -5397,7 +5397,10 @@ extern void moncontrol(int); #define do_open(g, n, l, a, rm, rp, sf) \ do_openn(g, n, l, a, rm, rp, sf, (SV **) NULL, 0) #ifdef PERL_DEFAULT_DO_EXEC3_IMPLEMENTATION -#define do_exec(cmd) do_exec3(cmd,0,0) +#define do_exec(cmd) do_exec3(cmd,0,0) +#endif +#ifndef OS2 +#define do_aexec(really, mark,sp) do_aexec5(really, mark, sp, 0, 0) #endif /* and finally... */ @@ -365,9 +365,9 @@ PERL_CALLCONV OP* Perl_die(pTHX_ const char* pat, ...) PERL_CALLCONV OP* Perl_vdie(pTHX_ const char* pat, va_list* args); PERL_CALLCONV OP* Perl_die_where(pTHX_ const char* message, STRLEN msglen); PERL_CALLCONV void Perl_dounwind(pTHX_ I32 cxix); -PERL_CALLCONV bool Perl_do_aexec(pTHX_ SV* really, SV** mark, SV** sp) +/* PERL_CALLCONV bool Perl_do_aexec(pTHX_ SV* really, SV** mark, SV** sp) __attribute__nonnull__(pTHX_2) - __attribute__nonnull__(pTHX_3); + __attribute__nonnull__(pTHX_3); */ PERL_CALLCONV bool Perl_do_aexec5(pTHX_ SV* really, SV** mark, SV** sp, int fd, int flag) __attribute__nonnull__(pTHX_2) |