pike.git / lib / modules / Array.pmod

version» Context lines:

pike.git/lib/modules/Array.pmod:251:    array(int) ac = allocate (sizeof (a) + 1, -1);    ab[sizeof (a)] = ac[sizeof (a)] = eoa;    array(int) bc = allocate (sizeof (b) + 1, -1);    array(int) ba = allocate (sizeof (b) + 1, -1);    bc[sizeof (b)] = ba[sizeof (b)] = eoa;    array(int) ca = allocate (sizeof (c) + 1, -1);    array(int) cb = allocate (sizeof (c) + 1, -1);    ca[sizeof (c)] = cb[sizeof (c)] = eoa;       for (int i = 0, j = 0; j < sizeof (seq_ab); i++) -  if (a[i] == b[seq_ab[j]]) ab[i] = seq_ab[j], ba[seq_ab[j]] = i, j++; +  if (equal (a[i], b[seq_ab[j]])) +  a[i] = b[seq_ab[j]], ab[i] = seq_ab[j], ba[seq_ab[j]] = i, j++;    for (int i = 0, j = 0; j < sizeof (seq_bc); i++) -  if (b[i] == c[seq_bc[j]]) bc[i] = seq_bc[j], cb[seq_bc[j]] = i, j++; +  if (equal (b[i], c[seq_bc[j]])) +  b[i] = c[seq_bc[j]], bc[i] = seq_bc[j], cb[seq_bc[j]] = i, j++;    for (int i = 0, j = 0; j < sizeof (seq_ca); i++) -  if (c[i] == a[seq_ca[j]]) ca[i] = seq_ca[j], ac[seq_ca[j]] = i, j++; +  if (equal (c[i], a[seq_ca[j]])) +  c[i] = a[seq_ca[j]], ca[i] = seq_ca[j], ac[seq_ca[j]] = i, j++;       array(array) ares = ({}), bres = ({}), cres = ({});    int ai = 0, bi = 0, ci = 0;    int part = 8; // Chunk partition bitfield.       while (min (ac[ai], ab[ai], ba[bi], bc[bi], cb[ci], ca[ci]) != eoa) {    int apart = (ac[ai] == -1 && 1) | (ab[ai] == -1 && 2);    int bpart = (ba[bi] == -1 && 2) | (bc[bi] == -1 && 4);    int cpart = (cb[ci] == -1 && 4) | (ca[ci] == -1 && 1);    int newpart = apart | bpart | cpart;