[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH XEN v6 21/32] tools/libs/foreignmemory: pull array length argument to map forward

On Thu, Dec 03, 2015 at 11:22:18AM +0000, Ian Campbell wrote:
> By having the "num" argument before the page and error arrays we can
> potentially use a variable-length-array argument ("int pages[num]") in
> the function prototype.
> However VLAs are a C99 feature and we are currently targetting C89 and
> later, so we don't actually make use of this here, merely arrange that
> we can switch to VLAs in the future without changing the function ABI.
> Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.