git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v1 1/1] trace2: NULL is not allowed for va_list

From
MWMorten Welinder <mwelinder@gmail.com>
Date
Mar 18, 2019, 17:58 UTC
Message-ID
<CANv4PNm_9W9cqUdcx7vxOnafT_BR1grzOwsepLk+m3KRh0btoA@mail.gmail.com>
In-Reply-To
<20190318155459.nrog5r5y3ci3bz3x@tb-raspi4>
> And I couldn't find any hints that va_list and pointers can be mixed,
> and no hints that they can't either

C99, Section 7.15, simply says that it "is an object type suitable for holding information needed by the macros va_start, va_end, and va_copy".

So clearly not guaranteed to be mixable with pointers. And not prohibited from being mixable either, for that matter. And, nit-pickingly, NULL might be a valid value representing some sequence of arguments if the two are mixable.

M.
Previous: Torsten Bögershausen
Message 5 of 5 in “trace2: NULL is not allowed for va_list”
  1. 1/1 trace2: NULL is not allowed for va_listtboegi@web.de, Mar 16, 2019
  2. Junio C HamanoMar 18, 2019
  3. Jeff HostetlerMar 18, 2019
  4. Torsten BögershausenMar 18, 2019
  5. Morten WelinderMar 18, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.