2000-02-04
2000-02-04 01:58:10 by Per Hedbor <ph@opera.com>
-
e74b1e34a9705318670e4ec252c88a82d305a5a7
(28 lines)
(+8/-20)
[
Show
| Annotate
]
Branch: 5.2
Also remove the TYPE_[deprecated] tests from this file..
Rev: server/base_server/module.pike:1.74
1:
- /* $Id: module.pike,v 1.73 2000/02/03 17:12:54 jhs Exp $ */
+ /* $Id: module.pike,v 1.74 2000/02/04 01:58:10 per Exp $ */
#include <module.h>
#include <request_trace.h>
141: Inside #if defined(MODULE_DEBUG)
switch (type & VAR_TYPE_MASK)
{
- case TYPE_NODE:
- if(!arrayp(value))
- report_error("TYPE_NODE variables should contain a list of variables "
- "to use as subnodes.\n");
- break;
+
case TYPE_CUSTOM:
if(!misc
&& arrayp(misc)
184: Inside #if defined(MODULE_DEBUG)
roxen->filename(this), value, value);
break;
- case TYPE_MODULE_LIST:
- value = ({});
- break;
-
+
case TYPE_MODULE:
/* No default possible */
value = 0;
246: Inside #if defined(MODULE_DEBUG)
value=!!value;
break;
- case TYPE_ERROR:
- break;
+ // case TYPE_COLOR:
+ // if (!intp(value))
+ // report_error("%s:\nPassing illegal value (%t:%O) (not int) "
+ // "to color variable.\n",
+ // roxen->filename(this), value, value);
+ // break;
- case TYPE_COLOR:
- if (!intp(value))
- report_error("%s:\nPassing illegal value (%t:%O) (not int) "
- "to color variable.\n",
- roxen->filename(this), value, value);
- break;
-
+
case TYPE_FILE_LIST:
- case TYPE_PORTS:
+
case TYPE_FONT:
// FIXME: Add checks for these.
break;