From: Ævar Arnfjörð Bjarmason Date: Thu, 27 Dec 2007 19:03:23 +0000 (+0000) Subject: Fix up prototypes to match the callbacks in the actual 5.10 release X-Git-Tag: v0.04~9 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fre-engine-Plugin.git;a=commitdiff_plain;h=5a42c05b23e4ffea50b5bfe897992b013c9e90a4 Fix up prototypes to match the callbacks in the actual 5.10 release --- diff --git a/Plugin.h b/Plugin.h index 2124ad8..1f354d5 100644 --- a/Plugin.h +++ b/Plugin.h @@ -28,7 +28,9 @@ EXTERN_C void Plugin_numbered_buff_STORE(pTHX_ REGEXP * const, const I32, SV const * const); EXTERN_C I32 Plugin_numbered_buff_LENGTH(pTHX_ REGEXP * const, const SV * const, const I32); -EXTERN_C SV * Plugin_named_buff_FETCH(pTHX_ REGEXP * const, SV * const, +EXTERN_C SV * Plugin_named_buff (pTHX_ REGEXP * const, SV * const, + SV * const, const U32); +EXTERN_C SV * Plugin_named_buff_iter (pTHX_ REGEXP * const, const SV * const, const U32); EXTERN_C SV * Plugin_package(pTHX_ REGEXP * const); #ifdef USE_ITHREADS @@ -50,7 +52,8 @@ const regexp_engine engine_plugin = { Plugin_numbered_buff_FETCH, Plugin_numbered_buff_STORE, Plugin_numbered_buff_LENGTH, - Plugin_named_buff_FETCH, + Plugin_named_buff, + Plugin_named_buff_iter, Plugin_package, #if defined(USE_ITHREADS) Plugin_dupe, diff --git a/Plugin.xs b/Plugin.xs index aa95e8b..d0bc33e 100644 --- a/Plugin.xs +++ b/Plugin.xs @@ -326,12 +326,16 @@ Plugin_numbered_buff_LENGTH(pTHX_ REGEXP * const rx, const SV * const sv, SV* -Plugin_named_buff_FETCH(pTHX_ REGEXP * const rx, SV * const key, U32 flags) +Plugin_named_buff (pTHX_ REGEXP * const rx, SV * const key, SV * const value, + const U32 flags) { - PERL_UNUSED_ARG(rx); - PERL_UNUSED_ARG(key); - PERL_UNUSED_ARG(flags); + return NULL; +} +SV* +Plugin_named_buff_iter (pTHX_ REGEXP * const rx, const SV * const lastkey, + const U32 flags) +{ return NULL; }