This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
For Perl, assume C89 prototypes exist
authorAaron Crane <arc@cpan.org>
Thu, 12 Oct 2017 16:40:23 +0000 (18:40 +0200)
committerAaron Crane <arc@cpan.org>
Sat, 21 Oct 2017 15:45:08 +0000 (16:45 +0100)
commit502ff8b5c838bc728b5df0e025905496f3a889c3
tree7c7d9123ee3dc0335dc34736a622f9e4aa5ea682
parentb374994a155411c3adbf1be8fbf45300fd3c0245
For Perl, assume C89 prototypes exist

Perl now relies on C89, including prototypes. However, it must continue to
define CAN_PROTOTYPE for the benefit of XS modules. So the Perl-specific
modified version of U/modified/prototype.U is now a stub that probes for
nothing, but still overrides the dist/ version of prototype.U (which would
otherwise find the remaining CAN_PROTOTYPE occurrences in the core and
include the probe anyway).

In addition, the Protochk unit itself looks at CAN_PROTOTYPE, and is used by
many other units. So create a modified version which doesn't do that.
U/modified/Protochk.U [new file with mode: 0644]
U/modified/prototype.U