made platforms file validation stricter / added missing `bool` elements (#4747)

This commit is contained in:
Oliver Stöneberg 2023-01-27 08:34:12 +01:00 committed by GitHub
parent 7eb1da9ffc
commit ea617553a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 42 additions and 37 deletions

View File

@ -3,6 +3,7 @@
<char_bit>8</char_bit> <char_bit>8</char_bit>
<default-sign>unsigned</default-sign> <default-sign>unsigned</default-sign>
<sizeof> <sizeof>
<bool>1</bool>
<short>2</short> <short>2</short>
<int>4</int> <int>4</int>
<long>8</long> <long>8</long>

View File

@ -3,6 +3,7 @@
<char_bit>8</char_bit> <char_bit>8</char_bit>
<default-sign>unsigned</default-sign> <default-sign>unsigned</default-sign>
<sizeof> <sizeof>
<bool>1</bool>
<short>2</short> <short>2</short>
<int>4</int> <int>4</int>
<long>4</long> <long>4</long>

View File

@ -3,6 +3,7 @@
<char_bit>8</char_bit> <char_bit>8</char_bit>
<default-sign>unsigned</default-sign> <default-sign>unsigned</default-sign>
<sizeof> <sizeof>
<bool>1</bool>
<short>2</short> <short>2</short>
<int>4</int> <int>4</int>
<long>4</long> <long>4</long>

View File

@ -3,6 +3,7 @@
<char_bit>8</char_bit> <char_bit>8</char_bit>
<default-sign>unsigned</default-sign> <default-sign>unsigned</default-sign>
<sizeof> <sizeof>
<bool>1</bool>
<short>2</short> <short>2</short>
<int>4</int> <int>4</int>
<long>4</long> <long>4</long>

View File

@ -3,6 +3,7 @@
<char_bit>8</char_bit> <char_bit>8</char_bit>
<default-sign>unsigned</default-sign> <default-sign>unsigned</default-sign>
<sizeof> <sizeof>
<bool>1</bool>
<short>2</short> <short>2</short>
<int>4</int> <int>4</int>
<long>4</long> <long>4</long>

View File

@ -9,43 +9,39 @@
<data type="NCName"/> <data type="NCName"/>
</element> </element>
<element name="sizeof"> <element name="sizeof">
<zeroOrMore> <element name="bool">
<choice> <data type="integer"/>
<element name="bool"> </element>
<data type="integer"/> <element name="short">
</element> <data type="integer"/>
<element name="short"> </element>
<data type="integer"/> <element name="int">
</element> <data type="integer"/>
<element name="int"> </element>
<data type="integer"/> <element name="long">
</element> <data type="integer"/>
<element name="long"> </element>
<data type="integer"/> <element name="long-long">
</element> <data type="integer"/>
<element name="long-long"> </element>
<data type="integer"/> <element name="float">
</element> <data type="integer"/>
<element name="float"> </element>
<data type="integer"/> <element name="double">
</element> <data type="integer"/>
<element name="double"> </element>
<data type="integer"/> <element name="long-double">
</element> <data type="integer"/>
<element name="long-double"> </element>
<data type="integer"/> <element name="pointer">
</element> <data type="integer"/>
<element name="pointer"> </element>
<data type="integer"/> <element name="size_t">
</element> <data type="integer"/>
<element name="size_t"> </element>
<data type="integer"/> <element name="wchar_t">
</element> <data type="integer"/>
<element name="wchar_t"> </element>
<data type="integer"/>
</element>
</choice>
</zeroOrMore>
</element> </element>
</element> </element>
</start> </start>

View File

@ -3,6 +3,7 @@
<char_bit>8</char_bit> <char_bit>8</char_bit>
<default-sign>unsigned</default-sign> <default-sign>unsigned</default-sign>
<sizeof> <sizeof>
<bool>1</bool>
<short>2</short> <short>2</short>
<int>8</int> <int>8</int>
<long>8</long> <long>8</long>

View File

@ -3,6 +3,7 @@
<char_bit>8</char_bit> <char_bit>8</char_bit>
<default-sign>signed</default-sign> <default-sign>signed</default-sign>
<sizeof> <sizeof>
<bool>1</bool>
<short>2</short> <short>2</short>
<int>2</int> <int>2</int>
<long>4</long> <long>4</long>

View File

@ -3,6 +3,7 @@
<char_bit>8</char_bit> <char_bit>8</char_bit>
<default-sign>unsigned</default-sign> <default-sign>unsigned</default-sign>
<sizeof> <sizeof>
<bool>1</bool>
<short>2</short> <short>2</short>
<int>4</int> <int>4</int>
<long>4</long> <long>4</long>

View File

@ -3,6 +3,7 @@
<char_bit>8</char_bit> <char_bit>8</char_bit>
<default-sign>unsigned</default-sign> <default-sign>unsigned</default-sign>
<sizeof> <sizeof>
<bool>1</bool>
<short>2</short> <short>2</short>
<int>4</int> <int>4</int>
<long>8</long> <long>8</long>