From 6b99da3dd8757ebf297a64aa39ae1bf2e166d7f6 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sun, 28 Jul 2019 13:43:16 -0600 Subject: [PATCH] parts/apicheck.pl: Extract list into lib fcn call This is in preparation for scanprov to use the same list. (cherry picked from commit b3b8255b1cb743f160e6d9f33fa52b7b7149d53b) Signed-off-by: Nicolas R --- dist/Devel-PPPort/parts/apicheck.pl | 25 +++---------------------- dist/Devel-PPPort/parts/ppptools.pl | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 22 deletions(-) diff --git a/dist/Devel-PPPort/parts/apicheck.pl b/dist/Devel-PPPort/parts/apicheck.pl index 1e4dee5..f51bb11 100644 --- a/dist/Devel-PPPort/parts/apicheck.pl +++ b/dist/Devel-PPPort/parts/apicheck.pl @@ -137,28 +137,9 @@ my %stack = ( pMY_CXT => [ @my_cxt_prereqs ], ); -# Things to not try to check. Either not applicable, or too hard to get to -# work here. -my %ignore = ( - map { ($_ => 1) } qw( - CLASS - dXSI32 - items - ix - RETVAL - StructCopy - svtype - THIS - XopDISABLE - XopENABLE - XopENTRY - XopENTRYCUSTOM - XopENTRY_set - XS - XS_EXTERNAL - XS_INTERNAL - ), -); + +# Things to not try to check. +my %ignore = map { ("$_" => 1) } keys %{&known_but_hard_to_test_for()}; # XXX The NEED_foo lines should be autogenerated print OUT <