[Vm-dev] Re: [OpenSmalltalk/opensmalltalk-vm] a64e0d: Use same
Win32 function prototypes in .h and .c fo...
nicolas.cellier.aka.nice at gmail.com
Thu Jul 7 21:59:14 UTC 2016
about sqInt vs 32bits ipv4 address, I had same questions.
Currently the SocketPlugin is a SmartSyntaxInterpreterPlugin.
That means that most types are automagically inferred and we hardly can
For win32 IA32 (x86) that does not change a thing, sqInt is int.
For win32 x64, yes we pass 64bits integer via sqInt.
But then htonl(sqInt) will truncate the sqInt to 32bits.
That's not the cleanest thing, and it may issue a compiler warning.
But it should work.
2016-07-07 22:59 GMT+02:00 Henrik Sperre Johansen <
henrik.s.johansen at veloxit.no>:
> If not, it begs the question; are there equivalents for ntoh*/hton* that
> you convert platform width numbers in the same way you can use %z in
> (Which, amazingly, is also supported in VS2015 /tc mode, their C99 support
> really improved in VS2013...
> Sure, the code generated if you try to, say, use fminf in a loop is still
> abysmal, but hey, at least it doesn't raise an error anymore)
> View this message in context:
> Sent from the Squeak VM mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Vm-dev