if ((*ex->disc->convertf)(ex, &tmp, INTEGER, expr->data.operand.right ? expr->data.operand.right->data.variable.symbol : (Exid_t*)0, 0, ex->disc))
{
if (v.string) {
- tmp.data.constant.value.integer = strToL(v.string, &e);
+ tmp.data.constant.value.integer = strtoll(v.string, &e, 0);
if (*e)
tmp.data.constant.value.integer = *v.string != 0;
}
return v;
}
+#if 0
/* strToL:
* Convert a string representation of an integer
* to an integer. The string can specify its own form
sfsscanf(s, "%I*i", sizeof(v), &v);
return v;
}
+#endif
/* exstring:
* Generate copy of input string using
break;
case S2I:
s = x->data.constant.value.string;
- x->data.constant.value.integer = strToL(s, &e);
+ x->data.constant.value.integer = strtoll(s, &e, 0);
if (*e)
x->data.constant.value.integer = (*s != 0);
break;
extern Exstate_t expr;
extern int exparse(void); /* yacc should do this */
+#if defined(WIN32)
+#define strtoll _strtoi64
+#define strtoull _strtoui64
+#endif
extern Sflong_t strToL(char *, char **);
#endif