Skip to contentSkip to conversation

RFC: options parsing in vl.c should be module

Qemu-devel Stefan Hajnoczi 1 participant 1 message Mar 30, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 3 lines · Wanpeng Li

Consider of the options parsing process in main function of vl.c is too long. It should be module into single function to clear Ideas, strengthen the source code management, and increase code readability.

I suggest sending a patch to show what you want to do.

In general you may find that pure refactoring patches don't receive as much attention as patches that fix bugs or add features. As long as your patch is focussed and clean it can probably get in. vl.c:main() is ugly but we need to be very careful not to break existing command-line invocations, so consider whether it's worth doing this and how you will test it.

Stefan