[Xcb] [PATCH proto 4/4] schema: add switch-case
Ran Benita
ran234 at gmail.com
Mon Aug 25 08:34:50 PDT 2014
On Mon, Aug 25, 2014 at 04:58:37PM +0200, Christian Linhart wrote:
Reviewed-by: Ran Benita <ran234 at gmail.com>
> ---
> src/xcb.xsd | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/xcb.xsd b/src/xcb.xsd
> index 6415729..7ac3232 100644
> --- a/src/xcb.xsd
> +++ b/src/xcb.xsd
> @@ -74,15 +74,17 @@ authorization from the authors.
> <!-- switch expression -->
> <xsd:complexType name="switchexpr">
> <xsd:sequence>
> <!-- switch(expression) -->
> <xsd:group ref="expression" minOccurs="1" maxOccurs="1" />
> <xsd:choice>
> <!-- bitcase expression - bit test -->
> - <xsd:element name="bitcase" type="caseexpr" minOccurs="1" maxOccurs="unbounded" />
> + <xsd:element name="bitcase" type="caseexpr" minOccurs="0" maxOccurs="unbounded" />
> + <!-- case expression - value test -->
> + <xsd:element name="case" type="caseexpr" minOccurs="0" maxOccurs="unbounded" />
> </xsd:choice>
> <!-- default: -->
> <xsd:group ref="fields" minOccurs="0" maxOccurs="1" />
> </xsd:sequence>
> <xsd:attribute name="name" type="xsd:string" use="required" />
> </xsd:complexType>
>
> --
> 2.0.1
>
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb
More information about the Xcb
mailing list