unicorn/qemu/include
Michael S. Tsirkin 0455644974
ARRAY_SIZE: check that argument is an array
It's a familiar pattern: some code uses ARRAY_SIZE, then refactoring
changes the argument from an array to a pointer to a dynamically
allocated buffer. Code keeps compiling but any ARRAY_SIZE calls now
return the size of the pointer divided by element size.

Let's add build time checks to ARRAY_SIZE before we allow more
of these in the code-base.

Backports commit ed63ec0d22ccdce3b2222d9a514423b7fbba3a0d from qemu
2018-03-02 00:09:51 -05:00
..
crypto Drop unused crypto source files 2018-02-17 15:23:57 -05:00
exec cputlb: drop flush_global flag from tlb_flush 2018-03-01 19:36:04 -05:00
fpu fpu: add mechanism to check for invalid long double formats 2018-02-26 02:27:40 -05:00
hw Move target-* CPU file into a target/ folder 2018-03-01 22:50:58 -05:00
qapi error: error_setg_errno(): errno gets preserved 2018-03-01 23:38:25 -05:00
qemu ARRAY_SIZE: check that argument is an array 2018-03-02 00:09:51 -05:00
qom tcg: comment on which functions have to be called with tb_lock held 2018-02-28 10:26:28 -05:00
sysemu accel: make configure_accelerator return void 2018-02-24 00:31:28 -05:00
config.h import 2015-08-21 15:04:50 +08:00
elf.h fix merge conflicts 2017-03-10 21:04:33 +08:00
glib_compat.h glib_compat: Amend header guard 2018-02-25 23:12:20 -05:00
qemu-common.h tcg: Add EXCP_ATOMIC 2018-02-27 11:57:58 -05:00