summaryrefslogtreecommitdiff
path: root/vxs.inc
Commit message (Collapse)AuthorAgeFilesLines
* Correct build time warning for vxs.incTodd Rinaldo2020-10-051-1/+1
| | | | | | | | Fixes #18202 This fix was present previously and was clobbered by a cpan sync of version.pm It is now reported into that repo via https://github.com/toddr/version.pm/pull/1
* Update version to CPAN version 0.9928Todd Rinaldo2020-10-021-22/+5
| | | | | | | | | | | | | | | | | | | [DELTA] 0.9927 * Released 0.99_26 as 0.9927 0.99_26 * Add usage error to pure-perl vcmp * Quote version classname in test for 5.8 compatability * Use base instead of parent for tests * Update ppport.h for future compatibility 0.99_25 * Fix stack usage in vcmp method * Drop Perl 5.5 compatibility * Use PERL_VERSION_GE for Perl 7 compatibility * Fix typo in pod example for comparing versions.
* move the implementation of %-, %+ into coreTony Cook2019-12-041-1/+1
| | | | | | Previousl this could cause problems during minitest. Fixes #17293
* Synch cpan/version/* and other files with CPAN version 0.9921.John Peacock2018-04-121-1/+1
| | | | | | | | | Committer's note: In large part probably due to the CUSTOMIZED aspect of 'version' in Porting/Maintainer.pl, the regular 'Porting/sync-with-cpan' program did not give good results when I attempted to use it for version.pm. So I hacked together my own program, available here: https://github.com/jkeenan/scripts-misc/blob/master/sync-version-pm.pl
* get rid of "implicit fallthrough" warnings with gcc 7Lukas Mai2017-10-131-1/+1
|
* Update core with version 0.9918John Peacock2017-06-011-5/+6
|
* vxs.inc: use new SvPVCLEAR and constant string friendly macrosYves Orton2016-10-191-1/+1
|
* Import version.pm 0.9914 from CPANJohn Peacock2016-03-171-12/+6
|
* vutil.c, vxs.inc: Avoid warnings from -Wmissing-prototypes -Wundef ↵Brian Fraser2014-02-041-1/+1
| | | | | | | | | | | | -Wunused-label -Wmissing-prototypes was complaining about declaring XS() functions without previously declaring a prototype. -Wundef didn't like using #if foo instead of #ifdef foo -Wunused-label warned because VER_{IV,NM,PV} were defined on all versions of perl, but only used on < 5.17.2
* And now the rest of the sync to 0.9908John Peacock2014-02-041-36/+45
|
* Lots of C optimizations for both speed/correctnessJohn Peacock2014-01-181-78/+81
| | | | | | | | | | | Clean up a lot of the less efficient uses of various Perl macros and functions, mostly from bulk88@hotmail.com. Also deal with the fact that older Perl's were not handling locale setting in a consistent manner. This means going back to the less efficient but always correct method of ALWAYS copying the old locale and switch to C and then restoring, for all Perl releases prior to 5.19.0. Discontinue support for Perl's prior to v5.6.2.
* vxs.inc: Move code to after declarationsKarl Williamson2014-01-041-1/+2
| | | | | This macro, added in e1c774b6, is actual code, and needs to be after the declarations, so that C89 compilers compile it.
* Ensure that version::_VERSION is always exportedJohn Peacock2014-01-041-4/+3
| | | | | | | | Now that version.pm doesn't mess with the symbol table, we need to make sure that version::_VERSION exists at all times. Also change the name of the method that implements UNIVERSAL::VERSION so that it is visually distinct and matches the other version.pm derived methods.
* Grab latest changes from CPAN 0.9905John Peacock2014-01-041-1/+1
|
* Integrate CPAN version.pm release into coreJohn Peacock2014-01-041-2/+2
|
* vxs.inc: Fix thinkoFather Chrysostomos2014-01-041-2/+2
| | | | This was causing test failures after rebasing against blead.
* Use VXS_ prefix for XSUB bodies in CPAN versionFather Chrysostomos2014-01-041-40/+43
| | | | | | | | | The names of the functions in core and in the CPAN version will con- flict otherwise. Since perl versions before 5.16.0 did not have XS_INTERNAL (which could solve this problem another way, making the functions static), it’s easier just to use different names.
* Integrate the rest of CPAN’s vxs.incFather Chrysostomos2014-01-041-62/+49
| | | | | | Uppercase macros instead of functions (so the CPAN version can call its own non-core functions if need be), plus a poor man’s typemap (VTYPECHECK).
* vxs.inc: Disallow multiple args to XS_version_normalFather Chrysostomos2014-01-041-7/+7
| | | | | | Also rename the argument. This is part of bringing perl and CPAN into synch.
* [rt.cpan.org #88495] bad string comparison in version->qvFather Chrysostomos2014-01-041-2/+2
| | | | | qv is affected, too. A package called "ver" inheriting from version should be able to create "ver" objects via ->qv.
* vxs.inc: Integrate the CPAN version of version_newFather Chrysostomos2014-01-041-38/+48
| | | | No behaviour changes; just rearranged, and with a few extra #ifdefs.
* [rt.cpan.org #88495] version->new str cmp bugFather Chrysostomos2014-01-041-1/+2
| | | | | | | | | | We shouldn’t consider ver and version to be the same class. If ver inherits from version, ver->new should give a ver object. This string comparison bug has only ever existed in the perl core version of the version routines. It was ed1db70e1224 in 5.16 that introduced it.
* vxs.inc: Import UNIVERSAL::VERSION from CPANFather Chrysostomos2014-01-041-30/+56
| | | | | | | No functional changes, just cosmetic (and it works with older perls, too). This is part of bringing perl and CPAN into synch.
* vxs.inc: arg list checking for UNIVERSAL::VERSIONFather Chrysostomos2014-01-041-0/+3
| | | | | | This brings it in line with the CPAN implementation. It’s hard to test this, as the tests should go in cpan/version, but the pure-Perl implementation doesn’t check the number of arguments.
* vxs.inc: Add dVAR define for CPAN useFather Chrysostomos2014-01-041-0/+4
| | | | This is part of bringing perl and CPAN into synch.
* vxs.inc: Don’t hard-code class nameFather Chrysostomos2014-01-041-28/+42
| | | | This is part of bringing perl and CPAN into synch.
* Extract version routines into two new filesFather Chrysostomos2014-01-041-0/+411
This is to make synchronisation between the CPAN distribution and the perl core easier. The files have different extensions to match what the CPAN distribu- tion will have. vutil.c is a separate compilation unit that the CPAN dist already has. vxs.inc will be included by vxs.xs (vxs.c is obvi- ously alreday taken, being generated from vxs.xs). In the perl core util.c includes vutil.c and universal.c includes vxs.inc.