Skip to content

Commit

Permalink
Merge pull request #88203 from Listwon/char-range-build-size
Browse files Browse the repository at this point in the history
Link `xid_start` and `xid_continue` externally to prevent data duplication in binary
  • Loading branch information
akien-mga committed Feb 12, 2024
2 parents 80503c7 + 5ee4b49 commit 106efa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/string/char_range.inc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct CharRange {
char32_t end;
};

static CharRange xid_start[] = {
inline constexpr CharRange xid_start[] = {
{ 0x41, 0x5a },
{ 0x5f, 0x5f },
{ 0x61, 0x7a },
Expand Down Expand Up @@ -692,7 +692,7 @@ static CharRange xid_start[] = {
{ 0x0, 0x0 },
};

static CharRange xid_continue[] = {
inline constexpr CharRange xid_continue[] = {
{ 0x30, 0x39 },
{ 0x41, 0x5a },
{ 0x5f, 0x5f },
Expand Down

0 comments on commit 106efa4

Please sign in to comment.