Skip to content

Minor touchups#1

Open
ebblake wants to merge 4 commits intopvachon:mainfrom
ebblake:main
Open

Minor touchups#1
ebblake wants to merge 4 commits intopvachon:mainfrom
ebblake:main

Conversation

@ebblake
Copy link
Copy Markdown

@ebblake ebblake commented Jan 23, 2023

I found your implementation of a WAVL tree, and noticed a couple of things worth cleaning up while I was learning from it. The patches are progressively more involved; I'm okay if you decide patches later in the series are too much.

Correct a doc typo, as well as some atypical code formatting.
There is no need to check whether z is null when we know that z was
just assigned to a non-NULL x->parent.
Checking the code is as simple as running the just-built test binary.
Rearrange some typedefs so that a user need only read the public
wavltree.h rather than also needing to read the wavltree_priv.h in
order to know how to integrate a tree into their code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant