1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-17 04:22:32 +03:00
Files
libssh2/docs/HACKING.md
Viktor Szakats 4f9e6e0bfb REUSE: add copyright headers to more files, and .gitignore updates
Also:
- rename a spellcheck file to match curl.
- editorconfig: fix line width.
- editorconfig: make it use UTF-8.
- editroconfig: apply some rules to all files.
- .gitignore: drop dupe, drop `.DS_Store` (not created by this repo),
   sort.
- .gitignore: add for tests executables.

Closes #1718
2025-10-13 13:35:25 +02:00

372 B

libssh2 source code style guide

  • 4 level indent

  • spaces-only (no tabs)

  • open braces on the if/for line:

    if (banana) {
        go_nuts();
    }
    
  • keep source lines shorter than 80 columns

  • See libssh2-style.el for how to achieve this within Emacs