based on the cpp results (not by really running code), testing
for the signum value is not really helpful if we have runtime
function calls (some signal numbers are dynamic, for example)
(or other extra stuff where the signum value is expected).
(Runtimeness also means that Configure cannot get these right,
anyway.) Better filter in just the constant non-negative numbers.
p4raw-id: //depot/perl@18973
# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Fri Mar 14 11:20:02 EET 2003 [metaconfig 3.0 PL70]
+# Generated on Fri Mar 14 13:17:23 EET 2003 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
$cat >signal.awk <<'EOP'
BEGIN { ndups = 0 }
$1 ~ /^NSIG$/ { nsig = $2 }
-($1 !~ /^NSIG$/) && (NF == 2) {
+($1 !~ /^NSIG$/) && (NF == 2) && ($2 ~ /^[0-9][0-9]*$/) {
if ($2 > maxsig) { maxsig = $2 }
if (sig_name[$2]) {
dup_name[ndups] = $1
dup_num[ndups] = $2
ndups++
}
- else if ($2 >= 0) {
+ else {
sig_name[$2] = $1
sig_num[$2] = $2
}