pike.git / lib / modules / Array.pmod

version» Context lines:

pike.git/lib/modules/Array.pmod:253:    if (a[i] == b[seq_ab[j]]) aeq[i] |= 2, beq[seq_ab[j]] |= 1, j++;    for (int i = 0, j = 0; j < sizeof (seq_bc); i++)    if (b[i] == c[seq_bc[j]]) beq[i] |= 2, ceq[seq_bc[j]] |= 1, j++;    for (int i = 0, j = 0; j < sizeof (seq_ca); i++)    if (c[i] == a[seq_ca[j]]) ceq[i] |= 2, aeq[seq_ca[j]] |= 1, j++;       array(array) ares = ({}), bres = ({}), cres = ({});    int ai = 0, bi = 0, ci = 0;    int prevodd = -2;    -  int i = 10; -  while (i-- && !(aeq[ai] & beq[bi] & ceq[ci] & 4)) { +  while (!(aeq[ai] & beq[bi] & ceq[ci] & 4)) {    array empty = ({}), apart = empty, bpart = empty, cpart = empty;       if (aeq[ai] == 2 && beq[bi] == 1) { // a and b are equal.    do apart += ({a[ai++]}), bi++; while (aeq[ai] == 2 && beq[bi] == 1);    bpart = apart;    while (!ceq[ci]) cpart += ({c[ci++]});    prevodd = 2;    }    else if (beq[bi] == 2 && ceq[ci] == 1) { // b and c are equal.    do bpart += ({b[bi++]}), ci++; while (beq[bi] == 2 && ceq[ci] == 1);