diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-26 06:31:10 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-26 06:31:10 +0000 |
commit | 1571675a79745e7e3690e10ecdcf919c638d572b (patch) | |
tree | bcde2527119a19f04043c5a69c3f7e734361bad6 /perlapi.c | |
parent | b46bc2b69fd0825253e7e513bb1c568567aa6ab0 (diff) | |
download | perl-1571675a79745e7e3690e10ecdcf919c638d572b.tar.gz |
support for version vectors in UNIVERSAL::VERSION(), so that
C<use Foo v1.2.3> etc., work; tests for the same
TODO: XS_VERSION_BOOTCHECK needs to be revisited in light of this
p4raw-id: //depot/perl@5265
Diffstat (limited to 'perlapi.c')
-rw-r--r-- | perlapi.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -3140,6 +3140,13 @@ Perl_sv_vsetpvfn(pTHXo_ SV* sv, const char* pat, STRLEN patlen, va_list* args, S ((CPerlObj*)pPerl)->Perl_sv_vsetpvfn(sv, pat, patlen, args, svargs, svmax, maybe_tainted); } +#undef Perl_str_to_version +NV +Perl_str_to_version(pTHXo_ SV *sv) +{ + return ((CPerlObj*)pPerl)->Perl_str_to_version(sv); +} + #undef Perl_swash_init SV* Perl_swash_init(pTHXo_ char* pkg, char* name, SV* listsv, I32 minbits, I32 none) |