Lines Matching defs:scopes
213 /* If the target was not already in our current scopes,
221 /* if ID is a child of any of our current scopes,
227 if (mdb_id2l_insert(isc->scopes, &mid) == 0) {
248 /* If we're done processing the old scopes, did we add any new
249 * scopes in this iteration? If so, go back and do those now.
320 static void scope_chunk_ret( Operation *op, ID2 *scopes )
326 scopes[0].mval.mv_data = ret;
328 (void *)scopes, scope_chunk_free, NULL, NULL );
412 } else if ( isc->scopes[0].mid > 1 ) { /* candidate-based search */
414 for ( i=1; i<=isc->scopes[0].mid; i++ ) {
415 if ( !isc->scopes[i].mval.mv_data )
417 key.mv_data = &isc->scopes[i].mid;
418 mdb_cursor_get( mcd, &key, &isc->scopes[i].mval, MDB_SET );
431 ID2 *scopes;
478 scopes = scope_chunk_get( op );
489 isc.scopes = scopes;
660 scopes[0].mid = 0;
680 scopes[0].mid = 1;
681 scopes[1].mid = base->e_id;
682 scopes[1].mval.mv_data = NULL;
785 /* if any alias scopes were set, save them */
786 if (scopes[0].mid > 1) {
788 for (cscope = 1; cscope <= scopes[0].mid; cscope++) {
790 if (scopes[cscope].mid == base->e_id)
792 iscopes[cursor++] = scopes[cscope].mid;
794 iscopes[0] = scopes[0].mid - 1;
1007 if ( nsubs < ncand || isc.scopes[isc.nscope].mid == base->e_id ) {
1011 mdb_id2name( op, ltid, &isc.mc, scopes[isc.nscope].mid, &pdn, &pndn );
1183 * alias scopes left, search them too.
1247 scope_chunk_ret( op, scopes );