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.83 1999/08/17 01:06:58 mast Exp $"); + RCSID("$Id: las.c,v 1.84 1999/08/20 06:01:30 mast 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:1601:    if(CAR(n)->type == CDR(n)->type)    {    copy_shared_string(n->type,CAR(n)->type);    }else{    copy_shared_string(n->type,mixed_type_string);    }    break;       case F_ASSIGN:    if(CAR(n) && CDR(n) && -  CDR(n)->token != F_ARROW && /* a->b=c can be valid when a is an array */ +  /* a["b"]=c and a->b=c can be valid when a is an array */ +  CDR(n)->token != F_INDEX && CDR(n)->token != F_ARROW &&    !match_types(CDR(n)->type,CAR(n)->type))    my_yyerror("Bad type in assignment.");    copy_shared_string(n->type, CAR(n)->type);    break;       case F_INDEX:    case F_ARROW:    type_a=CAR(n)->type;    type_b=CDR(n)->type;    if(!check_indexing(type_a, type_b, n))