pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: error.c,v 1.133 2004/09/18 20:50:49 nilsson Exp $ + || $Id: error.c,v 1.134 2004/10/22 20:17:13 grubba Exp $   */      #define NO_PIKE_SHORTHAND   #include "global.h"   #include "svalue.h"   #include "pike_macros.h"   #include "pike_error.h"   #include "interpret.h"   #include "stralloc.h"   #include "builtin_functions.h"
pike.git/src/error.c:949:    ERROR_STRUCT(permission,o)->permission_type=    make_shared_string(permission_type);    ERROR_DONE(generic);   }      PMOD_EXPORT void wrong_number_of_args_error(const char *name, int args, int expected)   {    if(expected>args)    {    bad_arg_error (name, Pike_sp-args, args, expected, NULL, NULL, -  "Too few arguments to %s(). Expected at least %d.\n", -  name, expected); +  "Too few arguments to %s(). Expected at least %d (got %d).\n", +  name, args, expected, args);    }else {    bad_arg_error (name, Pike_sp-args, args, expected, NULL, NULL, -  "Too many arguments to %s(). Expected at most %d.\n", -  name, expected); +  "Too many arguments to %s(). Expected at most %d (got %d).\n", +  name, expected, args);    }   }      #ifdef PIKE_DEBUG   static void gc_check_throw_value(struct callback *foo, void *bar, void *gazonk)   {    gc_mark_external_svalues(&throw_value,1," in the throw value");   }   #endif