develooper Front page | perl.perl5.porters | Postings from June 2013

[perl #118477] [PATCH] Add an API to attach a signature string to a CV

Thread Previous | Thread Next
Peter Martini
June 14, 2013 11:47
[perl #118477] [PATCH] Add an API to attach a signature string to a CV
Message ID:
# New Ticket Created by  Peter Martini 
# Please include the string:  [perl #118477]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from,
fake output copied from an old email generated with the help of
perlbug 1.39 running under perl 5.17.9.


In the branch,
I added:

* A new type of magic to store a sub signature
* cv_set_signature_pv(CV * cv, SV * pv) as a static inline function
instead of using the magic directly
* cv_get_signature_pv(CV * cv) as a static inline function to return
the signature
* Two functions in XS::APITest and
* B::CV::get_signature to give B modules access to it (a separate commit)
* B::Deparse patched to use B::CV::get_signature (a separate commit)

The Deparse output will display the prototype as a 'prototype()'
attribute if both a signature string and a prototype are attached; I
don't have a patch ready for that yet, but will in the next few days.

Please review.

[Please do not change anything below this line]
Site configuration information for perl 5.17.9:

Configured by pmartini at Fri Jan 25 00:20:08 EST 2013.

Summary of my perl5 (revision 5 version 17 subversion 9) configuration:
  Derived from: 0b472147ceafe424be1cd3efc95550efacaa4e61
    osname=linux, osvers=3.2.0-32-generic, archname=i686-linux-thread-multi
    uname='linux pmlinlaptop 3.2.0-32-generic #51-ubuntu smp wed sep
26 21:32:50 utc 2012 i686 i686 i386 gnulinux '
    config_args='-Dusedevel -DDEBUGGING -Dusethreads -des'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
    optimize='-O2 -g',
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.6.3', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib/i386-linux-gnu /lib/../lib
/usr/lib/i386-linux-gnu /usr/lib/../lib /lib /usr/lib
    libs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib

Locally applied patches:

@INC for perl 5.17.9:

Environment for perl 5.17.9:
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About