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

version» Context lines:

pike.git/lib/modules/Search.pmod/Utils.pmod:1:   // This file is part of Roxen Search   // Copyright © 2001 Roxen IS. All rights reserved.   // - // $Id: Utils.pmod,v 1.47 2008/06/24 09:41:06 jonasw Exp $ + // $Id: Utils.pmod,v 1.48 2008/08/20 17:03:54 jonasw Exp $      #if !constant(report_error)   #define report_error werror   #define report_debug werror   #define report_warning werror   #endif      #ifdef SEARCH_DEBUG   # define WERR(X) report_debug("search: "+(X)+"\n");   #else
pike.git/lib/modules/Search.pmod/Utils.pmod:446:   }      class Scheduler {       private int next_run;    private mapping(int:int) entry_queue = ([]);    private mapping(int:int) crawl_queue = ([]);    private mapping(int:int) compact_queue = ([]);    private array(int) priority_queue = ({});    private mapping db_profiles; + #if constant(roxen)    private object schedule_process; -  + #endif       void create(mapping _db_profiles) {    db_profiles = _db_profiles;    schedule();    }       void check_priority_queue(int profile)    {    if (!has_value(priority_queue, profile))    priority_queue += ({ profile });