Skip to content

tool_urlglob: polish, cleanups, improvements#18198

Closed
bagder wants to merge 2 commits intomasterfrom
bagder/glob-internalerror
Closed

tool_urlglob: polish, cleanups, improvements#18198
bagder wants to merge 2 commits intomasterfrom
bagder/glob-internalerror

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented Aug 6, 2025

  • assert instead of printing "internal error" for unlikely events
  • avoid allocating the main struct
  • convert globerror() from macro to function
  • renames to shorter and clearer names
  • malloc + copy => memdup0
  • change buffer handling to dynbuf
  • realloc to handle more globs, but use less memory for few

- assert instead of printing "internal error" for unlikely events
- avoid allocating the main struct
- convert globerror() from macro to function
- renames to shorter and clearer names
- malloc + copy => memdup0
- change buffer handling to dynbuf
- realloc to handle more globs, but use less memory for few
@bagder bagder marked this pull request as ready for review August 6, 2025 06:34
@bagder bagder closed this in 034612c Aug 6, 2025
@bagder bagder deleted the bagder/glob-internalerror branch August 6, 2025 06:48
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.

1 participant