diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-01-17 03:24:48 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-01-17 03:24:48 +0000 |
commit | 76d3c696f3f9d8be0bea9b002ddfc255153cfadd (patch) | |
tree | dfee2903009a08674d10fa46c301ae8d7486f839 /sv.c | |
parent | eabb5a47cfff827abe7f644eb4ce7727ae1159a4 (diff) | |
download | perl-76d3c696f3f9d8be0bea9b002ddfc255153cfadd.tar.gz |
Define SIG_SIZE, the number of elements in the sig_name and
sig_num arrays, including the final NULL entry.
p4raw-id: //depot/perl@8459
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -8866,12 +8866,11 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags, PL_bitcount = Nullch; /* reinits on demand */ if (proto_perl->Ipsig_ptr) { - int sig_num[] = { SIG_NUM }; - Newz(0, PL_psig_ptr, sizeof(sig_num)/sizeof(*sig_num), SV*); - Newz(0, PL_psig_name, sizeof(sig_num)/sizeof(*sig_num), SV*); - Newz(0, PL_psig_pend, sizeof(sig_num)/sizeof(*sig_num), int*); - for (i = 1; PL_sig_name[i]; i++) { - PL_psig_ptr[i] = sv_dup_inc(proto_perl->Ipsig_ptr[i]); + Newz(0, PL_psig_ptr, SIG_SIZE, SV*); + Newz(0, PL_psig_name, SIG_SIZE, SV*); + Newz(0, PL_psig_pend, SIG_SIZE, int); + for (i = 1; i < SIG_SIZE; i++) { + PL_psig_ptr[i] = sv_dup_inc(proto_perl->Ipsig_ptr[i]); PL_psig_name[i] = sv_dup_inc(proto_perl->Ipsig_name[i]); } } |