]> xenbits.xensource.com Git - xen.git/commit
tools/libs/foreignmemory: pull array length argument to map forward
authorIan Campbell <ian.campbell@citrix.com>
Mon, 30 Nov 2015 10:32:28 +0000 (10:32 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 22 Jan 2016 12:24:19 +0000 (12:24 +0000)
commitcf8c4d3d13b89bddc64a1b8a8a3fead8b9c87c92
treedd6e05ff4828a469eaefd3ff2ca25bac92e34cb5
parentbd1c1ea4404fd374d91c266a10ddc6ac5d29e637
tools/libs/foreignmemory: pull array length argument to map forward

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@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libs/foreignmemory/compat.c
tools/libs/foreignmemory/core.c
tools/libs/foreignmemory/freebsd.c
tools/libs/foreignmemory/include/xenforeignmemory.h
tools/libs/foreignmemory/linux.c
tools/libs/foreignmemory/minios.c
tools/libs/foreignmemory/private.h
tools/libxc/xc_foreign_memory.c
tools/libxc/xc_sr_restore.c
tools/libxc/xc_sr_save.c