Branch: Tag:

2006-05-10

2006-05-10 19:43:54 by Martin Stjernholm <mast@lysator.liu.se>

Show the size of the block that was attempted to be allocated when an out of
memory error occurs.

Rev: src/array.c:1.192
Rev: src/error.c:1.146
Rev: src/pike_error.h:1.38
Rev: src/pike_memory.c:1.176

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: error.c,v 1.145 2006/03/25 12:42:09 grubba Exp $ + || $Id: error.c,v 1.146 2006/05/10 19:43:54 mast Exp $   */      #define NO_PIKE_SHORTHAND
51:    "Bad argument %d to %s(). %s\n";   PMOD_EXPORT const char msg_out_of_mem[] =    "Out of memory.\n"; + PMOD_EXPORT const char msg_out_of_mem_2[] = +  "Out of memory - failed to allocate %"PRINTSIZET"d bytes.\n";   PMOD_EXPORT const char msg_div_by_zero[] =    "Division by zero.\n";