Skip to content

Drop stdio.h include #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2025
Merged

Drop stdio.h include #15

merged 1 commit into from
Jul 17, 2025

Conversation

stephenmathieson
Copy link
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 Copilot AI review requested due to automatic review settings July 17, 2025 01:17
Copy link

@Copilot Copilot AI left a comment

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.

2 participants