pike.git / src / array.c

version» Context lines:

pike.git/src/array.c:14:   #include "language.h"   #include "error.h"   #include "pike_types.h"   #include "fsort.h"   #include "builtin_functions.h"   #include "pike_memory.h"   #include "gc.h"   #include "main.h"   #include "security.h"    - RCSID("$Id: array.c,v 1.50 1999/08/17 01:04:20 mast Exp $"); + RCSID("$Id: array.c,v 1.51 1999/08/17 03:17:06 mast Exp $");      struct array empty_array=   {    1, /* Never free */   #ifdef PIKE_SECURITY    0,   #endif    &empty_array, /* Next */    &empty_array, /* previous (circular) */    0, /* Size = 0 */
pike.git/src/array.c:175:    if (a->size) {    index_error(0,0,0,&tmp,ind,"Index %d is out of range 0 - %d.\n", i, a->size-1);    } else {    index_error(0,0,0,&tmp,ind,"Attempt to index the empty array with %d.\n", i);    }    }    array_index_no_free(s,a,i);    break;       case T_STRING: +  if (ind->subtype == 1) {    check_stack(4);    ref_push_array(a);    assign_svalue_no_free(sp++,ind);    f_column(2);    s[0]=sp[-1];    sp--;    break; -  +  }       default:    {    struct svalue tmp;    tmp.type=T_ARRAY;    tmp.u.array=a;    index_error(0,0,0,&tmp,ind,"Index is not an integer.\n");    }    }   }