• M
    qapi: Make input visitors detect unvisited list tails · a4a1c70d
    Markus Armbruster 提交于
    Fix the design flaw demonstrated in the previous commit: new method
    check_list() lets input visitors report that unvisited input remains
    for a list, exactly like check_struct() lets them report that
    unvisited input remains for a struct or union.
    
    Implement the method for the qobject input visitor (straightforward),
    and the string input visitor (less so, due to the magic list syntax
    there).  The opts visitor's list magic is even more impenetrable, and
    all I can do there today is a stub with a FIXME comment.  No worse
    than before.
    Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
    Message-Id: <1488544368-30622-26-git-send-email-armbru@redhat.com>
    Reviewed-by: NEric Blake <eblake@redhat.com>
    a4a1c70d
spapr_drc.c 29.3 KB