stdlib: remove Word and UWord

These types are leftovers from the early pre-1.0 times when Int and UInt
were always 64-bit on all platforms.  They serve no useful purpose
today.  Int and UInt are defined to be word-sized and should be used
instead.

rdar://18693488

Swift SVN r30564
This commit is contained in:
Dmitri Hrybenko
2015-07-24 05:01:32 +00:00
parent ef553f47cf
commit f5de8757e4
58 changed files with 1073 additions and 1080 deletions

View File

@@ -68,7 +68,7 @@ public struct ${Self}<Memory>
///
/// This is a fundamentally unsafe conversion.
@transparent
public init(bitPattern: Word) {
public init(bitPattern: Int) {
self._rawValue = Builtin.inttoptr_Word(bitPattern._builtinWordValue)
}
@@ -76,7 +76,7 @@ public struct ${Self}<Memory>
///
/// This is a fundamentally unsafe conversion.
@transparent
public init(bitPattern: UWord) {
public init(bitPattern: UInt) {
self._rawValue = Builtin.inttoptr_Word(bitPattern._builtinWordValue)
}