]> git.vpit.fr Git - perl/modules/re-engine-Plugin.git/commitdiff
Fix up prototypes to match the callbacks in the actual 5.10 release
authorÆvar Arnfjörð Bjarmason <avar@cpan.org>
Thu, 27 Dec 2007 19:03:23 +0000 (19:03 +0000)
committerÆvar Arnfjörð Bjarmason <avar@cpan.org>
Thu, 27 Dec 2007 19:03:23 +0000 (19:03 +0000)
Plugin.h
Plugin.xs

index 2124ad871a51822b04498f25e567b64ccbd1e47d..1f354d558632d4e15d062bda6edd1a2cf985be8b 100644 (file)
--- 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,
index aa95e8b468b67df5274baa60db3107ddb4d3d644..d0bc33e17af8e025562883321f675d99ca57a6a8 100644 (file)
--- 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;
 }