~registry/perl5/trunk

Viewing all changes in revision 56064.

  • Committer: Craig A. Berry
  • Author(s): Daniel Dragan
  • Date: 2018-04-21 13:15:55 UTC
  • Revision ID: git-v1:c41ed02688c7d0eea7fe888ba996b3a9165df529
#133125 revise -DNO_MATHOM logic again in makedef.pl

Revision of patch in #133098.

There is a problem described in #133125 with XS-APITest using with "Perl_"
mathomed C symbols instead of the Perl_-less ones which would get
preprocessor redirected to newer C funcs, then link failure of XS-APITest
on Win32 because missing symbols. These symbols were missing because they
were marked "m" and I thought in commit 1545ba5b04 "m" means no C symbol,
ever, but that isn't true. It seems that "b" means must export on a
with-mathoms default perl. So put back part of the original code before
commit 1545ba5b04 from commit 3f1866a8f6, so that on with mathoms builds
all "b"s are exported, but on no mathom builds, all "b"s are removed/not
exported.

There are some logic holes here for strange or impossible combinations
of flags, like flags "Abi" or just "b" without "A", that I wont address
here.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: