develooper Front page | perl.perl5.porters | Postings from February 2015

Re: OP_SIGNATURE

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
February 23, 2015 09:04
Subject:
Re: OP_SIGNATURE
Message ID:
20150223090409.GD28599@iabyn.com
On Sun, Feb 22, 2015 at 10:00:23PM +0000, Dave Mitchell wrote:
> On Sun, Feb 22, 2015 at 08:49:54PM +0000, Dave Mitchell wrote:
> > The branch smoke-me/davem/op_signature, currently being smoked
> 
> and now a hopefully more win32-compilable revision pushed as
> smoke-me/davem/op_signature2

Hmmm, still failing to build on non-useithreads win32 builds:

perldll.def : error LNK2001: unresolved external symbol Perl_op_relocate_sv
..\perl521.lib : fatal error LNK1120: 1 unresolved externals

Can anyone advise me on this? I made a threads-only static function
into a non-static function because I needed to access it from another
source file.

In embed.fnc I have:

    #if defined(USE_ITHREADS)
    pXo	|void	|op_relocate_sv	|NN SV** svp|NN PADOFFSET* targp
    #endif

In op.c I have

    #ifdef USE_ITHREADS
    void
    Perl_op_relocate_sv(pTHX_ SV** svp, PADOFFSET* targp)
    {
        ....
    }
    #endif

then in various places in op.c and toke.c I have lines like:

    #ifdef USE_ITHREADS
        Perl_op_relocate_sv(aTHX_ &cSVOPo->op_sv, &o->op_targ);
    #endif

So everything is protected by ifdefs. The only generated file it appears
in, proto.h, is also protected.


-- 
In my day, we used to edit the inodes by hand.  With magnets.

Thread Previous | 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