Branch: Tag:

1999-12-27

1999-12-27 23:15:49 by Martin Nilsson <mani@lysator.liu.se>

Fixed debug code

Rev: server/base_server/cache.pike:1.32
Rev: server/base_server/disk_cache.pike:1.43
Rev: server/base_server/fonts.pike:1.35
Rev: server/base_server/global_variables.pike:1.11

666:    mixed res = compile_string( "mixed f(){ return "+v+";}")()->f();    if(sprintf("%t", res) != sprintf("%t", variables[c][VAR_VALUE]) &&    res != 0 && variables[c][VAR_VALUE] != 0) -  werror("Warning: Setting variable "+c+"\n" +  report_debug("Warning: Setting variable "+c+"\n"    "to a value of a different type than the default value.\n"    "Default was "+sprintf("%t", variables[c][VAR_VALUE])+    " new is "+sprintf("%t", res)+"\n");    variables[c][VAR_VALUE]=res;    })    { -  werror("Warning: Asuming '"+v+"' should be taken " +  report_debug("Warning: Asuming '"+v+"' should be taken "    "as a string value.\n");    if(!stringp(variables[c][VAR_VALUE])) -  werror("Warning: Old value was not a string.\n"); +  report_debug("Warning: Old value was not a string.\n");    variables[c][VAR_VALUE]=v;    }    }    else -  perror("Unknown variable: "+c+"\n"); +  report_debug("Unknown variable: "+c+"\n");    }    }   }