-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean and reorganize OffsetString
and StringPool
#1137
Conversation
fb5c429
to
8806c25
Compare
fb83a62
to
a9818a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hpp->cpp changes all look good. What is the motivation for changing StringPool::offset_t
and OffsetString::offset_t
to entity::position_t
everywhere?
To simplify, and because using |
There might be a reason the separate types were originally created, maybe @willdealtry can weigh in? |
I don't think it hugely matters. I wrote the string pool in the first or second week, it's possible that position_t didn't exist at that point. The purpose is similar enough (it's an offset in the buffer) that I think we can just use one. |
cpp
filesOffsetString::offset_t
andStringPool::offset_t
in favor ofentity::position_t
(same thing, different names). This will avoid includingoffset_string.hpp
andstring_pool.hpp
just for these whiletypes.hpp
is already theretypes.hpp
(to be done in an upcoming PR)