Skip to content

Commit

Permalink
Link xid_start and xid_continue externally to prevent data duplicatio…
Browse files Browse the repository at this point in the history
…n in binary
  • Loading branch information
Listwon committed Feb 11, 2024
1 parent 4e990cd commit 5ee4b49
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 5ee4b49

Please sign in to comment.