Max Moiseev
ddcd8d324a
Merge pull request #20243 from arguiot/patch-1
...
Updated SwiftPrivate.swift using String Interpolation
2018-11-06 14:49:15 -08:00
Maxim Moiseev
ca51626fd3
[stdlib] Move _stdlib_AtomicInt and friends out of the stdlib
2018-11-06 09:53:58 -08:00
Xiaodi Wu
049b89ce4d
Update stdlib/private/SwiftPrivate/SwiftPrivate.swift
...
Co-Authored-By: arguiot <arguiot@gmail.com >
2018-11-05 07:19:20 +08:00
Xiaodi Wu
977a9558ce
Update stdlib/private/SwiftPrivate/SwiftPrivate.swift
...
Co-Authored-By: arguiot <arguiot@gmail.com >
2018-11-05 07:19:12 +08:00
Xiaodi Wu
577e5534fd
Update stdlib/private/SwiftPrivate/SwiftPrivate.swift
...
Co-Authored-By: arguiot <arguiot@gmail.com >
2018-11-05 07:19:06 +08:00
Xiaodi Wu
f76be9b08f
Update stdlib/private/SwiftPrivate/SwiftPrivate.swift
...
Co-Authored-By: arguiot <arguiot@gmail.com >
2018-11-05 07:18:59 +08:00
Xiaodi Wu
dc9d2b5da9
Update stdlib/private/SwiftPrivate/SwiftPrivate.swift
...
Co-Authored-By: arguiot <arguiot@gmail.com >
2018-11-05 07:18:51 +08:00
Xiaodi Wu
3228c800a6
Update stdlib/private/SwiftPrivate/SwiftPrivate.swift
...
Co-Authored-By: arguiot <arguiot@gmail.com >
2018-11-05 07:18:46 +08:00
Xiaodi Wu
aede4b07ab
Update stdlib/private/SwiftPrivate/SwiftPrivate.swift
...
Co-Authored-By: arguiot <arguiot@gmail.com >
2018-11-05 07:18:42 +08:00
Arthur Guiot
117d7baab8
Fixed indentation to 2 spaces in SwiftPrivate.swift
2018-11-03 11:27:20 +08:00
Arthur Guiot
e6fea9e6ed
Fixed header in SwiftPrivate.swift
2018-11-02 23:46:19 +08:00
Arthur Guiot
b957a3b9d4
Fixed git error...
2018-11-02 23:44:34 +08:00
Arthur Guiot
08f5db8de5
Updated SwiftPrivate.swift using String Interpolation
...
I updated /stdlib/private/SwiftPrivate/SwiftPrivate.swift using String Interpolations, so the code is more readable and more "Swifty"
2018-11-02 23:32:28 +08:00
Ben Rimmington
2f326bcc88
[stdlib] Remove theGlobalMT19937
...
SwiftPrivate/PRNG.swift:
- currently uses `theGlobalMT19937`;
- previously used `arc4random` (see #1939 );
- is obsoleted by SE-0202: Random Unification.
2018-08-01 13:00:16 +01:00
Ben Cohen
4694310e51
[stdlib] Some minor cleanup ( #18130 )
...
* Remove case destructuring to _
* Remove some Iterator.Element
* Which idiot wrote this? Oh.
* Switch NibbleSort to just use default impls... shouldn't change perf
2018-07-21 17:29:57 -07:00
Xiaodi Wu
3528479730
Silence compiler warnings
2017-07-05 23:56:44 -05:00
Max Moiseev
27889c6376
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-06 15:54:44 -08:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
Max Moiseev
70b2343626
Merge branch 'master' into new-integer-protocols
2016-11-28 15:25:01 -08:00
practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
Maxim Moiseev
655bfe2a57
FIXMEs to change FixedWidthInteger to BinaryInteger in generic code
2016-07-29 13:31:21 +03:00
Maxim Moiseev
6dbb572038
toIntMax is gone
2016-07-29 13:31:21 +03:00
Maxim Moiseev
6ccc6ae490
SetAlgebra conformance errors
2016-07-29 13:31:21 +03:00
Andrew Trick
2e0dd7b046
Use UnsafeRawPointer in withArrayOfCStrings.
...
To obey the memory model.
2016-07-27 08:05:55 -07:00
rintaro ishizaki
6401324993
[stdlib] Apply tail style "where" clause to stdlib/{internal,private}
2016-06-02 12:01:21 +09:00
Dmitri Gribenko
cfea1a3f58
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-14 17:00:46 -07:00
Dmitri Gribenko
c52787e900
Merge commit '9cdbec13eee72feccfc5f8b987882a8c52e8107b' into swift-3-indexing-model
2016-04-14 16:23:53 -07:00
Dmitri Gribenko
10697f939f
Merge commit '510f29abf77e202780c11d5f6c7449313c819030' into swift-3-indexing-model
2016-04-14 13:45:27 -07:00
Jordan Rose
b5127aa747
Adjust private API withArrayOfCStrings.
...
Produce UnsafeMutablePointers instead of UnsafePointers, because that
matches the signatures of posix_spawn, execve, and similar.
2016-04-12 14:30:27 -07:00
Jordan Rose
bc83940301
Make pointer nullability explicit using Optional.
...
Implements SE-0055: https://github.com/apple/swift-evolution/blob/master/proposals/0055-optional-unsafe-pointers.md
- Add NULL as an extra inhabitant of Builtin.RawPointer (currently
hardcoded to 0 rather than being target-dependent).
- Import non-object pointers as Optional/IUO when nullable/null_unspecified
(like everything else).
- Change the type checker's *-to-pointer conversions to handle a layer of
optional.
- Use 'AutoreleasingUnsafeMutablePointer<NSError?>?' as the type of error
parameters exported to Objective-C.
- Drop NilLiteralConvertible conformance for all pointer types.
- Update the standard library and then all the tests.
I've decided to leave this commit only updating existing tests; any new
tests will come in the following commits. (That may mean some additional
implementation work to follow.)
The other major piece that's missing here is migration. I'm hoping we get
a lot of that with Swift 1.1's work for optional object references, but
I still need to investigate.
2016-04-11 20:06:38 -07:00
Manav Gabhawala
7928140f79
[SE-0046] Implements consistent function parameter labels by discarding extraneous parameter names and adding _ where necessary
2016-04-06 20:21:58 -04:00
Dmitri Gribenko
85fa40de89
New indexing model: uncomment SwiftPrivate.withArrayOfCStrings(), it builds now
2016-03-11 13:25:48 -08:00
Dmitri Gribenko
886d5a707c
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-03-09 20:51:38 -08:00
Max Moiseev
7fe6916bf6
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-07 12:10:47 -08:00
Hugh Bellamy
c1b25bb32f
[gardening] Remove double new lines from stdlib files
2016-03-05 15:44:54 +00:00
Shawn Erickson
fe42606062
[stdlib] - WIP moved aspects of ForwardIndex and BidirectionalIndex into their Collection equivalents
2016-03-04 07:40:59 -08:00
Jordan Rose
b319e3da32
stdlib: Adjust to insert(contentsOf:at:) and append(contentsOf:)
...
instead of insertContents(of:at:) and appendContents(of:),
originally insertContentsOf(_:at:) and appendContentsOf(_:)
per internal discussion.
2016-02-25 12:50:39 -08:00
Max Moiseev
4b9eab6288
appendContentsOf => appendContents(of:)
2016-02-22 18:02:04 -08:00
Max Moiseev
481bcabcba
[stdlib] API naming guidelines applied to split and join
...
- `separator` label for first argument of `split`
- `join` and related types are renamed to `joined`
2016-02-22 15:43:33 -08:00
Dmitri Gribenko
98561f6137
stdlib: joinWithSeparator(_:) => join(separator:)
2016-02-18 22:30:57 -08:00
Dmitri Gribenko
9bcd5a1056
Collection.length => .count
2016-01-22 18:41:19 -08:00
Max Moiseev
f51e708a8f
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-01-04 12:25:25 -08:00
Zach Panzarino
e3a4147ac9
Update copyright date
2015-12-31 23:28:40 +00:00
Max Moiseev
547b6501c9
Fixing the build after merge
2015-12-22 10:14:18 -08:00
Max Moiseev
2f7b64e475
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-21 12:02:13 -08:00
Pavel Mazurin
1dae128c83
Gets rid of for-loop deprecation compiler warnings in stdlib/private
2015-12-19 09:37:03 +01:00
Max Moiseev
5ccc258f71
func underestimatedLength() => var underestimatedLength { get }
2015-12-18 16:22:24 -08:00
Max Moiseev
b3fcc5fefa
underestimateLength() => underestimatedLength()
2015-12-18 16:22:24 -08:00
Dmitri Gribenko
73ce9ae7e9
Collection.count => .length
...
And other API changes that naturally fall out from this, like
Array(repeating:count:) => Array(repeating:length:).
2015-12-17 15:55:29 -08:00
Maxim Moiseev
1b6244f3ee
integer types renamed
2015-12-10 17:03:40 -08:00