Branch: Tag:

2003-05-15

2003-05-15 15:33:31 by Martin Stjernholm <mast@lysator.liu.se>

Improved some range check error messages.

Rev: src/array.c:1.147
Rev: src/builtin.cmod:1.136
Rev: src/builtin_functions.c:1.493
Rev: src/error.c:1.108
Rev: src/fd_control.c:1.48
Rev: src/opcodes.c:1.147
Rev: src/operators.c:1.179
Rev: src/stralloc.c:1.156

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.107 2003/04/28 00:34:12 mast Exp $ + || $Id: error.c,v 1.108 2003/05/15 15:33:30 mast Exp $   */      #define NO_PIKE_SHORTHAND
23:   #include "threads.h"   #include "gc.h"    - RCSID("$Id: error.c,v 1.107 2003/04/28 00:34:12 mast Exp $"); + RCSID("$Id: error.c,v 1.108 2003/05/15 15:33:30 mast Exp $");      #undef ATTRIBUTE   #define ATTRIBUTE(X)
525:    break;    default:    index_error("error->`[]", Pike_sp-args, args, NULL, Pike_sp-args, -  "Index %"PRINTPIKEINT"d is out of range 0 - 1.\n", ind); +  "Index %"PRINTPIKEINT"d is out of range 0..1.\n", ind);    break;    }   }