Commit 1359503
committed
Move prototype definition of SvPV_helper to embed.fnc
It's usually a bad idea to try to work around a limitation in common
code by copy-pasting and then modifiying to taste. Fixes/improvements
to the common code rarely get propagated to the outlier.
I wrote code in 1ef9039 that did just this for the prototype
definition of SvPV_helper, because the place where it really belongs,
embed.fnc, couldn't (and still doesn't) handle function pointers as
arguments (patches welcome).
I should have at least added a comment to the common code noting the
existence of this outlier.
It turns out that that limitation can be worked around by declaring a
typedef of the pointer, and then using that in embed.fnc.
That's what this commit does.
This commit removes the final instance of duplicating the work of
embed.fnc in the core, except for some in the regex system whose
comments say the reason is to avoid making a typedef public. I haven't
investigated these further.1 parent 23bbe74 commit 1359503
4 files changed
+15
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3358 | 3358 | | |
3359 | 3359 | | |
3360 | 3360 | | |
| 3361 | + | |
| 3362 | + | |
| 3363 | + | |
| 3364 | + | |
| 3365 | + | |
| 3366 | + | |
| 3367 | + | |
3361 | 3368 | | |
3362 | 3369 | | |
3363 | 3370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1958 | 1958 | | |
1959 | 1959 | | |
1960 | 1960 | | |
1961 | | - | |
1962 | | - | |
1963 | | - | |
1964 | | - | |
1965 | | - | |
1966 | | - | |
1967 | | - | |
1968 | | - | |
1969 | | - | |
1970 | | - | |
| 1961 | + | |
| 1962 | + | |
1971 | 1963 | | |
1972 | 1964 | | |
1973 | 1965 | | |
| |||
0 commit comments