Skip to content

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented Dec 16, 2025

Also:

  • sync newlines between the two threaded examples.

@github-actions github-actions bot added tests libcurl API CI Continuous Integration labels Dec 16, 2025
This reverts commit dd857b5.

pyspelling prefers 'multi-threading'
They are practically identical. Also the other one seems to be
missing the race condition fix.
Copy link

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 standardizes threading-related terminology across the codebase by adding badwords.txt patterns to enforce consistent hyphenation and applying those fixes throughout the code. The changes ensure that "thread-safe", "thread-unsafe", and "multi-thread" are consistently hyphenated across all documentation, comments, and examples.

Key Changes:

  • Added three regex patterns to .github/scripts/badwords.txt to catch unhyphenated threading terminology
  • Fixed 40+ instances of unhyphenated threading terms across source files, headers, and documentation
  • Synchronized newline formatting between threaded.c and threaded-ssl.c example files
  • Updated build configuration to reflect the renamed example file from multithread to threaded

Reviewed changes

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

Show a summary per file
File Description
.github/scripts/badwords.txt Added regex patterns to enforce hyphenation in "thread-safe", "thread-unsafe", and "multi-thread"
tests/server/util.c Fixed "multithreaded" → "multi-threaded"
m4/curl-functions.m4 Fixed "threadsafe" → "thread-safe" in multiple locations (comments and messages)
lib/vtls/gtls.c Fixed "thread safe" → "thread-safe" in comment
lib/memdebug.c Fixed "multithreaded" → "multi-threaded" in comment
lib/http_ntlm.c Fixed "thread safe" → "thread-safe" in comment
lib/hostip4.c Fixed "threadsafe" → "thread-safe" in multiple comments
lib/hostip.h Fixed "threadsafe" → "thread-safe" in comment
lib/config-os400.h Fixed "threadsafe" → "thread-safe" and "threadsafeness" → "thread-safeness"
lib/amigaos.c Fixed "thread safe" → "thread-safe" in comments
include/curl/easy.h Fixed "multithreaded" → "multi-threaded" in comment
docs/libcurl/opts/CURLOPT_DNS_USE_GLOBAL_CACHE.md Fixed "thread unsafe" → "thread-unsafe" in example comment
docs/libcurl/libcurl.md Fixed "thread safe" → "thread-safe" in multiple locations
docs/libcurl/libcurl-tutorial.md Fixed "thread safe" → "thread-safe"
docs/libcurl/libcurl-thread.md Fixed "thread safe" and "thread implementations" → "thread-safe" in multiple locations
docs/libcurl/curl_global_trace.md Fixed "thread unsafe" → "thread-unsafe"
docs/libcurl/curl_global_init.md Fixed "thread unsafe" → "thread-unsafe"
docs/libcurl/curl_global_cleanup.md Fixed "thread unsafe" → "thread-unsafe"
docs/examples/threaded.c Added blank lines for consistent formatting with threaded-ssl.c
docs/examples/threaded-ssl.c Fixed "thread safe" → "thread-safe" and added blank lines for formatting consistency
docs/examples/smooth-gtk-thread.c Fixed "multi threaded" → "multi-threaded" in description
docs/examples/http2-upload.c Fixed "thread safe" → "thread-safe" in comment
docs/examples/Makefile.inc Updated reference from "multithread.c" to "threaded.c"
docs/examples/.gitignore Updated reference from "multithread" to "threaded"
RELEASE-NOTES Updated reference from "multithread" to "threaded"

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

@vszakats vszakats closed this in 61273f5 Dec 16, 2025
@vszakats vszakats deleted the threadsafe branch December 16, 2025 20:27
vszakats added a commit that referenced this pull request Dec 16, 2025
After applying a recent fix made to `threaded.c` (formerly
`multithread.c`) to `threaded-ssl.c`, syncing and updating comments,
the two examples turned out to be identical except their test URLs.

Delete one of them to avoid duplication.

Also:
- examples/threaded: scope a variable.
- examples/threaded: merge comments from its deleted sibling.

Follow-up to 61273f5 #20001
Follow-up to 971e8d6 #19526 #19524

Closes #20002
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant