pike.git / src / modules / Regexp / pike_regexp.c

version» Context lines:

pike.git/src/modules/Regexp/pike_regexp.c:516:    }    }    else if(op == PLUS)    {    if (flags & SIMPLE)    {    reginsert(KPLUS, ret);    }    else    { -  /* Emit a+ as (a&) where & means "self" /Fredrik Hubinette */ +  /* ret -> 1: x nxt: 2 +  * tmp -> 2: BRANCH op: 3 nxt: 4 +  * 3: BACK nxt: 1 +  * 4: BRANCH op: 5 nxt: 5 +  * 5: NOTHING +  */    char *tmp;    tmp=regnode(BACK);    reginsert(BRANCH, tmp);    regtail(ret, tmp);    regoptail(tmp, ret);    regtail(ret, regnode(BRANCH));    regtail(ret, regnode(NOTHING));    }    }