Skip to content

[doc] ExtUtils::ParseXS - typemap search path documentation inconsistency #18682

Open
@benkasminbullock

Description

@benkasminbullock

Where
dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS.pod
https://github.com/Perl/perl5/blob/blead/dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS/Utilities.pm#L66-L155

Description
ExtUtils::ParseXS describes that the path where typemaps are looked for is

../../../typemap:../../typemap:../typemap:typemap

on line 39, but that disagrees with the documentation and implementation in ExtUtils::ParseXS::Utilities, where the documentation and implementation of standard_typemap_location gives another ../, so four, as well as looking in lib/ExtUtils/.

Incidentally the function standard_typemap_locations appears to be unused outside of Utilities.pm and doesn't need to be imported into ExtUtils::ParseXS, or even exported. It's used excusively by process_typemaps and in the test files of ExtUtils::ParseXS. In the test files it could just be qualified as ExtUtils::ParseXS::Utilities::standard_typemap_locations.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions