On Tue, Jul 29, 2003 at 12:59:56AM +0200, Stas Bekman wrote:
> >I know that MakeMaker always calls xsubpp with -typemap.
>
> but not xsubpp_version. I think it should, may be the new xsubpp
> can't/doesn't find the global typemap? Should we ask at p5p?
Seeing as how xsubpp_version() exists just to get the $VERSION of xsubpp.
And it does this by the *very* roundabout way of running a small .xs file
through xsubpp and parsing the warnings and output to guess that version
it is. And since the current dist of MakeMaker only has to worry about
Perl back to 5.5.3. I think we have a few options to improve on that...
1) Use MM->parse_version instead. Unfortunately, xsubpp has no $VERSION
but instead $XSUBPP_version. So maybe we could just grep for it.
Even that would be cleaner than what happens now.
2) Throw out the whole thing. Its only used to work around the fact that
older versions of xsubpp didn't know about -prototypes. 5.5.3's xsubpp
handles it. Hell, 5.003_07's xsubpp handles it. So its likely not relevant
anymore.
Unless anyone screams, I'm going with #2. Less crufty code.
--
<GuRuThuG> make a channel called #Perl, and infest it with joking and
fun.... it doesnt make alot of sense.