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.113 1999/05/13 07:32:25 hubbe Exp $"); + RCSID("$Id: interpret.c,v 1.114 2001/03/09 02:54:32 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:264:    break;       case T_MAPPING:    mapping_index_no_free(to, lval->u.mapping, lval+1);    break;       case T_MULTISET:    to->type=T_INT;    if(multiset_member(lval->u.multiset,lval+1))    { -  to->u.integer=0; -  to->subtype=NUMBER_UNDEFINED; +  to->u.integer=1; +  to->subtype=NUMBER_NUMBER;    }else{    to->u.integer=0; -  to->subtype=NUMBER_NUMBER; +  to->subtype=NUMBER_UNDEFINED;    }    break;       default:    if(IS_ZERO(lval))    error("Indexing the NULL value.\n"); /* Per */    else    error("Indexing a basic type.\n");    }   }