And grubba and I was just discussing removing everything foo-bar-int-related the other day... Having it work is of course an even better solution :)
/ Martin Nilsson (Åskblod)
Previous text:
2003-01-26 12:33: Subject: INT_TYPE = INT64 (Bz2)
Thanks Grubba for making Bz2 work. I fixed the testsuite too now.
I have another problem, I want Pike to be able to use long long ints in the svalues. It shouldn't be much work to get it to work. But here's where I'm stuck now:
| void debug_push_int_type(INT_TYPE min, INT_TYPE max) | { | *(++Pike_compiler->type_stackp) = mk_type(T_INT, | (void *)(ptrdiff_t)min, | (void *)(ptrdiff_t)max, 0); | | TYPE_STACK_DEBUG("push_int_type"); | }
The Pike int type can't contain ints that take more space then a pointer: (void*).
Suggestions? I'm thinking of moving the car and cdr value type to be a union of some sort rather then these, imh, rather ugly and limited casts.
Grubba?
/ Mirar