pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: interpret.c,v 1.117 1999/03/17 21:51:30 hubbe Exp $"); + RCSID("$Id: interpret.c,v 1.118 1999/03/19 11:43:14 hubbe Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"   #include "svalue.h"   #include "array.h"   #include "mapping.h"   #include "error.h"   #include "language.h"   #include "stralloc.h"   #include "constants.h"
pike.git/src/interpret.c:262:    to->u.integer=0;    to->subtype=NUMBER_UNDEFINED;    }else{    to->u.integer=0;    to->subtype=NUMBER_NUMBER;    }    break;       default:    if(IS_ZERO(lval)) -  error("Indexing the NULL value.\n"); /* Per */ +  index_error(0,0,0,lval,lval+1,"Indexing the NULL value.\n");    else -  error("Indexing a basic type.\n"); +  index_error(0,0,0,lval,lval+1,"Indexing a basic type.\n");    }   }      void assign_lvalue(struct svalue *lval,struct svalue *from)   {   #ifdef PIKE_SECURITY    if(lval->type <= MAX_COMPLEX)    if(!CHECK_DATA_SECURITY(lval->u.array, SECURITY_BIT_SET_INDEX))    error("Assign index permission denied.\n");   #endif
pike.git/src/interpret.c:321:       case T_MULTISET:    if(IS_ZERO(from))    multiset_delete(lval->u.multiset, lval+1);    else    multiset_insert(lval->u.multiset, lval+1);    break;       default:    if(IS_ZERO(lval)) -  error("Indexing the NULL value.\n"); /* Per */ +  index_error(0,0,0,lval,lval+1,"Indexing the NULL value.\n");    else -  error("Indexing a basic type.\n"); +  index_error(0,0,0,lval,lval+1,"Indexing a basic type.\n");    }   }      union anything *get_pointer_if_this_type(struct svalue *lval, TYPE_T t)   {   #ifdef PIKE_SECURITY    if(lval->type <= MAX_COMPLEX)    if(!CHECK_DATA_SECURITY(lval->u.array, SECURITY_BIT_SET_INDEX))    error("Assign index permission denied.\n");   #endif
pike.git/src/interpret.c:361:    case T_ARRAY:    return array_get_item_ptr(lval->u.array,lval+1,t);       case T_MAPPING:    return mapping_get_item_ptr(lval->u.mapping,lval+1,t);       case T_MULTISET: return 0;       default:    if(IS_ZERO(lval)) -  error("Indexing the NULL value.\n"); /* Per */ +  index_error(0,0,0,lval,lval+1,"Indexing the NULL value.\n");    else -  error("Indexing a basic type.\n"); +  index_error(0,0,0,lval,lval+1,"Indexing a basic type.\n");    return 0;    }   }      #ifdef PIKE_DEBUG   void print_return_value(void)   {    if(t_flag>3)    {    char *s;