stdlib: underscore-prefix MaxBuiltinIntegerType and MaxBuiltinFloatType

Swift SVN r20388
This commit is contained in:
Dmitri Hrybenko
2014-07-23 11:40:45 +00:00
parent 37cd51b76a
commit 2b5d0166c5
4 changed files with 8 additions and 8 deletions

View File

@@ -969,9 +969,9 @@ ERROR(no_CharacterLiteralType_found,sema_tce,none,
ERROR(no_StringLiteralType_found,sema_tce,none,
"standard library error: StringLiteralType not defined", ())
ERROR(no_MaxBuiltinIntegerType_found,sema_tce,none,
"standard library error: MaxBuiltinIntegerType is not properly defined", ())
"standard library error: _MaxBuiltinIntegerType is not properly defined", ())
ERROR(no_MaxBuiltinFloatType_found,sema_tce,none,
"standard library error: MaxBuiltinFloatType is not properly defined", ())
"standard library error: _MaxBuiltinFloatType is not properly defined", ())
ERROR(no_member_of_module,sema_tce,none,
"module %0 has no member named %1", (Identifier, DeclName))

View File

@@ -59,14 +59,14 @@ IDENTIFIER_WITH_NAME(EqualsOperator, "==")
IDENTIFIER_WITH_NAME(NotEqualsOperator, "!=")
// Built-in identifiers
IDENTIFIER(MaxBuiltinIntegerType)
IDENTIFIER_WITH_NAME(MaxBuiltinIntegerType, "_MaxBuiltinIntegerType")
IDENTIFIER(IntegerLiteralType)
IDENTIFIER_WITH_NAME(BoolValue, "boolValue")
IDENTIFIER_WITH_NAME(ConvertFromNilLiteral, "convertFromNilLiteral")
IDENTIFIER_WITH_NAME(ConvertFromIntegerLiteral, "convertFromIntegerLiteral")
IDENTIFIER_WITH_NAME(ConvertFromBuiltinIntegerLiteral,
"_convertFromBuiltinIntegerLiteral")
IDENTIFIER(MaxBuiltinFloatType)
IDENTIFIER_WITH_NAME(MaxBuiltinFloatType, "_MaxBuiltinFloatType")
IDENTIFIER(FloatLiteralType)
IDENTIFIER_WITH_NAME(ConvertFromFloatLiteral, "convertFromFloatLiteral")
IDENTIFIER_WITH_NAME(ConvertFromBuiltinFloatLiteral,

View File

@@ -178,7 +178,7 @@ public protocol NilLiteralConvertible {
public protocol _BuiltinIntegerLiteralConvertible {
class func _convertFromBuiltinIntegerLiteral(
value: MaxBuiltinIntegerType) -> Self
value: _MaxBuiltinIntegerType) -> Self
}
public protocol IntegerLiteralConvertible {
@@ -188,7 +188,7 @@ public protocol IntegerLiteralConvertible {
public protocol _BuiltinFloatLiteralConvertible {
class func _convertFromBuiltinFloatLiteral(
value: MaxBuiltinFloatType) -> Self
value: _MaxBuiltinFloatType) -> Self
}
public protocol FloatLiteralConvertible {

View File

@@ -46,8 +46,8 @@ public typealias StringLiteralType = String
// Rationale: 1024 bits are enough to represent the absolute value of min/max
// IEEE Binary64, and we need 1 bit to represent the sign. Instead of using
// 1025, we use the next round number -- 2048.
public typealias MaxBuiltinIntegerType = Builtin.Int2048
public typealias MaxBuiltinFloatType = Builtin.FPIEEE64
public typealias _MaxBuiltinIntegerType = Builtin.Int2048
public typealias _MaxBuiltinFloatType = Builtin.FPIEEE64
//===----------------------------------------------------------------------===//
// Standard protocols