Schinder & others -
Is there a recommended way to remain backwards-compatible with versions
before the PL_ prefix was introduced?
I have this at the top of Tmpl.xs:
#ifndef PL_na
#define PL_na na
#endif
#ifndef PL_sv_undef
#define PL_sv_undef sv_undef
#endif
And I *do* use PL_na and PL_sv_undef throughout my code. This
(apparently!) doesn't work with 5.6. I'm in the process of installing RC2
right now, but I'm wondering if there's already a simple answer.
Thanks...
: : : J. David Lowe :: [EMAIL PROTECTED] :: http://pootpoot.com : : :
: Every picture tells a LIE! :
: - The Schwa Corporation :
:: fingerprint: 79 1D 66 9F 35 A1 2D ED 81 98 26 E1 F8 D5 3F 29 ::
On 15 Mar 2000 [EMAIL PROTECTED] wrote:
> This distribution has been tested as part of the cpan-testers
> effort to test as many new uploads to CPAN as possible. See
> http://testers.cpan.org/
>
> Please cc any replies to [EMAIL PROTECTED] to keep other
> test volunteers informed and to prevent any duplicate effort.
>
> --
> na and sv_undef were deprecated in 5.005_03. They are now PL_na and
> PL_sv_undef. Although the old forms can still be used in 5.6 via
> "perl Makefile.PL POLLUTE=1", and all tests pass then, it would be
> better if this module used the recommended forms.
>
> gcc -c -I. -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
>-D_FILE_OFFSET_BITS=64 -O3 -DVERSION=\"0.15\" -DXS_VERSION=\"0.15\" -fpic
>-I/usr/local/lib/perl5/5.6.0/ppc-linux/CORE Tmpl.c
> Tmpl.c: In function `XS_Text__Tmpl_set_delimiters':
> Tmpl.c:73: `sv_undef' undeclared (first use in this function)
> Tmpl.c:73: (Each undeclared identifier is reported only once
> Tmpl.c:73: for each function it appears in.)
> Tmpl.c:81: `na' undeclared (first use in this function)
> Tmpl.c: In function `XS_Text__Tmpl_set_debug':
> Tmpl.c:118: `sv_undef' undeclared (first use in this function)
> Tmpl.c: In function `XS_Text__Tmpl_set_strip':
> Tmpl.c:156: `sv_undef' undeclared (first use in this function)
> Tmpl.c: In function `XS_Text__Tmpl_set_dir':
> Tmpl.c:194: `sv_undef' undeclared (first use in this function)
> Tmpl.c:202: `na' undeclared (first use in this function)
> Tmpl.c: In function `XS_Text__Tmpl_set_value':
> Tmpl.c:233: `sv_undef' undeclared (first use in this function)
> Tmpl.c:241: `na' undeclared (first use in this function)
> Tmpl.c: In function `XS_Text__Tmpl_destroy':
> Tmpl.c:275: `sv_undef' undeclared (first use in this function)
> Tmpl.c: In function `XS_Text__Tmpl_loop_iteration':
> Tmpl.c:305: `sv_undef' undeclared (first use in this function)
> Tmpl.xs:79: `na' undeclared (first use in this function)
> Tmpl.c: In function `XS_Text__Tmpl_parse_file':
> Tmpl.c:353: `sv_undef' undeclared (first use in this function)
> Tmpl.xs:98: `na' undeclared (first use in this function)
> Tmpl.c: In function `XS_Text__Tmpl_parse_string':
> Tmpl.c:403: `sv_undef' undeclared (first use in this function)
> Tmpl.xs:126: `na' undeclared (first use in this function)
> Tmpl.c: In function `XS_Text__Tmpl_register_simple':
> Tmpl.c:458: `sv_undef' undeclared (first use in this function)
> Tmpl.c:466: `na' undeclared (first use in this function)
> Tmpl.xs: In function `XS_Text__Tmpl_alias_simple':
> Tmpl.xs:187: `sv_undef' undeclared (first use in this function)
> Tmpl.c:543: `na' undeclared (first use in this function)
> Tmpl.c: In function `XS_Text__Tmpl_register_pair':
> Tmpl.c:613: `sv_undef' undeclared (first use in this function)
> Tmpl.c:628: `na' undeclared (first use in this function)
> Tmpl.xs: In function `XS_Text__Tmpl_alias_pair':
> Tmpl.xs:273: `sv_undef' undeclared (first use in this function)
> Tmpl.c:717: `na' undeclared (first use in this function)
> Tmpl.c: In function `XS_Text__Tmpl_context_get_value':
> Tmpl.c:797: `sv_undef' undeclared (first use in this function)
> Tmpl.c:805: `na' undeclared (first use in this function)
> Tmpl.c: In function `XS_Text__Tmpl_context_get_anonymous_child':
> Tmpl.c:833: `sv_undef' undeclared (first use in this function)
> Tmpl.c: In function `XS_Text__Tmpl_context_get_named_child':
> Tmpl.c:871: `sv_undef' undeclared (first use in this function)
> Tmpl.c:879: `na' undeclared (first use in this function)
> Tmpl.c: In function `XS_Text__Tmpl_context_set_named_child':
> Tmpl.c:917: `sv_undef' undeclared (first use in this function)
> Tmpl.c:925: `na' undeclared (first use in this function)
> Tmpl.c: In function `XS_Text__Tmpl_context_add_peer':
> Tmpl.c:953: `sv_undef' undeclared (first use in this function)
> Tmpl.c: In function `XS_Text__Tmpl_context_output_contents':
> Tmpl.c:990: `sv_undef' undeclared (first use in this function)
>
>
>
> --
>
> Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
> Platform:
> osname=linux, osvers=2.2.14, archname=ppc-linux
> uname='linux c22234-c.scllg1.pa.home.com 2.2.14 #2 sun jan 9 20:34:00 est 2000
>ppc unknown '
> config_args='-Dcc=gcc -Dprefix=/usr/local -des'
> hint=recommended, useposix=true, d_sigaction=define
> usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
> useperlio=undef d_sfio=undef uselargefiles=define
> use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
> Compiler:
> cc='gcc', optimize='-O2', gccversion=2.95.2 19991024 (release/franzo)
> cppflags='-fno-strict-aliasing -I/usr/local/include'
> ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
>-D_FILE_OFFSET_BITS=64'
> stdchar='char', d_stdstdio=define, usevfork=false
> intsize=4, longsize=4, ptrsize=4, doublesize=8
> d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
> ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
> alignbytes=8, usemymalloc=n, prototype=define
> Linker and Libraries:
> ld='gcc', ldflags =' -L/usr/local/lib'
> libpth=/usr/local/lib /lib /usr/lib
> libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
> libc=/lib/libc-2.1.3.so, so=so, useshrplib=false, libperl=libperl.a
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
> cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
>