On 07/19/2013 07:44 PM, Wenchao Xia wrote:
> In order to support sub command in auto completion, an reentrant function

s/an/a/

> is needed, so monitor_find_completion() is splitted into two parts. The

s/splitted/split/

> first part does parsing of user input which need to be done only once,
> the second part does the auto completion job according to the parsing
> result, which contains the necessary code to support sub command and
> works as the reentrant function. The global "info_cmds" is still used
> in second part, which will be replaced by sub command code later.
> 
> Signed-off-by: Wenchao Xia <xiaw...@linux.vnet.ibm.com>
> ---
>  monitor.c |   65 ++++++++++++++++++++++++++++++++++++------------------------
>  1 files changed, 39 insertions(+), 26 deletions(-)

Reviewed-by: Eric Blake <ebl...@redhat.com>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to