Skip to content
Snippets Groups Projects
Commit 090fd3fe authored by ReinUsesLisp's avatar ReinUsesLisp
Browse files

buffer_cache: Return handles instead of pointer to handles

The original idea of returning pointers is that handles can be moved.
The problem is that the implementation didn't take that in mind and made
everything harder to work with. This commit drops pointer to handles and
returns the handles themselves. While it is still true that handles can
be invalidated, this way we get an old handle instead of a dangling
pointer.

This problem can be solved in the future with sparse buffers.
parent 7e4a132a
No related branches found
No related tags found
No related merge requests found
Showing
with 90 additions and 228 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment