-
Notifications
You must be signed in to change notification settings - Fork 11
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
Normalise whitespace in all C code #34
Comments
Actually, I just checked, and that would change a lot of code. We should stay close to the original indentation, which assumes tab = 8 spaces, indents with tab and aligns with a mixture of both (tabs first, then spaces). |
There are other inconsistencies in formatting. We should prepare a document with coding style hints. |
Just for fun I tried "indent -gnu, -linux, -kr, -orig". ccode.c does seem to resemble to any of them. |
I have started a document on coding style and formatting/indentation guidelines in the wiki. These are gradually assembled from findings in the aldor source code. I am trying to create a well-founded set of guidelines in which people can find an answer to every question. Eventually, I will also want to enforce some of these guidelines (especially naming conventions). It's a lot of work to write all these things down, so if someone finds more guidelines, feel free to edit the wiki. Also, I welcome feedback on the current guidelines, as well as ideas for additional guidelines that the current codebase does not follow. (E.g. the header inclusion order guideline is not followed anywhere, yet.) |
On Thu, Aug 1, 2013 at 12:59 AM, Pippijn van Steenhoven <
There probably ought to be a note that '#if's should only exist in a very Last aside - assert should be used more enthusiastically throughout.. Peter |
In general, tabs are used for both indentation and alignment, but sometimes spaces are used for indentation, sometimes a mixture is used. We should normalise this to something. I would suggest tabs for indentation and spaces for alignment, so it looks good with any tab-width setting.
The text was updated successfully, but these errors were encountered: