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.170 2010/09/27 17:06:17 grubba Exp $ + || $Id$   */      #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:852:    /* error_name is the name the error program wants in printouts    * like this. To still let inheriting programs fall back to    * describe_program if they don't provide it, we make it private    * in the base error classes and allow us to see private    * identifiers here. */    MAKE_CONST_STRING (error_name_str, "error_name");    i = really_low_find_shared_string_identifier (error_name_str, p,    SEE_PRIVATE);    if (i != -1)    push_svalue (&PROG_FROM_INT (p, i)-> -  constants[ID_FROM_INT (p, i)->func.offset].sval); +  constants[ID_FROM_INT (p, i)->func.const_info.offset].sval);    else {    ref_push_program (p);    SAFE_APPLY_MASTER ("describe_program", 1);    }    }       push_constant_text("(%O)");    if(GENERIC_ERROR_THIS->error_message)    ref_push_string(GENERIC_ERROR_THIS->error_message);    else