From: Vincent Pit Date: Thu, 6 Jan 2011 01:08:26 +0000 (+0100) Subject: Tabs vs spaces X-Git-Tag: v0.09~17 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=c2d7bc787853308707a3baf0e28f8c2d952a7936;p=perl%2Fmodules%2Fre-engine-Plugin.git Tabs vs spaces --- diff --git a/Plugin.h b/Plugin.h index 7fc63d4..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"); \ } diff --git a/Plugin.xs b/Plugin.xs index 1e6a73b..7c01ad5 100644 --- a/Plugin.xs +++ b/Plugin.xs @@ -318,7 +318,7 @@ Plugin_comp(pTHX_ SV * const pattern, U32 flags) * in between */ if (h->exec) { re->cb_exec = h->exec; - SvREFCNT_inc_simple_void_NN(h->exec); + SvREFCNT_inc_simple_void_NN(h->exec); } re->cb_num_capture_buff_FETCH = NULL; @@ -634,7 +634,7 @@ STATIC U32 rep_booted = 0; /* --- XS ------------------------------------------------------------------ */ -MODULE = re::engine::Plugin PACKAGE = re::engine::Plugin +MODULE = re::engine::Plugin PACKAGE = re::engine::Plugin PROTOTYPES: DISABLE @@ -655,16 +655,16 @@ PREINIT: ptable *t; PPCODE: { - my_cxt_t ud; - dMY_CXT; - ud.tbl = t = ptable_new(); - ud.owner = MY_CXT.owner; - ptable_walk(MY_CXT.tbl, rep_ptable_clone, &ud); + my_cxt_t ud; + dMY_CXT; + ud.tbl = t = ptable_new(); + ud.owner = MY_CXT.owner; + ptable_walk(MY_CXT.tbl, rep_ptable_clone, &ud); } { - MY_CXT_CLONE; - MY_CXT.tbl = t; - MY_CXT.owner = aTHX; + MY_CXT_CLONE; + MY_CXT.tbl = t; + MY_CXT.owner = aTHX; } reap(3, rep_thread_cleanup, NULL); XSRETURN(0);