Issue #326 - Part 3: Explicitly make the Script enum a 16-bit type

This is so we can add a field to gfxShapedWord without making it bigger.
Backported from Mozilla bug 1353000.
This commit is contained in:
Job Bautista 2022-06-23 13:23:20 +08:00 committed by roytam1
commit 7c2d948210
3 changed files with 4 additions and 4 deletions

View file

@ -926,7 +926,7 @@ close DATA_TABLES;
print HEADER "namespace mozilla {\n";
print HEADER "namespace unicode {\n";
print HEADER "enum class Script {\n";
print HEADER "enum class Script : int16_t {\n";
for (my $i = 0; $i < scalar @scriptCodeToName; ++$i) {
print HEADER " ", $scriptCodeToName[$i], " = ", $i, ",\n";
}

View file

@ -11,7 +11,7 @@
*/
/*
* Created on Wed Jun 22 10:09:48 2022 from UCD data files with version info:
* Created on Wed Jun 22 12:55:37 2022 from UCD data files with version info:
*
# Unicode Character Database

View file

@ -11,7 +11,7 @@
*/
/*
* Created on Wed Jun 22 10:09:48 2022 from UCD data files with version info:
* Created on Wed Jun 22 12:55:37 2022 from UCD data files with version info:
*
# Unicode Character Database
@ -89,7 +89,7 @@ struct nsCharProps2 {
namespace mozilla {
namespace unicode {
enum class Script {
enum class Script : int16_t {
COMMON = 0,
INHERITED = 1,
ARABIC = 2,