diff options
| author | Maxime Coste <mawww@kakoune.org> | 2024-12-20 22:09:32 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2025-01-22 08:18:32 +1100 |
| commit | 2856b99e0914cc7a659977f2b33308cb5b4c9bb7 (patch) | |
| tree | ed643f3751447ec3e65deeb228c3f826627d6174 /src/shared_string.hh | |
| parent | 28a82b06b017e3771d0efe97bfa9bd2d1f06db91 (diff) | |
WIP linked list shared strings
Diffstat (limited to 'src/shared_string.hh')
| -rw-r--r-- | src/shared_string.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared_string.hh b/src/shared_string.hh index 79c34830..2d39971a 100644 --- a/src/shared_string.hh +++ b/src/shared_string.hh @@ -15,6 +15,8 @@ struct StringData : UseMemoryDomain<MemoryDomain::SharedString> { uint32_t refcount; const int length; + StringData* prev = nullptr; + StringData* next = nullptr; [[gnu::always_inline]] const char* data() const { return reinterpret_cast<const char*>(this + 1); } |
