Commit 09034cd
committed
ParseXS: standard_typemap_locations(): skip -e
standard_typemap_locations() returns a set of filenames for where a
typemap file map be expected, relative to both the current directory and
to @inc.
The @inc files are filtered using -e, but the others (../../typemap etc)
aren't.
This commit removes the -e filtering for @inc, for consistency.
This means that standard_typemap_locations() now returns a list of
filenames of *all* the standard locations where a typemap file *might*
be found, regardless of whether the file exists. Previously it was a
weird hybrid.
This commit should make no difference in practice, since the one caller
of this function, process_typemaps() does it's own -f filtering too.
So really the net effect of this commit is to remove a few duplicate
stat() OS calls.
It also allows one existing test to be simplified, since now there will
always be one returned entry per @inc entry, whereas before it might
have been less.1 parent 9815ff9 commit 09034cd
File tree
2 files changed
+3
-11
lines changed- dist/ExtUtils-ParseXS
- lib/ExtUtils/ParseXS
- t
2 files changed
+3
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 20 | + | |
25 | 21 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 22 | | |
32 | 23 | | |
33 | 24 | | |
| |||
39 | 30 | | |
40 | 31 | | |
41 | 32 | | |
| 33 | + | |
42 | 34 | | |
43 | 35 | | |
44 | 36 | | |
| |||
0 commit comments