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

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

Conversation

@bagder

@bagder bagder commented May 6, 2026

Copy link
Copy Markdown
Member

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

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 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
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
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