Lines Matching defs:pos
63 int pos )
71 if( pos < 0 || pos > t->n_items )
72 pos = t->n_items;
74 memmove( t->items + pos + 1,
75 t->items + pos,
76 sizeof( void* ) * ( t->n_items - pos ) );
78 t->items[pos] = ptr;
80 return pos;
121 int pos = -1;
126 pos = 0;
141 pos = new_first;
149 pos = first;
156 pos = first + half;
164 return pos;
184 int pos;
189 pos = tr_ptrArrayLowerBound( t, ptr, compare, NULL );
190 ret = tr_ptrArrayInsert( t, ptr, pos );
202 const int pos = tr_ptrArrayLowerBound( t, ptr, compare, &match );
203 return match ? t->items[pos] : NULL;
213 const int pos = tr_ptrArrayLowerBound( t, ptr, compare, &match );
218 ret = t->items[pos];
220 tr_ptrArrayErase( t, pos, pos + 1 );