pike.git / src / las.c

version» Context lines:

pike.git/src/las.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: las.c,v 1.149 1999/12/22 23:04:50 grubba Exp $"); + RCSID("$Id: las.c,v 1.150 1999/12/23 15:42:33 grubba Exp $");      #include "language.h"   #include "interpret.h"   #include "las.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "lex.h"   #include "pike_types.h"
pike.git/src/las.c:2525:    yyerror("Bad argument 2 to foreach().");    } else {    struct pike_string *value_type = array_value_type(CAAR(n)->type);       if (!pike_types_le(value_type, CDAR(n)->type)) {    if (!match_types(value_type, CDAR(n)->type)) {    yytype_error("Variable type mismatch in foreach().",    value_type, CDAR(n)->type, 0);    } else if (lex.pragmas & ID_STRICT_TYPES) {    yytype_error("Variable type mismatch in foreach().", -  value_type, CDAR(n)->type, 0); +  value_type, CDAR(n)->type, YYTE_IS_WARNING);    }    }    free_string(value_type);    }    }    free_string(array_zero);    }    }    copy_shared_string(n->type, void_type_string);    break;