aboutsummaryrefslogtreecommitdiffstats
path: root/docs/styleguide.md
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-10-15 09:03:05 +0200
committerDaniel Lange <DLange@git.local>2021-10-15 09:03:05 +0200
commitc733b3f6130c70e100c21c4f77d8fd48db80622c (patch)
treefac3278283232938169f928fd3d3ab641d5c6c8e /docs/styleguide.md
parent4582ae87a0a0675d0756b93dcda052c533cd2c96 (diff)
parent30ce3b4c264c51c98f280e88e23792ff7deb2317 (diff)
downloaddebian_htop-c733b3f6130c70e100c21c4f77d8fd48db80622c.tar.gz
debian_htop-c733b3f6130c70e100c21c4f77d8fd48db80622c.tar.bz2
debian_htop-c733b3f6130c70e100c21c4f77d8fd48db80622c.zip
Update upstream source from tag 'upstream/3.1.1'
Update to upstream version '3.1.1' with Debian dir c4b5e8f6455cfd05bffdaed787e2ebf5c7d9a632
Diffstat (limited to 'docs/styleguide.md')
-rw-r--r--docs/styleguide.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/styleguide.md b/docs/styleguide.md
index d8fe264..18c53af 100644
--- a/docs/styleguide.md
+++ b/docs/styleguide.md
@@ -45,8 +45,8 @@ Example:
#define HEADER_FILENAME
/*
htop - Filename.h
-(C) 2020 htop dev team
-Released under the GNU GPLv2, see the COPYING file
+(C) 2021 htop dev team
+Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
```
@@ -54,6 +54,8 @@ in the source distribution for its full text.
Import and use of headers
-------------------------
+We use the GPLv2+ as a shorthand indication that we release `htop` under the GNU Public license version 2 but are totally fine with users opting to apply the "any later version" clause.
+
Every file should import headers for all symbols it's using.
Thus when using a symbol from a header, even if that symbol is already imported by something else you use, you should declare an import for that header.
Doing so allows for easier restructuring of the code when things need to be moved around.
@@ -194,7 +196,7 @@ They can be a great asset to structure the flow of a method.
If you want to automate formatting your code, the following command gives you a good baseline of how it should look:
```bash
-astyle -r -xb -s3 -p -xg -c -k1 -W1 \*.c \*.h
+astyle -r -xb -s3 -p -xg -c -k1 -W1 -H \*.c \*.h
```
Working with System APIs

© 2014-2024 Faster IT GmbH | imprint | privacy policy