pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:176:   %left F_LSH F_RSH   %left '+' '-'   %left '*' '%' '/'   %right F_NOT '~'   %nonassoc F_INC F_DEC      %{   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.134 1999/11/18 02:46:02 mast Exp $"); + RCSID("$Id: language.yacc,v 1.135 1999/11/21 18:52:12 grubba Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif      #include "interpret.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "las.h"   #include "interpret.h"
pike.git/src/language.yacc:908:    | '(' number_or_minint F_DOT_DOT number_or_maxint ')'    {    /* FIXME: Check that $4 is >= $2. */    if($2->token == F_CONSTANT && $2->u.sval.type == T_INT)    {    push_type_int($4->u.sval.u.integer);    }else{    push_type_int(MAX_INT32);    }    -  if($4->token == F_CONSTANT && $4->u.sval.type == T_INT) +  if($2->token == F_CONSTANT && $2->u.sval.type == T_INT)    { -  push_type_int($4->u.sval.u.integer); +  push_type_int($2->u.sval.u.integer);    }else{    push_type_int(MIN_INT32);    }       free_node($2);    free_node($4);    }    ;      opt_object_type: /* Empty */ { push_type_int(0); push_type(0); }