[TUHS] reviving a bit of WWB

Warner Losh imp at bsdimp.com
Mon Sep 21 15:59:01 AEST 2020


On Sun, Sep 20, 2020, 11:55 PM Steve Nickolas <usotsuki at buric.co> wrote:

> On Sun, 20 Sep 2020, Warner Losh wrote:
>
> > 0 is fine if sizeof(int) == sizeof(void *). Otherwise varadic function
> > calls break.
>
> I've never written anything that uses varargs, so I've never run into
> that.  But I've actually done quite a bit of work with an environment
> where this isn't true: MS-DOS using the large or huge model.  In this
> environment, sizeof(int)=2, and sizeof(void*) is 4.
>

Sizeof(int) == 4 and sizeof(void *) == 8 on LP64 platforms too...

Warner

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200920/e372dbff/attachment.htm>


More information about the TUHS mailing list