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
From:
Peter Martini
Date:
June 14, 2013 11:47
Subject:
[perl #118477] [PATCH] Add an API to attach a signature string to a CV
Message ID:
rt-3.6.HEAD-2552-1371210422-221.118477-75-0@perl.org
# New Ticket Created by  Peter Martini 
# Please include the string:  [perl #118477]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118477 >


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

-----------------------------------------------------------------

In the branch https://github.com/PeterMartini/perl/tree/signatures/magic-api,
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]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
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
  Platform:
    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
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -g',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING
-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',
lseeksize=8
    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
    gnulibc_version='2.15'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib
-fstack-protector'

Locally applied patches:


---
@INC for perl 5.17.9:
    /usr/local/lib/perl5/site_perl/5.17.9/i686-linux-thread-multi
    /usr/local/lib/perl5/site_perl/5.17.9
    /usr/local/lib/perl5/5.17.9/i686-linux-thread-multi
    /usr/local/lib/perl5/5.17.9
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl 5.17.9:
    HOME=/home/pmartini
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
    PERL_BADLANG (unset)
    SHELL=/bin/bash


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