-
Notifications
You must be signed in to change notification settings - Fork 177
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
Splitting source file/s for better readability #89
Comments
I will consider it, but you would still have 5K lines of code to slog through. |
By the way, the .spec file is a build file, not documentation. It needs to be with the source. |
Even moving documentation and all that stuff, out of And yes, You're right about .spec file, I didn't register that. |
Well, actually yarn.c is a separate file already (for threading), but I kinda agree it's a bit intimidating to read through pigz.c for the first time. It may be beneficial from the educational perspective to divide pigz.c into smaller chunks. |
I kindly suggest to split source file (
pigz.c
) into separate files for better readability and, let's call it compatibility, with *nix source convention. Split in two categories:documentation and source itself.
By documentation I mean license, change log, to-do list, and stuff, that resides in
pigz.c
, and by source I mean splitting it into smaller, categorized pieces. I was thinking about three, maybe four:I actually attempted to do that with documentation; it can be seen here (it's emporary tar.bz2 ball), and out looks like this:
With
pigz.c
didn't dare to be honest, but I would say that scrolling through 5k lines of code is difficult and tiresome.The text was updated successfully, but these errors were encountered: