Branch: Tag:

2008-05-27

2008-05-27 01:39:44 by Martin Stjernholm <mast@lysator.liu.se>

Made _sprintf in the standard error messages a little more overload
friendly. Moved GENERIC_ERROR_THIS from errors.h since it's not generally
safe to use in programs that inherit generic_error_program.

Rev: src/error.c:1.156
Rev: src/errors.h:1.39

2:   || 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: errors.h,v 1.38 2008/05/23 19:39:06 grubba Exp $ + || $Id: errors.h,v 1.39 2008/05/27 01:39:44 mast Exp $   */      #ifdef ERR_DECLARE
40:    start_new_program(); \    INHERIT \    add_string_constant("error_type", #SCNAME, 0); \ +  add_string_constant ("error_name", "Error." #SCNAME, ID_PRIVATE|ID_USED); \    add_integer_constant("is_" #NAME "_error",1,0); \    PIKE_CONCAT(NAME,_error_program)=end_program(); \    add_program_constant( #SCNAME "Error",PIKE_CONCAT(NAME,_error_program),0); \
125:    ERR_FUNC("create",f_error_create,tFunc(tStr tOr(tVoid,tArr(tMixed)),tVoid),ID_STATIC)   )    - #define GENERIC_ERROR_THIS ((struct generic_error_struct *)CURRENT_STORAGE) -  +    DECLARE_ERROR(index, Index,    ERR_INHERIT(generic),    ERR_VAR(struct svalue, tMix, PIKE_T_MIXED, value)