diff options
author | Nicholas Clark <nick@ccl4.org> | 2004-07-16 11:04:37 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2004-07-16 11:04:37 +0000 |
commit | e90e236463307bd7f53439b91573fe42e9cb8901 (patch) | |
tree | 89bf49d9ec83486ed0205849ff8ae782b1c2947e /perl.c | |
parent | b0bc38e63ed7e7e448fb07e45ee093d3b3d54be8 (diff) | |
download | perl-e90e236463307bd7f53439b91573fe42e9cb8901.tar.gz |
Encourage compilers to tail call optimise in sv_savepv, sv_savepvn
and sv_savesharedpv. Need to create non-void returning versions of
Copy and Zero, as the existing macros deliberately cast to (void)
p4raw-id: //depot/perl@23126
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -190,8 +190,7 @@ perl_alloc(void) my_perl = (PerlInterpreter*)PerlMem_malloc(sizeof(PerlInterpreter)); INIT_TLS_AND_INTERP; - Zero(my_perl, 1, PerlInterpreter); - return my_perl; + return ZeroD(my_perl, 1, PerlInterpreter); } #endif /* PERL_IMPLICIT_SYS */ |