pike.git / lib / modules / Search.pmod / Utils.pmod

version» Context lines:

pike.git/lib/modules/Search.pmod/Utils.pmod:116:    get_database(),    get_query_value("fi_rank"));    return ranking;    }       class ADTSet {    private mapping vals = ([]);       ADTSet add (string|int|float in) {    vals[in] = 1; -  return this_object(); +  return this;    }       ADTSet sub (string|int|float out) {    m_delete(vals, out); -  return this_object(); +  return this;    }       ADTSet `+(mixed in) {    if(stringp(in)||intp(in)||floatp(in))    add(in);    else    map((array)in, add); -  return this_object(); +  return this;    }       ADTSet `-(mixed out) {    if(stringp(out)||intp(out)||floatp(out))    sub(out);    else    map((array)out, sub); -  return this_object(); +  return this;    }       protected mixed cast(string to) {    switch(to) {    case "array": return indices(vals);    case "multiset": return (multiset)indices(vals);    default:    return UNDEFINED;    }    }
pike.git/lib/modules/Search.pmod/Utils.pmod:372:    int db = get_db_profile_number(db_name);    int query = get_query_profile_number(query_name);       ProfileEntry entry;    if(entry=entry_cache[query +":"+ db]) {    if(!entry->check_timeout()) return entry;    if(up_to_datep(db) &&    up_to_datep(query)) return entry;    }    -  entry = ProfileEntry( db, query, this_object() ); +  entry = ProfileEntry( db, query, this );    return entry_cache[query +":"+ db] = entry;    }       //! Flushes profile entry @[p] from the profile cache.    void flush_profile(int p) {    m_delete(value_cache, p);    foreach(db_profile_names; string name; int dbp)    if (dbp == p)    m_delete(db_profile_names, name);    foreach(query_profile_names; string name; int qp)