Branch: Tag:

1999-09-02

1999-09-02 18:38:42 by Per Hedbor <ph@opera.com>

Found a problem with check_variable

Rev: server/base_server/mainconfig.pike:1.129

1:   inherit "config/builders"; - string cvs_version = "$Id: mainconfig.pike,v 1.128 1999/06/11 15:46:30 grubba Exp $"; + string cvs_version = "$Id: mainconfig.pike,v 1.129 1999/09/02 18:38:42 per Exp $";   //inherit "roxenlib";      inherit "config/draw_things";
1107:    return node->data;    if(node->type == NODE_MODULE_MASTER_COPY)    return node->data->master; +  if(node->type == NODE_CONFIGURATION) +  return node->data;    node = node->up;    }    return roxen;
1848:    else    tmp=0;    if(!module_of(o)) perror("No module for this node.\n"); -  if(!o->error && module_of(o) -  && module_of(o)->check_variable) +  if(!o->error && module_of(o) && module_of(o)->check_variable)    o->error = module_of(o)->check_variable(o->data[VAR_SHORTNAME], tmp); -  +     if(!o->error)    if(!equal(tmp, o->data[VAR_VALUE]))    {