Skip to content

tool_formparse: polish error message + make two functions static#21510

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/formparse-static
Closed

tool_formparse: polish error message + make two functions static#21510
bagder wants to merge 2 commits into
masterfrom
bagder/formparse-static

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented May 6, 2026

No description provided.

@github-actions github-actions Bot added the MIME label May 6, 2026
@bagder bagder marked this pull request as ready for review May 6, 2026 06:53
Copy link
Copy Markdown

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 PR tightens the encapsulation of curl tool form parsing internals by making stdin mime callbacks file-local and improves the clarity of the related stdin read error message.

Changes:

  • Make tool_mime_stdin_read() and tool_mime_stdin_seek() static in tool_formparse.c.
  • Remove the corresponding declarations from tool_formparse.h since they are no longer part of the header’s API surface.
  • Update the stdin read failure warning message to be more explicit.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/tool_formparse.h Removes now-internal callback declarations from the public header surface.
src/tool_formparse.c Makes stdin callbacks static and updates the warning message; removes unnecessary callback casts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bagder bagder closed this in 2168720 May 6, 2026
@bagder bagder deleted the bagder/formparse-static branch May 6, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants