-
Notifications
You must be signed in to change notification settings - Fork 419
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
[SyntaxText] Always use memcmp #2617
base: main
Are you sure you want to change the base?
Conversation
@swift-ci Please test |
@@ -25,6 +27,8 @@ import Darwin | |||
import Glibc | |||
#elseif canImport(Musl) | |||
import Musl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case anyone is wondering if Musl
has memcmp: http://git.musl-libc.org/cgit/musl/tree/include/string.h#n30 http://git.musl-libc.org/cgit/musl/tree/src/string/memcmp.c
🤔 https://ci.swift.org/job/swift-syntax-PR-macOS/4092/
|
@swift-ci Please test macOS |
@swift-ci Please test |
@swift-ci Please test Windows |
Windows failure is probably because |
@swift-ci Please test |
@swift-ci Please test |
@swift-ci Please test Windows |
`compareMemory(_:_:_:)` was to abstract `memcmp` or `Collection.elementsEqual(_:)` depending on the platform or build settings. Now that we consistently imports "platform" system module, so `memcmp` is reliably available.
swiftlang/swift#73224 |
swiftlang/swift#73224 |
2 similar comments
swiftlang/swift#73224 |
swiftlang/swift#73224 |
compareMemory(_:_:_:)
was to abstractmemcmp
orCollection.elementsEqual(_:)
depending on the platform or build settings. Now that we consistently imports "platform" system module, somemcmp
is reliably available.