pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.c:1:   /*   || 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: pike_types.c,v 1.198 2002/10/11 01:39:35 nilsson Exp $ + || $Id: pike_types.c,v 1.199 2002/10/28 13:02:27 nilsson Exp $   */      #include "global.h" - RCSID("$Id: pike_types.c,v 1.198 2002/10/11 01:39:35 nilsson Exp $"); + RCSID("$Id: pike_types.c,v 1.199 2002/10/28 13:02:27 nilsson Exp $");   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"   #include "stralloc.h"   #include "stuff.h"   #include "array.h"   #include "program.h"   #include "constants.h"   #include "object.h"   #include "multiset.h"
pike.git/src/pike_types.c:3565:    case T_MULTISET:    case T_MAPPING:    /* Illegal range operation. */    /* FIXME: Strict type warning. */    return 0;       case T_ARRAY:    case T_STRING:    /* Check that the index types are compatible with int. */    { -  struct pike_type *a; -  +     if (!low_match_types(int_type_string, index1_type, 0)) {    struct pike_string *s = describe_type(t);    yywarning("Bad argument 1 to range operator on %s.",    s->str);    free_string(s);    yyexplain_nonmatching_types(int_type_string, index1_type,    YYTE_IS_WARNING);    /* Bad index1 type. */    return 0;    }