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.147 1999/12/21 22:45:16 grubba Exp $"); + RCSID("$Id: las.c,v 1.148 1999/12/22 19:05:17 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:2518:       if (!CDAR(n) || pike_types_le(CDAR(n)->type, void_type_string)) {    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)) {    struct pike_string *t1 = describe_type(value_type);    struct pike_string *t2 = describe_type(CDAR(n)->type); -  my_yyerror("Variable type missmatch in foreach()."); +  my_yyerror("Variable type mismatch in foreach().");    my_yyerror("Expected: %s", t1->str);    my_yyerror("Got : %s", t2->str);    free_string(t2);    free_string(t1);    } else if (lex.pragmas & ID_STRICT_TYPES) {    struct pike_string *t1 = describe_type(value_type);    struct pike_string *t2 = describe_type(CDAR(n)->type); -  yywarning("Variable type missmatch in foreach()."); +  yywarning("Variable type mismatch in foreach().");    yywarning("Expected: %s", t1->str);    yywarning("Got : %s", t2->str);    free_string(t2);    free_string(t1);    }    }    free_string(value_type);    }    }    free_string(array_zero);