unicorn/qemu/include/qapi
Eric Blake 5b5299bdee
qapi: Prefer type_int64 over type_int in visitors
The qapi builtin type 'int' is basically shorthand for the type
'int64'. In fact, since no visitor was providing the optional
type_int64() callback, visit_type_int64() was just always falling
back to type_int(), cementing the equivalence between the types.

However, some visitors are providing a type_uint64() callback.
For purposes of code consistency, it is nicer if all visitors
use the paired type_int64/type_uint64 names rather than the
mismatched type_int/type_uint64. So this patch just renames
the signed int callbacks in place, dropping the type_int()
callback as redundant, and a later patch will focus on the
unsigned int callbacks.

Add some FIXMEs to questionable reuse of errp in code touched
by the rename, while at it (the reuse works as long as the
callbacks don't modify value when setting an error, but it's not
a good example to set) - a later patch will then fix those.

No change in functionality here, although further cleanups are
in the pipeline.

Backports commit 4c40314a35816de635e7170eaacdc0c35be83a8a from qemu
2018-02-19 11:53:21 -05:00
..
qmp qobject: Protect against use-after-free in qobject_decref() 2018-02-17 17:28:27 -05:00
dealloc-visitor.h import 2015-08-21 15:04:50 +08:00
error.h error: Improve documentation 2018-02-17 20:52:49 -05:00
qmp-input-visitor.h import 2015-08-21 15:04:50 +08:00
qmp-output-visitor.h import 2015-08-21 15:04:50 +08:00
string-input-visitor.h import 2015-08-21 15:04:50 +08:00
visitor-impl.h qapi: Prefer type_int64 over type_int in visitors 2018-02-19 11:53:21 -05:00
visitor.h import 2015-08-21 15:04:50 +08:00