Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1: - /* $Id: module.pike,v 1.36 1998/11/18 04:53:48 per Exp $ */ + /* $Id: module.pike,v 1.37 1998/11/22 17:07:26 per Exp $ */      #include <module.h>      #define TRACE_ENTER(A,B) do{if(id->misc->trace_enter)id->misc->trace_enter((A),(B));}while(0)   #define TRACE_LEAVE(A) do{if(id->misc->trace_leave)id->misc->trace_leave((A));}while(0)      mapping (string:mixed *) variables=([]);      object this = this_object();   int module_type;
Roxen.git/server/base_server/module.pike:308:    // return 0, otherwise return a string, describing the error.       return 0;   }      mixed query(string|void var, int|void ok)   {    if(var) {    if(variables[var])    return variables[var][VAR_VALUE]; -  else if(!ok) +  else if(!ok && var[0] != '_')    error("Querying undefined variable.\n"); -  +  return 0;    }       return variables;   }      void set_module_list(string var, string what, object to)   {    int p;    p = search(variables[var][VAR_VALUE], what);    if(p == -1)