summaryrefslogtreecommitdiff
path: root/ext/attributes
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated no-op :unique attributeDagfinn Ilmari Mannsåker2017-06-011-11/+1
| | | | | | | | | It's been deprecated and a no-op since 5.10. Move :unique test into it own file so it can be skipped separately Merely parsing an unknown attribute fails, so the skip has to happen at BEGIN time.
* Time limit the deprecation of :unique and :locked.Abigail2017-01-161-4/+7
| | | | | | | | | | | | | | | | The :unique and :locked attributes have had no effect since 5.8.8 and 5.005 respectively. They were deprecated in 5.12. They are now scheduled to be deleted in 5.28. There are two places the deprecation warning can be issued: in lib/attributes.pm, and in toke.c. The warnings were phrased differently, but since we're changing the warning anyway (as we added the version of Perl in which the attributes will disappear), we've used the same phrasing for this warning, regardless of where it is generated: Attribute "locked" is deprecated, and will disappear in Perl 5.28 Attribute "unique" is deprecated, and will disappear in Perl 5.28
* ext/attributes: use _memEQs() when comparing to string argumentsYves Orton2016-10-192-5/+5
|
* Replace common Emacs file-local variables with dir-localsDagfinn Ilmari Mannsåker2015-03-222-7/+1
| | | | | | | | | | | | | | | | An empty cpan/.dir-locals.el stops Emacs using the core defaults for code imported from CPAN. Committer's work: To keep t/porting/cmp_version.t and t/porting/utils.t happy, $VERSION needed to be incremented in many files, including throughout dist/PathTools. perldelta entry for module updates. Add two Emacs control files to MANIFEST; re-sort MANIFEST. For: RT #124119.
* bump attributes.pm versionDavid Mitchell2015-01-221-1/+1
|
* attributes.xs: Don’t emit const warning for anonsFather Chrysostomos2015-01-211-1/+1
| | | | | | | | The intent was to emit the warning for any cases other than custom attributes on anonymous subs. I did that by checking to see whether we had a closure prototype, warning otherwise. But anonymous subs that are not closures are not closure prototypes. So we need to check CvANON instead.
* Document :constFather Chrysostomos2015-01-191-0/+7
|
* attributes.xs: Remove dVARFather Chrysostomos2015-01-191-1/+0
| | | | I think it has been redundant ever since it was added in 97aff369.
* Let attributes.pm know about the const attributeFather Chrysostomos2015-01-192-4/+22
| | | | | Setting it has no affect except on closure prototypes, so warn if an attempt is made to set it on any other sub.
* Bump $VERSION following previous commitSteve Hay2015-01-101-1/+1
| | | | | | The code is currently identical to 0.23, but when the next change is made the $VERSION must not be bumped to 0.24 since that has already been released. For the same reason, we can't use 0.24 now, so bump to 0.25.
* Revert "fix attributes memcmp without len<6 (asan catch)"Steve Hay2015-01-102-2/+2
| | | | | | | This reverts commit ff5314c5aa54b172122507017cac034acf1c4bf7. As noted by Andy Dougherty in #122629 the problem that this fixes was already fixed more succinctly in dd369969a/#122701.
* fix attributes memcmp without len<6 (asan catch)Reini Urban2014-10-082-2/+2
|
* Correct usage of memEQs in attributes.xs [perl #122701]Andy Dougherty2014-09-042-2/+2
| | | | | | Reported and diagnosed by Reini Urban <rurban@cpanel.net>. The call to memEQs(name, 6, "shared") could fail if name were shorter than 6 bytes, or if name were longer than 6, but started with "shared".
* Adding a prototype attribute.Peter Martini2013-10-162-1/+37
| | | | | | | | | | | | | | | This attribute adds an additional way of declaring a prototype for a sub, making sub foo($$) and sub foo : prototype($$) equivalent. The intent is to keep the functionality of prototypes while allowing other modules to use the syntactic space it currently occupies for other purposes. The attribute is supported in attributes.xs to allow attributes::->import to work, but if its defined inline via something like sub foo : prototype($$) {}, it will not call out to the attributes module. For: RT #119251
* Document :shared and :unique in attributes.pmJerry D. Hedden2012-09-281-4/+21
| | | | Add documentation to attributes.pm for :shared and :unique, and bump version.
* update the editor hints for spaces, not tabsRicardo Signes2012-05-292-3/+3
| | | | | This updates the editor hints in our files for Emacs and vim to request that tabs be inserted as spaces.
* Increase $attributes::VERSION to 0.19Father Chrysostomos2012-04-101-1/+1
|
* Revert "doco improvement for attributes.pm"Father Chrysostomos2012-04-101-16/+0
| | | | This reverts commit f29a7c30d92b9e3714cce5604d86fb97c1b099e8.
* attributes.pm: Consistent spaces after dots in podFather Chrysostomos2012-03-011-7/+12
|
* attributes.pm: Add caveat about lvalue subsFather Chrysostomos2012-03-011-0/+9
|
* [perl #107366] Allow attributes to set :lvalue on defined subFather Chrysostomos2012-03-012-5/+6
| | | | | | | | | | | This provides enough rope for those who want to hang themselves, and also for those who know how to use the rope without hanging them- selves. :-) Since this is not generally a reliable thing to be doing, a warning is emitted whenever :lvalue is turned on or off on a defined subroutine. But attributes.pm will flip the flag anyway. :lvalue in a sub declar- ation still refuses to modify a defined Perl sub, as before.
* Increase $attributes::VERSION to 0.18Father Chrysostomos2012-02-261-1/+1
|
* doco improvement for attributes.pmDavid Cantrell2012-02-261-0/+16
| | | | | | It seems that many people have trouble understanding how to add custom attributes to their subroutines. Here's a doc patch that will hopefully make things clearer:
* Increase $attributes::VERSION from 0.16 to 0.17Father Chrysostomos2011-10-061-1/+1
|
* toke.c, ext/attributes/attributes.xs: Make attributes UTF-8 clean.Brian Fraser2011-10-061-2/+2
|
* Increase $attributes::version to 0.16Father Chrysostomos2011-09-071-1/+1
|
* Convert some files from Latin-1 to UTF-8Keith Thompson2011-09-071-1/+1
|
* attributes.pm: warn & don’t apply :lvalue to defined subsFather Chrysostomos2011-06-222-0/+13
| | | | | | | | This is something that ‘sub foo :lvalue;’ declarations do. This brings attributes.pm in line with them. See commits fff96ff and 885ef6f, ticket #68758, and <364E1F98-FDCC-49A7-BADB-BD844626B8AE@cpan.org>.
* Increase $attributes::version to 0.15Father Chrysostomos2011-06-221-1/+1
| | | | I’m about to make changes to it.
* Version bumps for the recent PERL_NO_GET_CONTEXT commitsFather Chrysostomos2011-03-191-1/+1
|
* Add PERL_NO_GET_CONTEXT to attributesNicholas Clark2011-03-191-0/+1
| | | | | For threaded platforms, this reduces the object code size, and should slightly reduce CPU usage.
* Convert modules in ext/ to pass minimal arguments to XSLoader::load().Nicholas Clark2010-10-141-2/+2
|
* Restore prototypes to XS code in attributes, accidentally lost by change 48462a7Nicholas Clark2009-04-131-0/+3
|
* Remove CVf_LOCKED and CvLOCKED*(), now that nothing sets that flag bit.Nicholas Clark2009-04-131-2/+0
|
* GvUNIQUE* have been defined as 0 since 2005/06/30 - high time to remove them.Nicholas Clark2009-04-131-6/+0
|
* Remove a link to the attrs pragma, which has now been removed.Nicholas Clark2009-04-121-2/+0
|
* s/locked/lvalue/ in the examples, and remove mention of the deprecated :unique.Nicholas Clark2009-04-121-9/+7
| | | | | (Which was actually a dangling cross reference, as what it pointed to in perlfunc had already been deleted.)
* Deprecate using "unique" with the attributes pragma.Nicholas Clark2009-04-122-24/+10
|
* Deprecate using "locked" with the attributes pragma.Nicholas Clark2009-04-122-12/+18
|
* Convert xsutils.c and lib/attributes.pm to a regular XS extension.Nicholas Clark2009-04-122-0/+724