Branch: Tag:

2000-11-12

2000-11-12 10:18:49 by Andreas Sigfridsson <sigge@lysator.liu.se>

Show the index in the 'Indexing a NULL value.' error message.

Rev: src/opcodes.c:1.92

26:   #include "bignum.h"   #include "operators.h"    - RCSID("$Id: opcodes.c,v 1.91 2000/11/01 23:32:32 grubba Exp $"); + RCSID("$Id: opcodes.c,v 1.92 2000/11/12 10:18:49 sigge Exp $");      void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind)   {
51: Inside #if defined(AUTO_BIGNUM)
   if (val) {    error("Indexing the integer %d with an unknown method.\n", val);    } else { +  if(ind->type == T_STRING) +  error("Indexing the NULL value with \"%s\".\n", ind->u.string->str); +  else    error("Indexing the NULL value.\n");    }    }