[Toybox] [PATCH] Use NULL rather than 0 in vargs.

enh enh at google.com
Tue Dec 5 09:32:57 PST 2017


want me to switch to arrays? (and if so, presumably using ARRAY_LEN
rather than an explicit end element?)

On Mon, Dec 4, 2017 at 10:47 PM, Rob Landley <rob at landley.net> wrote:
> On 12/04/2017 03:27 PM, enh wrote:
>> Top bits count too!
>
> Sigh. This is why I use arrays rather than varargs for table driven logic.
>
> (I do not understand whoever decided that you promote every argument to
> 32 bits but _not_ 64 bits. Because systems with 1 megabyte of memory
> back in the 80's had room to spare but modern systems with gigabytes of
> the stuff are clearly starved for it...)
>
> Rob



-- 
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.



More information about the Toybox mailing list