pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.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: pike_types.c,v 1.228 2003/11/24 14:45:15 grubba Exp $ + || $Id: pike_types.c,v 1.229 2003/11/24 16:38:07 grubba Exp $   */      #include "global.h" - RCSID("$Id: pike_types.c,v 1.228 2003/11/24 14:45:15 grubba Exp $"); + RCSID("$Id: pike_types.c,v 1.229 2003/11/24 16:38:07 grubba Exp $");   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"   #include "stralloc.h"   #include "stuff.h"   #include "array.h"   #include "program.h"   #include "constants.h"   #include "object.h"   #include "multiset.h"
pike.git/src/pike_types.c:969:       case 'i':    if(!strcmp(buf,"int"))    {    while(ISSPACE(**s)) ++*s;    if(**s=='(')    {    INT32 min,max;    ++*s;    while(ISSPACE(**s)) ++*s; +  if (**s != '.') {    min=STRTOL((const char *)*s,(char **)s,0);    while(ISSPACE(**s)) ++*s; -  +  } else { +  min = -0x80000000; +  }    if(s[0][0]=='.' && s[0][1]=='.')    s[0]+=2;    else {    yyerror("Missing .. in integer type.");    }       while(ISSPACE(**s)) ++*s; -  +  if (**s != ')') {    max=STRTOL((const char *)*s,(char **)s,0);    while(ISSPACE(**s)) ++*s; -  +  } else { +  max = 0x7fffffff; +  }       if(**s != ')') yyerror("Missing ')' in integer range.");    else    ++*s;    push_int_type(min, max);    }else{    push_int_type(MIN_INT32, MAX_INT32);    }    break;    }