Skip to content
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

qtreetbl improvements #107

Merged
merged 73 commits into from
Jul 27, 2023
Merged

qtreetbl improvements #107

merged 73 commits into from
Jul 27, 2023

Conversation

wolkykim
Copy link
Owner

@wolkykim wolkykim commented Jul 21, 2023

Working branch for qtreetbl update:

  • Address tree property violation cases
  • Improved unit test
  • Complete qtreetbl_debug() function that draws tree structure.
  • Code style and comment update

@wolkykim
Copy link
Owner Author

@strohsnow can you please review this change?

Copy link
Collaborator

@strohsnow strohsnow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good, I'll start working on segfault unit test

src/containers/qtreetbl.c Outdated Show resolved Hide resolved
print_node(obj->right, out, &branch, true);

print_branch(prev, out);
if (prev != NULL) {
fprintf(out, "%s", (right) ? " ┌──" : " └──");
fprintf(out, "%s%s", right ? "┌──" : "└──", obj->red ? "[" : "─");
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now no leading space at all 👍

Copy link
Collaborator

@strohsnow strohsnow Jul 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think now it looks cleaner

@wolkykim wolkykim merged commit 4ba0ee4 into master Jul 27, 2023
@wolkykim
Copy link
Owner Author

Closing the branch following the merge. Please work on a new branch for upcoming changes

@wolkykim wolkykim deleted the tree branch July 27, 2023 00:58
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.

2 participants