提交 92f0a7f5 编写于 作者: O Osier Yang

rpc: Fix typos in rpc generator scripts

These typos are introduced by file renaming in commit b17b4afa.

src/remote/qemu_protocol.x \
src/remote/remote_protocol.x \
src/rpc/gendispatch.pl:
    s/remote_generator/gendispatch/

src/rpc/genprotocol.pl:
    s/remote\/remote_protocol/remote_protocol/
上级 fab4f0c6
...@@ -53,7 +53,7 @@ const QEMU_PROTOCOL_VERSION = 1; ...@@ -53,7 +53,7 @@ const QEMU_PROTOCOL_VERSION = 1;
enum qemu_procedure { enum qemu_procedure {
/* Each function must have a two-word comment. The first word is /* Each function must have a two-word comment. The first word is
* whether remote_generator.pl handles daemon, the second whether * whether gendispatch.pl handles daemon, the second whether
* it handles src/remote. */ * it handles src/remote. */
QEMU_PROC_MONITOR_COMMAND = 1, /* skipgen skipgen */ QEMU_PROC_MONITOR_COMMAND = 1, /* skipgen skipgen */
QEMU_PROC_DOMAIN_ATTACH = 2 /* autogen autogen */ QEMU_PROC_DOMAIN_ATTACH = 2 /* autogen autogen */
......
...@@ -339,7 +339,7 @@ struct remote_node_get_memory_stats { ...@@ -339,7 +339,7 @@ struct remote_node_get_memory_stats {
* connection). Errors are returned implicitly in the RPC protocol. * connection). Errors are returned implicitly in the RPC protocol.
* *
* Please follow the naming convention carefully - this file is * Please follow the naming convention carefully - this file is
* parsed by 'remote_generator.pl'. * parsed by 'gendispatch.pl'.
* *
* 'remote_CALL_ret' members that are filled via call-by-reference must be * 'remote_CALL_ret' members that are filled via call-by-reference must be
* annotated with a insert@<offset> comment to indicate the offset in the * annotated with a insert@<offset> comment to indicate the offset in the
...@@ -2123,7 +2123,7 @@ const REMOTE_PROTOCOL_VERSION = 1; ...@@ -2123,7 +2123,7 @@ const REMOTE_PROTOCOL_VERSION = 1;
enum remote_procedure { enum remote_procedure {
/* Each function must have a two-word comment. The first word is /* Each function must have a two-word comment. The first word is
* whether remote_generator.pl handles daemon, the second whether * whether gendispatch.pl handles daemon, the second whether
* it handles src/remote. Additional flags can be specified after a * it handles src/remote. Additional flags can be specified after a
* pipe. * pipe.
* *
...@@ -2390,7 +2390,7 @@ enum remote_procedure { ...@@ -2390,7 +2390,7 @@ enum remote_procedure {
* Nice isn't it. Please keep it this way when adding more. * Nice isn't it. Please keep it this way when adding more.
* *
* Each function must have a two-word comment. The first word is * Each function must have a two-word comment. The first word is
* whether remote_generator.pl handles daemon, the second whether * whether gendispatch.pl handles daemon, the second whether
* it handles src/remote. Additional flags can be specified after a * it handles src/remote. Additional flags can be specified after a
* pipe. * pipe.
* *
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
# for both remote_protocol.x and qemu_protocol.x, you would run the # for both remote_protocol.x and qemu_protocol.x, you would run the
# following: # following:
# #
# remote_generator.pl -c -t remote ../src/remote/remote_protocol.x # gendispatch.pl -c -t remote ../src/remote/remote_protocol.x
# remote_generator.pl -t qemu ../src/remote/qemu_protocol.x # gendispatch.pl -t qemu ../src/remote/qemu_protocol.x
# #
# By Richard Jones <rjones@redhat.com> # By Richard Jones <rjones@redhat.com>
# Extended by Matthias Bolte <matthias.bolte@googlemail.com> # Extended by Matthias Bolte <matthias.bolte@googlemail.com>
...@@ -239,7 +239,7 @@ sub hyper_to_long ...@@ -239,7 +239,7 @@ sub hyper_to_long
# Output # Output
print <<__EOF__; print <<__EOF__;
/* Automatically generated by remote_generator.pl. /* Automatically generated by gendispatch.pl.
* Do not edit this file. Any changes you make will be lost. * Do not edit this file. Any changes you make will be lost.
*/ */
__EOF__ __EOF__
......
...@@ -59,7 +59,7 @@ while (<RPCGEN>) { ...@@ -59,7 +59,7 @@ while (<RPCGEN>) {
s/xdr_u_quad_t/xdr_uint64_t/g; s/xdr_u_quad_t/xdr_uint64_t/g;
s/xdr_quad_t/xdr_int64_t/g; s/xdr_quad_t/xdr_int64_t/g;
s/(?<!IXDR_GET_INT32 )IXDR_GET_LONG/IXDR_GET_INT32/g; s/(?<!IXDR_GET_INT32 )IXDR_GET_LONG/IXDR_GET_INT32/g;
s,#include "\./remote/remote_protocol\.h",#include "remote_protocol.h",; s,#include "remote/remote_protocol\.h",#include "remote_protocol.h",;
if (m/^}/) { if (m/^}/) {
$in_function = 0; $in_function = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册