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

Reformatting code #29

Merged
merged 63 commits into from
Oct 7, 2016
Merged

Reformatting code #29

merged 63 commits into from
Oct 7, 2016

Conversation

FSMaxB
Copy link
Collaborator

@FSMaxB FSMaxB commented Sep 27, 2016

This is a work in progress of reformatting the code, see #24.

Not ready for merging yet.

@FSMaxB FSMaxB self-assigned this Sep 27, 2016
{
/* three bytes, encoding 1110xxxx 10xxxxxx 10xxxxxx */
len = 3;
ptr2 += len;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, that looks like I introduced a bug here.

@FSMaxB
Copy link
Collaborator Author

FSMaxB commented Sep 28, 2016

When I'm done, I need to find a way to compare the code before and after formatting if it is identical. I already found one bug I introduced, so I need to ensure there aren't more.

@FSMaxB
Copy link
Collaborator Author

FSMaxB commented Sep 28, 2016

Maybe I can just compile it (without machine code) and diff the assembly.

@FSMaxB FSMaxB force-pushed the reformatting branch 2 times, most recently from e92d73f to 949ff0d Compare September 28, 2016 16:19
@FSMaxB
Copy link
Collaborator Author

FSMaxB commented Sep 28, 2016

Compiling to assembly and doing a diff works perfectly and I found another bug that way.

@FSMaxB FSMaxB changed the title [WIP] Reformatting code Reformatting code Sep 30, 2016
@FSMaxB
Copy link
Collaborator Author

FSMaxB commented Sep 30, 2016

@DaveGamble: If there's no objection you can merge it.

@FSMaxB FSMaxB mentioned this pull request Sep 30, 2016
@FSMaxB
Copy link
Collaborator Author

FSMaxB commented Oct 2, 2016

I rebased this branch on top of the new fix for #30 .

@FSMaxB
Copy link
Collaborator Author

FSMaxB commented Oct 7, 2016

Given the time that passed where people had time to complain, I'll merge this.

@FSMaxB FSMaxB merged commit f0fc6c5 into master Oct 7, 2016
@FSMaxB FSMaxB deleted the reformatting branch October 7, 2016 14:11
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