Skip to content

src: formatting - #1935

Closed
vszakats wants to merge 6 commits into
libssh2:masterfrom
vszakats:leadunderscore1
Closed

vszakats wants to merge 6 commits into
libssh2:masterfrom
vszakats:leadunderscore1

Conversation

@vszakats

@vszakats vszakats commented May 12, 2026 •

Copy link
Copy Markdown
Member
  • move return type inline with the declaration.
    (for statics and public APIs)
  • move LIBSSH2_API attribute to distinct lines in definitions.
    (This attribute is redundant here and can be deleted in a future commit)
  • delete copy of function name from function top comments.
  • os400qc3: drop 'libssh2' prefixes for statics.
  • move an author name from comment to AUTHORS.
  • misc formatting fixes along the way.

https://github.com/libssh2/libssh2/pull/1935/files?w=1

@vszakats vszakats closed this in 6ffb963 May 12, 2026
@vszakats
vszakats deleted the leadunderscore1 branch May 12, 2026 23:10
vszakats added a commit that referenced this pull request May 13, 2026
- apply manually selected clang-format fixes.
- apply manual formatting fixes.
- move return type inline with the declaration.
  (for private APIs)
- os400qc3: fix missed `_libssh2_dh_ctx` -> `libssh2_dh_ctx`.
  Follow-up to 689b202 #1923
- os400qc3: drop redundant line-continuation backslashes.
- delete copy of function name from function top comments.
- move literal to right hand side in a couple of comparisons.
- drop redundant `extern` keywords.

Follow-up to 6ffb963 #1935

Closes #1936
vszakats added a commit that referenced this pull request Jun 1, 2026
vszakats added a commit that referenced this pull request Jun 3, 2026
Move `LIBSSH2_API` inline, too.

Also:
- fix missing argument names from a function typedef.
- fix pointer argument formatting.

Follow-up to e85ce25 #1960
Follow-up to 6ffb963 #1935

Closes #1964
vszakats added a commit that referenced this pull request Jun 4, 2026
Also:
- drop redundant parentheses from
  `LIBSSH2_USERAUTH_KBDINT_RESPONSE_FUNC()` arg.
  Follow-up to b6f307d #1898

Follow-up to f0279a6 #1964
Follow-up to e85ce25 #1960
Follow-up to 1db4083 #1938
Follow-up to 63e5948 #1936
Follow-up to 6ffb963 #1935

Closes #1968
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant