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.117 1999/11/19 21:08:05 grubba Exp $"); + RCSID("$Id: las.c,v 1.118 1999/11/20 03:41:15 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:1968:    if(n->type) return; /* assume it is correct */       switch(n->token)    {    case F_LAND:    case F_LOR:    if (!CAR(n) || CAR(n)->type == void_type_string ||    !CDR(n) || CDR(n)->type == void_type_string) {    yyerror("Conditional contains void expression.");    copy_shared_string(n->type, mixed_type_string); +  break;    }    if(!match_types(CAR(n)->type,mixed_type_string))    yyerror("Bad conditional expression.");       if(!match_types(CDR(n)->type,mixed_type_string))    yyerror("Bad conditional expression.");       if(CAR(n)->type == CDR(n)->type)    {    copy_shared_string(n->type,CAR(n)->type);