Felix scripsit:

> Note that the foreign types "integer" and "unsigned-integer" map to
> "long long" and "unsigned long long" (available as "C_long" and
> "C_ulong" in C code that uses "chicken.h") on this platform.

That doesn't make sense to me.  The Win64 memory model is LLP64: that is,
ints and longs are still 32 bits, and only pointers are 64 bits, unlike
the LP64 memory model of all other systems where ints are 32 bits and
longs and pointers are 64 bits.  So "integer" and "unsigned-integer"
should be the C types "long" and "unsigned long" in order to DTRT when
invoking Win64 C functions.

-- 
John Cowan           http://www.ccil.org/~cowan            [email protected]
One of the oil men in heaven started a rumor of a gusher down in hell.  All
the other oil men left in a hurry for hell.  As he gets to thinking about
the rumor he had started he says to himself there might be something in
it after all.  So he leaves for hell in a hurry.    --Carl Sandburg

_______________________________________________
Chicken-hackers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to