mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-25 23:48:02 +00:00
4100f3b78a
Commit 4e27e819 introduced optional visitor callbacks for all sorts of int types, but no visitor has supplied any of the callbacks for sizes less than 64 bits. In other words, the generic implementation based on using type_[u]int64() followed by bounds-checking works just fine. In the interest of simplicity, it's easier to make the visitor callback interface not have to worry about the other sizes. Adding some helper functions minimizes the boilerplate required to correct FIXMEs added earlier with regards to questionable reuse of errp, particularly now that we can guarantee from a single file audit that value is unchanged if an error is set. Backports commit 04e070d217b4414f1f91aa8ad25fc0ae7ca0be93 from qemu |
||
---|---|---|
.. | ||
common.json | ||
Makefile.objs | ||
qapi-dealloc-visitor.c | ||
qapi-visit-core.c | ||
qmp-input-visitor.c | ||
qmp-output-visitor.c | ||
string-input-visitor.c |