mirror of
https://gitlab.freedesktop.org/xorg/proto/xcbproto.git
synced 2026-01-04 23:50:13 +01:00
Enforce a bit or value in enum items
Do not allow enum items without an explicit bit or value. The value of an enum item is known when adding the enum to the xml specification. There's no reason why this information shouldn't be where it belongs to. Signed-off-by: Daniel Martin <consume.noise@gmail.com> Reviewed-by: Ran Benita <ran234@gmail.com> (and tested) Reviewed-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
parent
a702f7e1ca
commit
cb2fa837ff
1 changed files with 4 additions and 1 deletions
|
|
@ -353,7 +353,10 @@ authorization from the authors.
|
|||
<xsd:sequence minOccurs="1" maxOccurs="unbounded">
|
||||
<xsd:element name="item">
|
||||
<xsd:complexType>
|
||||
<xsd:group ref="expression" minOccurs="0" maxOccurs="1" />
|
||||
<xsd:choice minOccurs="1" maxOccurs="1">
|
||||
<xsd:element name="value" type="dec-or-hex-integer" />
|
||||
<xsd:element name="bit" type="xsd:integer" />
|
||||
</xsd:choice>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue