[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH RFC 3/9] libxl_internal: make JSON_* types or-able
On Mon, Apr 14, 2014 at 06:03:03PM +0100, Ian Campbell wrote: > On Thu, 2014-04-10 at 16:40 +0100, Wei Liu wrote: > > Libxl can generate number as type JSON_INTEGER, JSON_DOUBLE or > > JSON_NUMBER, > > Those are three distinct types, right? Rather than NUMBER being the > union of INTERGERs and DOUBLEs? > Yes. They are distinct types. > > string as type JSON_STRING or JSON_NULL (if string is > > null). > > > > So make JSON_* type or-able > > I think the phrase you want is "make FOO a bit-field". > > > + JSON_ANY = (1 << 8) > > Is ANY here meaning "Any of the others" or is it a specific JSON type? > If the former then should this be 0xff? (or whatever mask achieves the > aim of matching all types) > It means "any of the others". I will make it a mask. Wei. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |