pike.git / src / las.c

version» Context lines:

pike.git/src/las.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: las.c,v 1.437 2009/08/06 13:08:40 grubba Exp $ + || $Id: las.c,v 1.438 2009/10/11 17:19:13 grubba Exp $   */      #include "global.h"   #include "interpret.h"   #include "las.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "lex.h"
pike.git/src/las.c:3461:    case F_RANGE:    if (!CAR(n)) {    /* Unlikely to occur, and if it does, it has probably    * already been complained about.    */    copy_pike_type(n->type, mixed_type_string);    }    else {    node *low = CADR (n), *high = CDDR (n);    n->type = range_type(CAR(n)->type, -  low->token == F_RANGE_OPEN ? NULL : CAR (low)->type, -  high->token == F_RANGE_OPEN ? NULL : CAR (high)->type); +  ((low->token == F_RANGE_OPEN) || !CAR(low)) ? +  NULL : CAR (low)->type, +  ((high->token == F_RANGE_OPEN) || !CAR(high)) ? +  NULL : CAR (high)->type);    }    break;       case F_PUSH_ARRAY:    if (CAR(n)) {    struct pike_type *array_type;    MAKE_CONSTANT_TYPE(array_type, tArr(tZero));    if (!pike_types_le(array_type, CAR(n)->type)) {    yytype_report(REPORT_ERROR, NULL, 0, array_type,    NULL, 0, CAR(n)->type,