Skip Menu |

This queue is for tickets about the Devel-Declare CPAN distribution.

Report information
The Basics
Id: 49489
Status: resolved
Priority: 0/
Queue: Devel-Declare

People
Owner: Nobody in particular
Requestors: david.bouyssie [...] ipbs.fr
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: patch for win32
Date: Mon, 07 Sep 2009 17:03:06 +0200
To: bug-Devel-Declare [...] rt.cpan.org
From: David BouyssiƩ <david.bouyssie [...] ipbs.fr>
Devel::Declare (5.0011) don't compile on win32 5.8.9 (active state) here is a patch for Devel::Declare (5.0011) tested on this platform (nmake test ok) thanks to Taro Nishino --- stolen_chunk_of_toke.c.orig Fri Aug 14 08:49:28 2009 +++ stolen_chunk_of_toke.c Fri Aug 14 14:44:51 2009 @@ -102,6 +102,14 @@ #if PERL_REVISION == 5 && PERL_VERSION == 8 && PERL_SUBVERSION >= 8 #define PERL_5_8_8_PLUS +static char ** +Perl_Ilinestart_ptr(pTHX) { + return &(aTHX->Ilinestart); +} +static SUBLEXINFO * +Perl_Isublex_info_ptr(pTHX) { + return &(aTHX->Isublex_info); +} #endif #if PERL_REVISION == 5 && PERL_VERSION > 8
We don't usually need that sort of extra code to get things working on Win32. Do you still need to do that with the latest Devel::Declare, 0.006006? -zefram
On Sun Sep 11 06:43:29 2011, ZEFRAM wrote: Show quoted text
> We don't usually need that sort of extra code to get things working on > Win32. Do you still need to do that with the latest Devel::Declare, > 0.006006?
Yes, you do. PL_linestart and PL_sublex_info were intentionally not exported on Windows because they were not supposed to be part of the public API (skipped in makedef.pl). So you need to cheat if you still want to use them from XS code. Build log with the latest Devel-Declare: http://ppm4.activestate.com/MSWin32-x86/5.8/825/Z/ZE/ZEFRAM/Devel-Declare-0.006008.d/log-20111106T063241.txt
Thanks. Fixed in Devel-Declare-0.006009.