Branch: Tag:

1998-03-02

1998-03-02 16:06:59 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

better type checking

Rev: src/builtin_functions.c:1.77
Rev: src/pike_types.c:1.35

4:   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.76 1998/03/01 11:40:46 hubbe Exp $"); + RCSID("$Id: builtin_functions.c,v 1.77 1998/03/02 16:06:58 hubbe Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
262:    return;       default: -  error("Bad argument 2 to search()\n"); +  error("Bad argument 1 to search()\n");    }   }   
2387:    add_efun("aggregate_multiset",f_aggregate_multiset,"function(0=mixed ...:multiset(0))",OPT_TRY_OPTIMIZE);    add_efun("aggregate_mapping",f_aggregate_mapping,"function(0=mixed ...:mapping(0:0))",OPT_TRY_OPTIMIZE);    add_efun("all_constants",f_all_constants,"function(:mapping(string:mixed))",OPT_EXTERNAL_DEPEND); -  add_efun("allocate", f_allocate, "function(int,void|mixed:array)", 0); +  add_efun("allocate", f_allocate, "function(int,void|0=mixed:array(0))", 0);    add_efun("arrayp", f_arrayp, "function(mixed:int)",0);    add_efun("backtrace",f_backtrace,"function(:array(array(function|int|string)))",OPT_EXTERNAL_DEPEND);