develooper Front page | perl.perl5.porters | Postings from April 2007

[PATCH] Cleanup of the regexp API

Thread Next
From:
Ævar Arnfjörð Bjarmason
Date:
April 23, 2007 15:32
Subject:
[PATCH] Cleanup of the regexp API
Message ID:
51dd1af80704231532x504448e3xeac2182885a46f1f@mail.gmail.com
A cleanup patch for the public regexp API & docs.

* Changes regexp to REGEXP in the public API as with sv/SV, av/AV etc.
(maybe this should be RX?:)
* Changes the prototype of the REGEXP arguments to C<REGEXP * const
rx>. I.e. you can always modify the structure but not where it points
once it has been constructed.
* Adds const to the prototype of flag arguments
* Makes numbered_buff_get return void instead of SV*. The only
function that used its return value was named_buff_get which now
passes a scalar to be assigned to.
* Changes the name of the get-package-to-bless-to callback to
`package' from `qr_pkg'. I don't like the latter in retrospect and
since I'm breaking stuff anyway...:)
* POD in perlreapi.pod explaining the above

perlreapi.pod fixes (in addition to the above)

* Document numbered_buff_get and named_buff_get
* Remove invalid POD (startp/endp no longer exist)
* /k => /p

Blead passes all tests on my box with this applied, the patch needs a
'make regen' as it modifies embed.fnc

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