Lines Matching defs:oldpos
286 mapKey(struct SRBRoot *bundle, int32_t oldpos) {
295 if (oldpos < map[i].oldpos) {
301 assert(oldpos == map[start].oldpos);
1479 int32_t lPos = ((const KeyMapEntry *)l)->oldpos;
1480 int32_t rPos = ((const KeyMapEntry *)r)->oldpos;
1500 /* Sort pool bundle keys first (negative oldpos), and otherwise keys in parsing order. */
1511 return compareInt32(((const KeyMapEntry *)l)->oldpos, ((const KeyMapEntry *)r)->oldpos);
1530 map[i].oldpos =
1531 (int32_t)(keys - bundle->fPoolBundleKeys) | 0x80000000; /* negative oldpos */
1538 map[i].oldpos = (int32_t)(keys - bundle->fKeys);
1561 map[i].newpos = map[i].oldpos;
1562 if (j < keysCount && map[j].oldpos < 0) {
1567 key = getKeyString(bundle, map[i].oldpos);
1569 for (; j < keysCount && map[j].oldpos >= 0; ++j) {
1574 suffix = keys + map[j].oldpos;
1583 map[j].newpos = map[i].oldpos + offset; /* yes, point to the earlier key */
1600 int32_t oldpos, newpos, limit;
1601 oldpos = newpos = bundle->fKeysBottom;
1606 while (oldpos < limit) {
1607 if (keys[oldpos] == 1) {
1608 ++oldpos; /* skip unused bytes */
1611 while (i < keysCount && map[i].newpos == oldpos) {
1615 keys[newpos++] = keys[oldpos++];