>       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?

I guess I still favour the union approach myself, but the thinking is
the same...


>       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.

Does that ever happen? That long > void*, I mean...




SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to