Ian MacArthur wrote:
> [email protected] wrote:
>>> [..] On any other platform,
>>> sizeof(long) == sizeof(void*)
>>>
>> When I worked on the AS/400, sizeof(void*) was 256. I don't recall
>> if longs were 4 or 8 bytes long.
>
> OK - fair point. I was only thinking of host platforms on which I know
> fltk works...
> I can not say whether AS/400 could fall into that camp, but I'm guessing
> not!
I think all we want to be able to assume is that sizeof(void*) >= long.
As long as the storage we're abusing (void*) is => long, aren't we OK?
If so, we can use something like memcpy() to move the longs
into and out of the void* and not have to worry, right?
In cases where long > sizeof(void*), then we can just include some
#ifdef's that declare a long in Fl_Widget, and let argument()
manipulate that.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev