@@ -5,23 +5,27 @@ Subject: [PATCH 5/6] Shrink size of static binary search tree
55
66This also makes it more efficient on the data cache.
77---
8- source/lexbor/core/sbst.h | 15 ++++++++++-----
8+ source/lexbor/core/sbst.h | 19 ++++ ++++++++++-----
99 source/lexbor/html/tokenizer/state.c | 2 +-
1010 utils/lexbor/html/tmp/tokenizer_res.h | 2 +-
1111 utils/lexbor/html/tokenizer_entities_bst.py | 8 ++++----
1212 utils/lexbor/lexbor/LXB.py | 2 +-
13- 5 files changed, 17 insertions(+), 12 deletions(-)
13+ 5 files changed, 21 insertions(+), 12 deletions(-)
1414
1515diff --git a/source/lexbor/core/sbst.h b/source/lexbor/core/sbst.h
16- index b0fbc54..6a57835 100644
16+ index b0fbc54..15a1d40 100644
1717--- a/source/lexbor/core/sbst.h
1818+++ b/source/lexbor/core/sbst.h
19- @@ -15,16 +15,21 @@ extern "C" {
19+ @@ -15,16 +15,25 @@ extern "C" {
2020
2121 #include "lexbor/core/base.h"
2222
23- + #if __has_attribute(nonstring) && defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 15
24- + # define LXB_NONSTRING __attribute__((nonstring))
23+ + #ifdef __has_attribute
24+ + # if __has_attribute(nonstring) && defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 15
25+ + # define LXB_NONSTRING __attribute__((nonstring))
26+ + # else
27+ + # define LXB_NONSTRING
28+ + # endif
2529+ #else
2630+ # define LXB_NONSTRING
2731+ #endif
0 commit comments