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.253 2006/01/20 17:50:51 grubba Exp $ + || $Id: pike_types.c,v 1.254 2006/07/05 19:26:26 mast Exp $   */      #include "global.h"   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"   #include "stralloc.h"   #include "stuff.h"   #include "array.h"   #include "program.h"
pike.git/src/pike_types.c:1070:    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; +  min = MIN_INT32;    }    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; +  max = MAX_INT32;    }       if(**s != ')') yyerror("Missing ')' in integer range.");    else    ++*s;    push_int_type(min, max);    }else{    push_int_type(MIN_INT32, MAX_INT32);    }    break;