aboutsummaryrefslogtreecommitdiff
path: root/docs/CODE_STYLE.md
AgeCommit message (Collapse)Author
2020-05-15source cleanup: remove all custom typedef structsDaniel Stenberg
- Stick to a single unified way to use structs - Make checksrc complain on 'typedef struct {' - Allow them in tests, public headers and examples - Let MD4_CTX, MD5_CTX, and SHA256_CTX typedefs remain as they actually typedef different types/structs depending on build conditions. Closes #5338
2019-05-16docs: Markdown and misc improvements [ci skip]Viktor Szakats
Approved-by: Daniel Stenberg Closes #3896
2018-05-14CODE_STYLE: mention return w/o parens, but sizeof withDaniel Stenberg
... and remove the github markdown syntax so that it renders better on the web site. Also, don't use back-ticks inlined to allow the CSS to highlight source code better.
2016-11-09CODE_STYLE.md: link to INTERNALS.md correctlyDaniel Stenberg
2016-10-18s/cURL/curlDaniel Stenberg
The tool was never called cURL, only the project. But even so, we have more and more over time switched to just use lower case.
2016-09-12CODE_STYLE: fix long-line guidelineJay Satiro
- Change maximum allowed line length from 80 to 79.
2016-09-11CODE_STYLE: add column alignment sectionJay Satiro
Note that since the added examples are for column alignment I had to encapsulate with ~~~c markdown to preserve their alignment.
2016-04-09CODE_STYLE: Added ternary operator example to 'Space around operators'Steve Holme
Following conversation on the libcurl mailing list.
2016-03-22CODE_STYLE: indend example codeDaniel Stenberg
... to make it look nicer in markdown outputa
2016-03-20CODE_STYLE: Use boolean conditionsSteve Holme
Rather than use TRUE, FALSE, NULL, 0 or != 0 in if/while conditions. Additionally, corrected some example code to adhere to the recommended coding style.
2016-03-14CODE_STYLE: Space around operatorsDaniel Stenberg
As just discussed on the mailing list, also document how we prefer spacing in expressions.
2016-03-14CODE_STYLE: add example for indent style as wellDaniel Stenberg
2016-03-14CODE_STYLE: mention braces for functions tooDaniel Stenberg
2016-03-14CODE_STYLE: initial versionDaniel Stenberg
Ripped out from CONTRIBUTE into its own document, but also extended from there.