From: Ævar Arnfjörð Bjarmason Date: Tue, 19 Aug 2008 17:28:00 +0000 (+0000) Subject: Importing re-engine-Plugin-0.06.tar.gz X-Git-Tag: v0.06^2 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=78b39159a7d3b163f6bc8bcd8284632cd5f875cb;p=perl%2Fmodules%2Fre-engine-Plugin.git Importing re-engine-Plugin-0.06.tar.gz --- diff --git a/ChangeLog b/ChangeLog index d21dd78..3867296 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,35 +1,144 @@ -2008-08-19 Ævar Arnfjörð Bjarmason (0.05) +commit 96d386d2bd8b9d06c33837008bd420a9c0b29d28 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason - * Plugin.pm: dos2unix - * Plugin.xs: RT#31635: Be compatable with threaded perls + bump to 0.06 -2007-12-27 Ævar Arnfjörð Bjarmason (0.04) +commit 68e1c1d355f045fd7959393307144aa9a894bbd3 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason - * Plugin.pm: Setting @ISA instead of using base.pm - * Makefile.PL: Now using ExtUtils::MakeMaker instead of Module::Install - * Plugin.(xs|h): Fix up prototypes to match the callbacks in the actual 5.10 release - * Plugin.xs: Dumped CODE: in favor of PPCODE:, the former is teh sux - * Plugin.xs: Minor cleanups here and there - * Plugin.pod: New todo and a developer release notice - * Plugin.[h|pm]: Named buffer callbacks - * t/methods/stash.t: Test return value of $rx->stash({}); - * t/methods/str/modify.t: New test for modification of ->str when - a reference is used - * t/methods/str/types.t: This was testing pattern types, fixed - * t/Example.[t|pm]: Moved to t/usage + remove unused variables per -Wall -2007-05-17 Ævar Arnfjörð Bjarmason (0.03) +commit 4c6249853ec480c9cf860a0a6d130a4e42409bc3 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason - * Plugin.xs: The exec callback would call_sv on a NULL value - causing a segfault - * Plugin.pod: Use %hash ~~ 'i' instead of $hash{i}, more stylish! - * inc: Bumping Module::Install to 0.65 + Expanded on a comment in example code -2007-05-17 Ævar Arnfjörð Bjarmason (0.02) +commit d0797f762a80a7ebad75dfd1c453dd2f7a6e38e8 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason - * Brought up to date with current blead after lots of hacking on - blead itself, too many changes to list + remove -Wall -2007-02-18 Ævar Arnfjörð Bjarmason (0.01) +commit b2d169dc7467a275069b4378c600df905ea1c6ff +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason - * Initial release + New ChangeLog file that's made from git, not manually maintained + +commit 55b1c44b39286c06a4d352826ac81345b1e0f5cd +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + make the function prototype match the header file + +commit 8b916a3b3c9a115c834e192c9c1ecf6f431c8f73 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + also refer to L + +commit dc80cc73f25e62588ca1164b3be3a281e6acb3be +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + typo in ok() docs, /x mod not /i + +commit 2b8c214d523e63053b8216b9011b45037922ec3f +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + Bump to 0.05 + +commit 9577daa3b2c3e93ee91478a50461f7b8a8702bd8 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + dos2unix to get rid of \r\n + +commit 2fe84543333001d29ca366aeb8e795de7ef7772e +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + Bump version to 0.05 + +commit 5feac29518975b05987edbc997123cfa06586bb8 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + Update copyright notice to 2008 + +commit 3988d8ac3fc89133fc48d19c8e5f986f97ac9ae3 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + Removed genetared META.yml file + +commit 56513ca501ad38f5358ca5f3ee8bdb5ba61b4639 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + RT#31635: add aTHX_ to Perl_croak call so it'll run on threaded perls + +commit 5da29bf099eb7bfbc1afcba037356cf196e72a72 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + Now using ExtUtils::MakeMaker instead of Module::Install + +commit 933728271dfc39e78c1c91913753ad49655f32b2 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + more stuff for 0.04 + +commit d81c7c9f05735ada95a64682a6a810bf8e0d302b +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + Bump $VERSION to 0.04 + Don't use base, set @ISA directly + +commit 5082c33697a378822636072363223ba929a9b51f +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + format + +commit 3fa42bbb85f17d6edd50bf3ede176ee80b0f2007 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + import.t not impor.t + +commit 17828d44aeb1c7f68794671796104f7a088c5964 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + gitignore and MANIFEST stuff + +commit 86e082409eeb8df843893486f92273c0e46d7637 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + Backported from 0.04_01 + +commit 5b5f13004fe16542da2b113b9b45157ceccef343 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + Bumping the changelog + +commit 5a42c05b23e4ffea50b5bfe897992b013c9e90a4 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + Fix up prototypes to match the callbacks in the actual 5.10 release + +commit 4d5d5872e8624a2e37fb68c6a280f497806313e8 +Author: Ævar Arnfjörð Bjarmason +Commit: Ævar Arnfjörð Bjarmason + + 0.03 from cpan diff --git a/META.yml b/META.yml index ac404b8..34f6d9b 100644 --- a/META.yml +++ b/META.yml @@ -1,6 +1,6 @@ --- #YAML:1.0 name: re-engine-Plugin -version: 0.05 +version: 0.06 abstract: API to write custom regex engines license: perl author: diff --git a/Makefile.PL b/Makefile.PL index b527708..bfb1d13 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -11,3 +11,15 @@ WriteMakefile( TESTS => 't/*.t t/*/*.t t/*/*/*.t', }, ); + +sub MY::postamble { + return <ChangeLog + +META.yml: Makefile + touch META.yml + +END +} + diff --git a/Plugin.pm b/Plugin.pm index 5b84612..26479aa 100644 --- a/Plugin.pm +++ b/Plugin.pm @@ -4,7 +4,7 @@ use 5.009005; use strict; use XSLoader (); -our $VERSION = '0.05'; +our $VERSION = '0.06'; # All engines should subclass the core Regexp package our @ISA = 'Regexp'; diff --git a/Plugin.pod b/Plugin.pod index 76e8b3a..dec530e 100644 --- a/Plugin.pod +++ b/Plugin.pod @@ -19,12 +19,12 @@ C or runtime for C patterns, or something inbetween depending on variable interpolation etc. When this module is loaded into a scope it inserts a hook into -C<$^H{regcomp}> (as described in L) to have each regexp -constructed in its lexical scope handled by this engine, but it -differs from other engines in that it also inserts other hooks into -C<%^H> in the same scope that point to user-defined subroutines to use -during compilation, execution etc, these are described in -L below. +C<$^H{regcomp}> (as described in L and L) to +have each regexp constructed in its lexical scope handled by this +engine, but it differs from other engines in that it also inserts +other hooks into C<%^H> in the same scope that point to user-defined +subroutines to use during compilation, execution etc, these are +described in L below. The callbacks (e.g. L) then get called with a L object as their first argument. This object @@ -51,7 +51,7 @@ caller's scope use use the following snippet: sub import { - # Populates the caller's %^H with our callbacks + # Sets the caller's $^H{regcomp} his %^H with our callbacks re::engine::Plugin->import( comp => \&comp, exec => \&exec, diff --git a/Plugin.xs b/Plugin.xs index 32b2eae..8486171 100644 --- a/Plugin.xs +++ b/Plugin.xs @@ -44,13 +44,11 @@ Plugin_comp(pTHX_ const SV * const pattern, const U32 flags) dSP; REGEXP * rx; re__engine__Plugin re; - I32 count; I32 buffers; /* exp/xend version of the pattern & length */ STRLEN plen; char* exp = SvPV((SV*)pattern, plen); - char* xend = exp + plen; /* The REGEXP structure to return to perl */ Newxz(rx, 1, REGEXP); @@ -210,7 +208,7 @@ Plugin_free(pTHX_ REGEXP * const rx) } void * -Plugin_dupe(pTHX_ const REGEXP * rx, CLONE_PARAMS *param) +Plugin_dupe(pTHX_ REGEXP * const rx, CLONE_PARAMS *param) { Perl_croak(aTHX_ "dupe not supported yet"); return rx->pprivate; @@ -261,7 +259,6 @@ Plugin_numbered_buff_STORE(pTHX_ REGEXP * const rx, const I32 paren, SV const * const value) { dSP; - I32 items; SV * callback; GET_SELF_FROM_PPRIVATE(rx->pprivate); @@ -290,7 +287,6 @@ Plugin_numbered_buff_LENGTH(pTHX_ REGEXP * const rx, const SV * const sv, const I32 paren) { dSP; - I32 items; SV * callback; GET_SELF_FROM_PPRIVATE(rx->pprivate); diff --git a/t/methods.t b/t/methods.t index 6df32fa..e939407 100644 --- a/t/methods.t +++ b/t/methods.t @@ -30,7 +30,7 @@ use re::engine::Plugin ( # modifiers my %mod = $re->mod; ok(exists $mod{i}, 'str flags /i'); - ok(exists $mod{x}, 'str flags /i'); + ok(exists $mod{x}, 'str flags /x'); like(join('', keys %mod), qr/^[cgimosx]+$/, 'flags contain all-good characters'); # stash