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.99 2003/01/04 15:22:11 nilsson Exp $ + || $Id: error.c,v 1.100 2003/01/05 00:58:02 nilsson 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"   #include "array.h"   #include "object.h"   #include "main.h"   #include "builtin_functions.h"   #include "backend.h"   #include "operators.h"   #include "module_support.h"   #include "threads.h"   #include "gc.h"    - RCSID("$Id: error.c,v 1.99 2003/01/04 15:22:11 nilsson Exp $"); + RCSID("$Id: error.c,v 1.100 2003/01/05 00:58:02 nilsson Exp $");      #undef ATTRIBUTE   #define ATTRIBUTE(X)      PMOD_EXPORT const char msg_fatal_error[] =    "%s:%d: Fatal error:\n";   #ifdef PIKE_DEBUG   PMOD_EXPORT const char msg_unsetjmp_nosync_1[] =    "UNSETJMP out of sync! (last SETJMP at %s)!\n";   PMOD_EXPORT const char msg_unsetjmp_nosync_2[] =
pike.git/src/error.c:806:    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)   {    char *msg;    if(expected>args)    { -  msg="Too few arguments"; +  msg="Too few arguments.\n";    }else{ -  msg="Too many arguments"; +  msg="Too many arguments.\n";    }       new_error(name, msg, Pike_sp-args, args, 0,0);   }      #ifdef PIKE_DEBUG   static void gc_check_throw_value(struct callback *foo, void *bar, void *gazonk)   {    debug_gc_xmark_svalues(&throw_value,1," in the throw value");   }