Branch: Tag:

2003-02-17

2003-02-17 15:20:46 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Backported object index lvalue fixes from Pike 7.5.

Rev: src/interpret.c:1.285

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: interpret.c,v 1.284 2003/01/15 19:03:26 mast Exp $ + || $Id: interpret.c,v 1.285 2003/02/17 15:20:46 grubba Exp $   */      #include "global.h" - RCSID("$Id: interpret.c,v 1.284 2003/01/15 19:03:26 mast Exp $"); + RCSID("$Id: interpret.c,v 1.285 2003/02/17 15:20:46 grubba Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"
325:    break;       case T_OBJECT: +  if (lval[1].type == T_LVALUE) { +  low_object_index_no_free(to, lval->u.object, lval[1].u.integer); +  } else {    object_index_no_free(to, lval->u.object, lval+1); -  +  }    break;       case T_ARRAY:
392:    break;       case T_OBJECT: +  if (lval[1].type == T_LVALUE) { +  object_low_set_index(lval->u.object, lval[1].u.integer, from); +  } else {    object_set_index(lval->u.object, lval+1, from); -  +  }    break;       case T_ARRAY: