pike.git/
src/
pike_types.c
Branch:
Tag:
Non-build tags
All tags
No tags
2003-11-24
2003-11-24 16:38:07 by Henrik Grubbström (Grubba) <grubba@grubba.org>
1f1c6712b2a49fc4020f98965d7cea15b9e5334b (
21
lines) (+
15
/-
6
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed parsing of integer ranges in internal_parse_typeA().
Rev: src/pike_types.c:1.229
2:
|| 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"
976:
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 {
985:
} 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