Branch: Tag:

1998-01-21

1998-01-21 21:34:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Removed deprecated varargs-constructs.

Rev: server/base_server/configuration.pike:1.89
Rev: server/base_server/dummy_hosts.pike:1.3
Rev: server/base_server/hosts.pike:1.21
Rev: server/base_server/html.pike:1.3
Rev: server/base_server/module.pike:1.27
Rev: server/base_server/module_support.pike:1.14
Rev: server/base_server/roxen.pike:1.159
Rev: server/base_server/socket.pike:1.9

1: - /* $Id: module.pike,v 1.26 1997/10/22 19:47:40 grubba Exp $ */ + /* $Id: module.pike,v 1.27 1998/01/21 21:34:21 grubba Exp $ */      #include <module.h>   
77:   }      // Define a variable, with more than a little error checking... - varargs void defvar(string var, mixed value, string name, int type, -  string doc_str, mixed misc, int|function not_in_config) + void defvar(string|void var, mixed|void value, string|void name, +  int|void type, string|void doc_str, mixed|void misc, +  int|function|void not_in_config)   {    if(!strlen(var))    error("No name for variable!\n");
261:    return 0;   }    - varargs mixed query(string var, int ok) + mixed query(string|void var, int|void ok)   { -  if(var) +  if(var) {    if(variables[var])    return variables[var][VAR_VALUE];    else if(!ok)    error("Querying undefined variable.\n"); -  +  }       return variables;   }