Re: [Qemu-devel] [PATCH v3 1/6] qemu-option: Allow integer defaults

2019-01-11 Thread Leonid Bloch
On 1/11/19 6:23 PM, Eric Blake wrote: > On 1/11/19 8:14 AM, Leonid Bloch wrote: >> On 1/10/19 9:18 PM, Eric Blake wrote: >>> Set the framework up for declaring integer options with an integer >>> default, instead of our current insane approach of requiring the >>> default value to be given as a str

Re: [Qemu-devel] [PATCH v3 1/6] qemu-option: Allow integer defaults

2019-01-11 Thread Eric Blake
On 1/11/19 8:14 AM, Leonid Bloch wrote: > On 1/10/19 9:18 PM, Eric Blake wrote: >> Set the framework up for declaring integer options with an integer >> default, instead of our current insane approach of requiring the >> default value to be given as a string (which then has to be reparsed >> at eve

Re: [Qemu-devel] [PATCH v3 1/6] qemu-option: Allow integer defaults

2019-01-11 Thread Leonid Bloch
On 1/10/19 9:18 PM, Eric Blake wrote: > Set the framework up for declaring integer options with an integer > default, instead of our current insane approach of requiring the > default value to be given as a string (which then has to be reparsed > at every use that wants a number). git grep '[^.]de

[Qemu-devel] [PATCH v3 1/6] qemu-option: Allow integer defaults

2019-01-10 Thread Eric Blake
Set the framework up for declaring integer options with an integer default, instead of our current insane approach of requiring the default value to be given as a string (which then has to be reparsed at every use that wants a number). git grep '[^.]def_value_str' says that we have done a good job