qapi: Rename variable holding the QAPISchemaGenFOOVisitor

Rename the variable holding the QAPISchemaGenFOOVisitor from gen to
vis, to avoid confusion in the next commit.

Backports commit d46eec4260540d83bafba91608842ab03dabf339 from qemu
This commit is contained in:
Markus Armbruster 2018-03-09 07:47:19 -05:00 committed by Lioncash
parent b03a71e1e4
commit 3fe150978c
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
3 changed files with 12 additions and 12 deletions

View file

@ -198,9 +198,9 @@ fdecl.write(mcgen('''
event_enum_name = c_name(prefix + "QAPIEvent", protect=False)
schema = QAPISchema(input_file)
gen = QAPISchemaGenEventVisitor()
schema.visit(gen)
fdef.write(gen.defn)
fdecl.write(gen.decl)
vis = QAPISchemaGenEventVisitor()
schema.visit(vis)
fdef.write(vis.defn)
fdecl.write(vis.decl)
close_output(fdef, fdecl)

View file

@ -267,9 +267,9 @@ fdef.write(mcgen('''
prefix=prefix))
schema = QAPISchema(input_file)
gen = QAPISchemaGenTypeVisitor()
schema.visit(gen)
fdef.write(gen.defn)
fdecl.write(gen.decl)
vis = QAPISchemaGenTypeVisitor()
schema.visit(vis)
fdef.write(vis.defn)
fdecl.write(vis.decl)
close_output(fdef, fdecl)

View file

@ -358,9 +358,9 @@ fdecl.write(mcgen('''
prefix=prefix))
schema = QAPISchema(input_file)
gen = QAPISchemaGenVisitVisitor()
schema.visit(gen)
fdef.write(gen.defn)
fdecl.write(gen.decl)
vis = QAPISchemaGenVisitVisitor()
schema.visit(vis)
fdef.write(vis.defn)
fdecl.write(vis.decl)
close_output(fdef, fdecl)