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>
<default-sign>unsigned</default-sign>
<sizeof>
<bool>1</bool>
<short>2</short>
<int>4</int>
<long>8</long>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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