Skip to content

Drop stdio.h include#15

Merged
stephenmathieson merged 1 commit into
masterfrom
no-stdio-dep
Jul 17, 2025
Merged

Drop stdio.h include#15
stephenmathieson merged 1 commit into
masterfrom
no-stdio-dep

Conversation

@stephenmathieson

Copy link
Copy Markdown
Member

The sha1.c file includes stdio.h without seemingly using it for anyhing. It doesn't make sense for a hash library to use stdio and having that header included makes it harder to use the library in freestanding environment.

Drop the include to make it easier to use the library in freestanding projects.

Closes #13

The sha1.c file includes stdio.h without seemingly using it for anyhing.
It doesn't make sense for a hash library to use stdio and having that
header included makes it harder to use the library in freestanding
environment.

Drop the include to make it easier to use the library in freestanding
projects.
Copilot AI review requested due to automatic review settings July 17, 2025 01:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request removes an unused stdio.h include from the SHA1 hash library implementation to improve compatibility with freestanding environments where standard I/O functionality is not available.

  • Removes the stdio.h include directive that was not being used by the hash library
  • Improves library usability in embedded/freestanding environments where stdio is unavailable

@stephenmathieson stephenmathieson merged commit d651812 into master Jul 17, 2025
2 checks passed
@stephenmathieson stephenmathieson deleted the no-stdio-dep branch July 17, 2025 01:18
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.

3 participants