Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1: - /* $Id: module.pike,v 1.33 1998/07/07 17:05:15 grubba Exp $ */ + /* $Id: module.pike,v 1.34 1998/07/24 05:44:43 mast 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:211:    if(!misc && value && !arrayp(value)) {    report_error(sprintf("%s:\nPassing illegal misc (%t:%O) (not array) "    "to multiple choice variable.\n",    roxen->filename(this), value, value));    } else {    if(misc && !arrayp(misc)) {    report_error(sprintf("%s:\nPassing illegal misc (%t:%O) (not array) "    "to multiple choice variable.\n",    roxen->filename(this), misc, misc));    } -  if(misc && search(misc, value)==-1) { +  if(misc && value && search(misc, value)==-1) {    roxen_perror(sprintf("%s:\nPassing value (%t:%O) not present "    "in the misc array.\n",    roxen->filename(this), value, value));    }    }    break;       case TYPE_FLAG:    value=!!value;    break;