mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibWeb: Enable in Windows CI
This commit is contained in:
parent
c14173f651
commit
dbba6c0df9
Notes:
github-actions[bot]
2025-06-30 16:51:45 +00:00
Author: https://github.com/ayeteadoe
Commit: dbba6c0df9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5215
Reviewed-by: https://github.com/ADKaster ✅
6 changed files with 19 additions and 4 deletions
|
@ -414,7 +414,7 @@ static NamedCharacterReferenceCodepoints g_named_character_reference_codepoints_
|
|||
|
||||
generator.append(R"~~~(};
|
||||
|
||||
struct DafsaNode {
|
||||
struct __attribute__((packed)) DafsaNode {
|
||||
// The actual alphabet of characters used in the list of named character references only
|
||||
// includes 61 unique characters ('1'...'8', ';', 'a'...'z', 'A'...'Z'), but we have
|
||||
// bits to spare and encoding this as a `u8` allows us to avoid the need for converting
|
||||
|
@ -441,7 +441,11 @@ struct DafsaNode {
|
|||
// There are 3872 nodes in our DAFSA, so all indexes could fit in a u12.
|
||||
u16 child_index : 14;
|
||||
};
|
||||
static_assert(sizeof(DafsaNode) == 4);
|
||||
#if !defined(AK_OS_WINDOWS)
|
||||
static_assert(sizeof(DafsaNode) == 4);
|
||||
#else
|
||||
static_assert(sizeof(DafsaNode) == 5);
|
||||
#endif
|
||||
|
||||
static DafsaNode g_named_character_reference_dafsa[] = {
|
||||
{ 0, 0, false, true, 1 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue