Actually _that_ change is in Cross/sqVirtualMachine.h and really, really needs a nicer way of specifying the choice. Meta programming of the C compiler would be nice here; can I do anything like #if sizeof(sqeakFileOffsetType) == 4 #define squeakInt64 long long #else #define squeakInt64 long int #endif ?? I actually tried that with no success :-( but there really must be some way to do it. A crucial point is that it must be ansi spec, not ISO or 'it works ok in gcc'. Why is ansi important? Ask me once you've tried doing ports to minimal systems with just an ansilibrary and monitor.
How about if this file includes sqPlatformSpecific.h ?
Or if that's a problem (I don't really grok what the role of all these different header files is), how about we split out a sqTypes.h file with types such as this one?
-Lex
Lex Spoon wrote:
How about if this file includes sqPlatformSpecific.h ?
Or if that's a problem (I don't really grok what the role of all these different header files is), how about we split out a sqTypes.h file with types such as this one?
I think that might be the best answer in the end - though it would have to be sqPlatformTypes.h of course.
tim
squeak-dev@lists.squeakfoundation.org