Re: [Qemu-devel] [PATCH v2 24/24] keyval: Support lists

2017-02-28 Thread Markus Armbruster
Eric Blake writes: > On 02/28/2017 03:27 PM, Markus Armbruster wrote: >> Additionally permit non-negative integers as key components. A >> dictionary's keys must either be all integers or none. If all keys >> are integers, convert the dictionary to a list. The set of keys must >> be [0,N]. >>

Re: [Qemu-devel] [PATCH v2 24/24] keyval: Support lists

2017-02-28 Thread Eric Blake
On 02/28/2017 03:27 PM, Markus Armbruster wrote: > Additionally permit non-negative integers as key components. A > dictionary's keys must either be all integers or none. If all keys > are integers, convert the dictionary to a list. The set of keys must > be [0,N]. > > +static void test_keyval

Re: [Qemu-devel] [PATCH v2 24/24] keyval: Support lists

2017-02-28 Thread Kevin Wolf
Am 28.02.2017 um 23:11 hat Markus Armbruster geschrieben: > Kevin Wolf writes: > > > Am 28.02.2017 um 22:27 hat Markus Armbruster geschrieben: > >> Additionally permit non-negative integers as key components. A > >> dictionary's keys must either be all integers or none. If all keys > >> are int

Re: [Qemu-devel] [PATCH v2 24/24] keyval: Support lists

2017-02-28 Thread Markus Armbruster
Kevin Wolf writes: > Am 28.02.2017 um 22:27 hat Markus Armbruster geschrieben: >> Additionally permit non-negative integers as key components. A >> dictionary's keys must either be all integers or none. If all keys >> are integers, convert the dictionary to a list. The set of keys must >> be [

Re: [Qemu-devel] [PATCH v2 24/24] keyval: Support lists

2017-02-28 Thread Kevin Wolf
Am 28.02.2017 um 22:27 hat Markus Armbruster geschrieben: > Additionally permit non-negative integers as key components. A > dictionary's keys must either be all integers or none. If all keys > are integers, convert the dictionary to a list. The set of keys must > be [0,N]. > > Examples: > > *

[Qemu-devel] [PATCH v2 24/24] keyval: Support lists

2017-02-28 Thread Markus Armbruster
Additionally permit non-negative integers as key components. A dictionary's keys must either be all integers or none. If all keys are integers, convert the dictionary to a list. The set of keys must be [0,N]. Examples: * list.1=goner,list.0=null,list.1=eins,list.2=zwei is equivalent to JSON