From: Vincent Pit Date: Wed, 4 Nov 2015 17:03:39 +0000 (-0200) Subject: Reformat some comments X-Git-Tag: v0.11~12 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=5432eb59f83cbde4b5f7444bd849ef3bac4c2365;p=perl%2Fmodules%2Fre-engine-Plugin.git Reformat some comments --- diff --git a/Plugin.xs b/Plugin.xs index 2229d48..10a01ae 100644 --- a/Plugin.xs +++ b/Plugin.xs @@ -155,7 +155,7 @@ const regexp_engine engine_plugin = { typedef struct replug { /* Pointer back to the containing regexp struct so that accessors - * can modify nparens, gofs etc. */ + * can modify nparens, gofs, etc... */ struct regexp *rx; /* A copy of the pattern given to comp, for ->pattern */ @@ -233,8 +233,7 @@ Plugin_comp(pTHX_ const SV * const pattern, const U32 flags) rx->precomp = savepvn(pbuf, rx->prelen); /* Set up qr// stringification to be equivalent to the supplied - * pattern, this should be done via overload eventually. - */ + * pattern, this should be done via overload eventually */ rx->wraplen = rx->prelen; Newx(rx->wrapped, rx->wraplen, char); Copy(rx->precomp, rx->wrapped, rx->wraplen, char); @@ -247,9 +246,8 @@ Plugin_comp(pTHX_ const SV * const pattern, const U32 flags) re->pattern = (SV *) pattern; SvREFCNT_inc_simple_void(re->pattern); - /* If there's an exec callback, store it into the private object so - * that it will be the one to be called, even if the engine changes - * in between */ + /* If there's an exec callback, store it into the private object so that it + * will be the one to be called, even if the engine changes in between */ if (h->exec) { re->cb_exec = h->exec; SvREFCNT_inc_simple_void_NN(h->exec); @@ -259,9 +257,8 @@ Plugin_comp(pTHX_ const SV * const pattern, const U32 flags) re->cb_num_capture_buff_STORE = NULL; re->cb_num_capture_buff_LENGTH = NULL; - /* Call our callback function if one was defined, if not we've - * already set up all the stuff we're going to to need for - * subsequent exec and other calls */ + /* Call our callback function if one was defined, if not we've already set up + * all the stuff we're going to to need for subsequent exec and other calls */ if (h->comp) { ENTER; SAVETMPS; @@ -277,8 +274,7 @@ Plugin_comp(pTHX_ const SV * const pattern, const U32 flags) } /* If any of the comp-time accessors were called we'll have to - * update the regexp struct with the new info. - */ + * update the regexp struct with the new info */ Newxz(rx->offs, rx->nparens + 1, regexp_paren_pair); return RX;