aboutsummaryrefslogtreecommitdiff
path: root/os-posix.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2019-06-06 17:38:03 +0200
committerMarkus Armbruster <armbru@redhat.com>2019-06-12 18:37:17 +0200
commit157dd363955b961ef378eb1f7817c31a7fa94d10 (patch)
treed20940570e0014a06068bda8cce5c0752dc80004 /os-posix.c
parentc9d4070991ee504bd674c77c3790ef7028b258bd (diff)
downloadqemu-157dd363955b961ef378eb1f7817c31a7fa94d10.zip
qemu-157dd363955b961ef378eb1f7817c31a7fa94d10.tar.gz
qemu-157dd363955b961ef378eb1f7817c31a7fa94d10.tar.bz2
qapi: Simplify how QAPIDoc implements its state machine
QAPIDoc uses a state machine to for processing of documentation lines. Its state is encoded as an enum QAPIDoc._state (well, as enum-like class actually, thanks to our infatuation with Python 2). All we ever do with the state is calling the state's function to process a line of documentation. The enum values effectively serve as handles for the functions. Eliminate the rather wordy indirection: store the function to call in QAPIDoc._append_line. Update and improve comments. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190606153803.5278-8-armbru@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> [Commit message typo fixed]
Diffstat (limited to 'os-posix.c')
0 files changed, 0 insertions, 0 deletions