X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Plugin.h;h=ff8b42eed155f1d4c577618d03a81112c2273388;hb=e20ad0b3c8306a73e1a0e0a1c5f88d6e84e3583e;hp=109854ad2d518be15f5a45cbb9777247cd3d7bc1;hpb=06641849094f807d8762e328b5077e54b299f5e2;p=perl%2Fmodules%2Fre-engine-Plugin.git diff --git a/Plugin.h b/Plugin.h index 109854a..ff8b42e 100644 --- a/Plugin.h +++ b/Plugin.h @@ -4,10 +4,10 @@ /* re__engine__Plugin self; SELF_FROM_PPRIVATE(self,rx->pprivate) */ #define SELF_FROM_PPRIVATE(self, pprivate) \ - if (sv_isobject(pprivate)) { \ + if (sv_isobject(pprivate)) { \ SV * ref = SvRV((SV*)pprivate); \ - IV tmp = SvIV((SV*)ref); \ - self = INT2PTR(re__engine__Plugin,tmp); \ + IV tmp = SvIV((SV*)ref); \ + self = INT2PTR(re__engine__Plugin,tmp); \ } else { \ Perl_croak(aTHX_ "Not an object"); \ } @@ -77,10 +77,8 @@ typedef struct replug { /* The ->stash */ SV * stash; - /* - * Callbacks - */ - + /* Callbacks */ + SV * cb_exec; SV * cb_free; /* ->num_captures */