develooper Front page | perl.perl5.porters | Postings from October 2003

[PATCH] Devel::PPPort is missing an aTHX when calling grok_numeric_radix()

Thread Next
From:
Jan Dubois
Date:
October 8, 2003 20:42
Subject:
[PATCH] Devel::PPPort is missing an aTHX when calling grok_numeric_radix()
Message ID:
8kl9ov0932qo08o24uafuc9v77clrgnoe4@4ax.com
I tried to compile a module generated with h2xs from Perl 5.8.1 under
Perl 5.6.1 built using ithreads.  It gets plenty of compilation errors
because the arguments don't match:

  bool Perl_grok_numeric_radix(pTHX_ const char **sp, const char *send);


Cheers,
-Jan

Index: ext/Devel/PPPort/PPPort.pm
--- ext/Devel/PPPort/PPPort.pm.~1~	Wed Oct  8 20:30:43 2003
+++ ext/Devel/PPPort/PPPort.pm	Wed Oct  8 20:30:43 2003
@@ -877,7 +877,7 @@
 #endif
    
 #ifndef grok_numeric_radix
-#   define GROK_NUMERIC_RADIX(sp, send) grok_numeric_radix(sp, send)
+#   define GROK_NUMERIC_RADIX(sp, send) grok_numeric_radix(aTHX_ sp, send)
 
 #define grok_numeric_radix Perl_grok_numeric_radix
     
End of Patch.


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About