]> Git Repo - qemu.git/commitdiff
qapi: Rename variable holding the QAPISchemaGenFOOVisitor
authorMarkus Armbruster <[email protected]>
Sun, 11 Feb 2018 09:35:42 +0000 (10:35 +0100)
committerEric Blake <[email protected]>
Fri, 2 Mar 2018 19:14:09 +0000 (13:14 -0600)
Rename the variable holding the QAPISchemaGenFOOVisitor from gen to
vis, to avoid confusion in the next commit.

Signed-off-by: Markus Armbruster <[email protected]>
Message-Id: <20180211093607[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Marc-AndrĂ© Lureau <[email protected]>
Reviewed-by: Michael Roth <[email protected]>
Signed-off-by: Eric Blake <[email protected]>
scripts/qapi-commands.py
scripts/qapi-event.py
scripts/qapi-introspect.py
scripts/qapi-types.py
scripts/qapi-visit.py

index 035a28acb2aa7f8ddf763af0299f314e40897b5d..114c5ad276b9be0f890edd36ee55ff2bc31c1c6f 100644 (file)
@@ -289,9 +289,9 @@ void %(c_prefix)sqmp_init_marshal(QmpCommandList *cmds);
                   prefix=prefix, c_prefix=c_name(prefix, protect=False)))
 
 schema = QAPISchema(input_file)
-gen = QAPISchemaGenCommandVisitor()
-schema.visit(gen)
-fdef.write(gen.defn)
-fdecl.write(gen.decl)
+vis = QAPISchemaGenCommandVisitor()
+schema.visit(vis)
+fdef.write(vis.defn)
+fdecl.write(vis.decl)
 
 close_output(fdef, fdecl)
index 91874d84fbdc7b2aea134128c6c1931ce8b31ac9..9de5c6748e488c26522bfec401cb5ec1adc86768 100644 (file)
@@ -201,9 +201,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)
index cc1c3cb703244e29c495b569b36f6d20db89d96d..7a01a8f8f25c882e317532766921061db40e8c20 100644 (file)
@@ -191,9 +191,9 @@ fdef.write(mcgen('''
                  prefix=prefix))
 
 schema = QAPISchema(input_file)
-gen = QAPISchemaGenIntrospectVisitor(opt_unmask)
-schema.visit(gen)
-fdef.write(gen.defn)
-fdecl.write(gen.decl)
+vis = QAPISchemaGenIntrospectVisitor(opt_unmask)
+schema.visit(vis)
+fdef.write(vis.defn)
+fdecl.write(vis.decl)
 
 close_output(fdef, fdecl)
index 766c7737d84998551cde7a98c7cb1a4f1d950dcb..524d220ed75df616d421961ec83bbd34b9bce3b4 100644 (file)
@@ -271,9 +271,9 @@ fdecl.write(mcgen('''
 '''))
 
 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)
index 269227a38e0cb28049ac05d254920dde8dd527a0..0e78cf3bbb54dfe287ec88aa80a02d415765cea6 100644 (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)
This page took 0.035103 seconds and 4 git commands to generate.