Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tree-wide: fix typo | Yu Watanabe | 2022-06-10 | 1 | -1/+1 |
| | |||||
* | CODING_STYLE: say that inet_ntop() is a no no | Zbigniew Jędrzejewski-Szmek | 2022-06-06 | 1 | -0/+5 |
| | |||||
* | docs: document how we usually define enums | Lennart Poettering | 2022-03-14 | 1 | -0/+40 |
| | |||||
* | docs: document we use C11 with GNU extensions now | Lennart Poettering | 2022-03-14 | 1 | -1/+15 |
| | | | | Follow-up for: #22711 | ||||
* | Update CODING_STYLE.md | bearhoney | 2022-02-07 | 1 | -1/+1 |
| | | | Fixed typo. | ||||
* | docs: fix typos and improve language | Erik Sjölund | 2022-01-26 | 1 | -1/+1 |
| | | | | | Fix typos and improve the language by adding a few commas and a missing word. | ||||
* | docs: mention RET_NERRNO() in CODING_STYLE.md | Lennart Poettering | 2021-11-16 | 1 | -0/+19 |
| | |||||
* | Change gendered terms to be gender-neutral (#21325) | Emily Gonyer | 2021-11-12 | 1 | -1/+1 |
| | | | Some typos are also fixed. | ||||
* | CODING_STYLE: allow joined variable declarations and function calls | Zbigniew Jędrzejewski-Szmek | 2021-11-03 | 1 | -9/+18 |
| | | | | | | | | | … but only for a single variable. The guidelines already allowed declaring variables at the point of initialization. But not making a function call to do that. Let's allow that now. The existing style of declaring and initializing seperate is still allowed, and whatever makes most sense should be used. | ||||
* | doc: document that alloca_safe() and friends are the APIs to use | Lennart Poettering | 2021-10-14 | 1 | -11/+19 |
| | |||||
* | docs: add spdx tags to all .md files | Zbigniew Jędrzejewski-Szmek | 2021-09-27 | 1 | -0/+1 |
| | | | | | | I have no idea if this is going to cause rendering problems, and it is fairly hard to check. So let's just merge this, and if it github markdown processor doesn't like it, revert. | ||||
* | docs: add coding style example | Anders Wenhaug | 2021-06-24 | 1 | -0/+8 |
| | | | | Add example of how to structure else-blocks following a multiline block. | ||||
* | docs: update coding style a bit | Zbigniew Jędrzejewski-Szmek | 2021-06-11 | 1 | -13/+20 |
| | | | | | | | | | Say that r should be declared at the top of the function. Don't say that fixed buffers result in truncation, right after saying that they must only be used if size is known. Adjust order of examples to be consistent. | ||||
* | docs/CODING_STYLE: fix some typos | Štěpán Němec | 2021-06-10 | 1 | -4/+4 |
| | |||||
* | docs: add ARCHITECTURE.md with code map | Luca Boccassi | 2021-06-03 | 1 | -25/+0 |
| | | | | | Initial and coarse version of a code map, useful for people getting started and looking at the repository for the first time. | ||||
* | docs: more markup | Zbigniew Jędrzejewski-Szmek | 2021-03-11 | 1 | -5/+5 |
| | |||||
* | docs: document not to use FILENAME_MAX in our codebase | Lennart Poettering | 2021-03-08 | 1 | -0/+6 |
| | | | | It's a weird thing. Let's explain why. | ||||
* | docs: update coding style for `return (void) func(...)` | Anita Zhang | 2020-10-27 | 1 | -0/+8 |
| | | | | | Seems that people think it's useful for brevity so make it explicit in the CODING_STYLE. | ||||
* | docs: some coding style updates | Lennart Poettering | 2020-10-19 | 1 | -8/+33 |
| | | | | | | | | | | Primarily: 1. Mention that we prefer if return parameters carry "ret_" as prefix in their name 2. Clarify that debug-level logging is always OK, and irrelevant to when deciding whether a function is logging or non-logging. | ||||
* | coding style: document how to break a function declaration | Luca Boccassi | 2020-08-20 | 1 | -0/+11 |
| | |||||
* | docs: spelling fixes | Joerg Behrmann | 2020-08-04 | 1 | -2/+2 |
| | |||||
* | fix typo | Tomer Shechner | 2020-07-07 | 1 | -1/+1 |
| | | | | | I was thoroughly reading your nice coding style page and found out that you guys missed an 's'. 😁 | ||||
* | tree-wide: use "hostname" spelling everywhere | Zbigniew Jędrzejewski-Szmek | 2020-04-21 | 1 | -1/+1 |
| | | | | | | | | It's not that I think that "hostname" is vastly superior to "host name". Quite the opposite — the difference is small, and in some context the two-word version does fit better. But in the tree, there are ~200 occurrences of the first, and >1600 of the other, and consistent spelling is more important than any particular spelling choice. | ||||
* | docs: make sure there's only one # markdown header in each file | Lennart Poettering | 2019-12-13 | 1 | -1/+1 |
| | | | | | | | @bertob wants us to be strict here, and only have one "#" header per markdown file, and use "##" (or "###", …) for all others. Interestingly, we mostly got this right already, but this fixes a few cases where this wasn't correct. | ||||
* | docs: make it pretty | Tobias Bernard | 2019-12-11 | 1 | -0/+1 |
| | | | | | | | Add custom Jekyll theme, logo, webfont and .gitignore FIXME: the markdown files have some H1 headers which need to be replaced with H2 | ||||
* | docs: place all our markdown docs in rough categories | Lennart Poettering | 2019-12-11 | 1 | -0/+1 |
| | |||||
* | docs: fix typo | Simon Schricker | 2019-07-30 | 1 | -1/+1 |
| | |||||
* | docs: fix typos and duplicate words | Michael Prokop | 2019-06-27 | 1 | -1/+1 |
| | | | | | | | | | s/and and/and/ s/explicity/explicitly/ s/that that/that/ s/the the/the/ s/is is/it is/ s/overriden/overridden/ | ||||
* | some CODING_STYLE additions | Lennart Poettering | 2019-06-25 | 1 | -0/+13 |
| | |||||
* | CODING_STYLE: rename "Others" section to "Code Organization and Semantics" | Lennart Poettering | 2019-04-12 | 1 | -37/+33 |
| | | | | | This is a bit of a grabbag, but it's the best I could come up with without having lots of single-item sections. | ||||
* | CODING_STYLE: split out section about runtime behaviour | Lennart Poettering | 2019-04-12 | 1 | -31/+33 |
| | |||||
* | CODING_STYLE: add section about C constructs use | Lennart Poettering | 2019-04-12 | 1 | -74/+72 |
| | |||||
* | CODING_STYLE: split out section about deadlocks | Lennart Poettering | 2019-04-12 | 1 | -8/+9 |
| | |||||
* | CODING_STYLE: split out section about logging | Lennart Poettering | 2019-04-12 | 1 | -28/+29 |
| | |||||
* | CODING_STYLE: export section about exporting symbols | Lennart Poettering | 2019-04-12 | 1 | -17/+19 |
| | |||||
* | CODING_STYLE: split out section about destructors | Lennart Poettering | 2019-04-12 | 1 | -23/+25 |
| | |||||
* | CODING_STYLE: split out section about command line parsing | Lennart Poettering | 2019-04-12 | 1 | -12/+13 |
| | |||||
* | CODING_STYLE: Split out section about error handling | Lennart Poettering | 2019-04-12 | 1 | -52/+52 |
| | |||||
* | CODING_STYLE: split out section about commiting to git | Lennart Poettering | 2019-04-12 | 1 | -7/+8 |
| | |||||
* | CODING_STYLE: split out section about file descriptors | Lennart Poettering | 2019-04-12 | 1 | -23/+24 |
| | |||||
* | CODING_STYLE: split out section about memory allocations | Lennart Poettering | 2019-04-12 | 1 | -32/+32 |
| | |||||
* | CODING_STYLE: move out section about Types | Lennart Poettering | 2019-04-12 | 1 | -35/+35 |
| | |||||
* | CODING_STYLE: add section about how to reference specific concepts | Lennart Poettering | 2019-04-12 | 1 | -0/+2 |
| | |||||
* | CODING_STYLE: split out bits about Formatting into its own section | Lennart Poettering | 2019-04-12 | 1 | -49/+52 |
| | | | | (And, for now, add a section "Other" to separate the rest of the stuff) | ||||
* | CODING_STYLE: add a section about functions not to use | Lennart Poettering | 2019-04-12 | 1 | -37/+38 |
| | | | | | Let's add sections to the document. First off, let's add one about functions not to use. | ||||
* | CODING_STYLE: adjust indentation rules, and add note about config loading | Zbigniew Jędrzejewski-Szmek | 2019-04-12 | 1 | -3/+5 |
| | |||||
* | CODING_STYLE: fix grammar mistake | Chris Morin | 2019-01-17 | 1 | -2/+2 |
| | |||||
* | docs: add a "front matter" snippet to our markdown pages | Filipe Brandenburger | 2019-01-02 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | It turns out Jekyll (the engine behind GitHub Pages) requires that pages include a "Front Matter" snippet of YAML at the top for proper rendering. Omitting it will still render the pages, but including it opens up new possibilities, such as using a {% for %} loop to generate index.md instead of requiring a separate script. I'm hoping this will also fix the issue with some of the pages (notably CODE_OF_CONDUCT.html) not being available under systemd.io Tested locally by rendering the website with Jekyll. Before this change, the *.md files were kept unchanged (so not sure how that even works?!), after this commit, proper *.html files were generated from it. | ||||
* | coding style: reduce text width to 109 characters | Zbigniew Jędrzejewski-Szmek | 2018-12-08 | 1 | -1/+1 |
| | | | | | | | | Patches are shown on github with a fixed width (no matter how wide the window is). When line numbers are high (we have some files with 5 digit line numbers), the diff does not fit, and horizontal scrolling must be used when viewing the patch. This is super annoying. Let's reduce the width a bit. I think 109 is still very wide, but at least the github issue should be alleviated. | ||||
* | docs: uppercase the title of our Markdown docs | Lennart Poettering | 2018-11-29 | 1 | -1/+1 |
| |