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.162 2008/05/27 19:36:00 grubba Exp $ + || $Id: error.c,v 1.163 2008/05/30 15:19:03 mast 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:228:    LOW_LONGJMP(Pike_interpreter.recoveries->recovery,1);   }      PMOD_EXPORT void push_error(const char *description)   {    push_text(description);    f_backtrace(0);    f_aggregate(2);   }    - PMOD_EXPORT struct svalue throw_value = { -  PIKE_T_INT, NUMBER_NUMBER, - #ifdef HAVE_UNION_INIT -  {0}, /* Only to avoid warnings. */ - #endif - }; + PMOD_EXPORT struct svalue throw_value = SVALUE_INIT_FREE;   int throw_severity;   static const char *in_error;      PMOD_EXPORT DECLSPEC(noreturn) void low_error(const char *buf) ATTRIBUTE((noreturn))   {    push_error(buf);    free_svalue(& throw_value);    move_svalue (&throw_value, --Pike_sp);    throw_severity = THROW_ERROR;    in_error=0;