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.53 1998/02/27 08:39:20 hubbe Exp $"); + RCSID("$Id: las.c,v 1.54 1998/03/01 03:39:37 hubbe 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:1394:    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) &&    !match_types(CDR(n)->type,CAR(n)->type))    my_yyerror("Bad type in assignment."); -  copy_shared_string(n->type, CDR(n)->type); +  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))    if(!catch_level)    my_yyerror("Indexing on illegal type.");    n->type=index_type(type_a,n);