1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

AK: Rename MakeUnsigned::type to MakeUnsigned::Type.

Also renames MakeSigned::type to MakeSigned::Type.
This commit is contained in:
asynts 2020-08-03 20:35:25 +02:00 committed by Andreas Kling
parent 7e6fbef8db
commit 05abfc0e1f
Notes: sideshowbarker 2024-07-19 04:14:40 +09:00
3 changed files with 22 additions and 22 deletions

View file

@ -321,52 +321,52 @@ struct MakeUnsigned {
template<> template<>
struct MakeUnsigned<signed char> { struct MakeUnsigned<signed char> {
typedef unsigned char type; typedef unsigned char Type;
}; };
template<> template<>
struct MakeUnsigned<short> { struct MakeUnsigned<short> {
typedef unsigned short type; typedef unsigned short Type;
}; };
template<> template<>
struct MakeUnsigned<int> { struct MakeUnsigned<int> {
typedef unsigned type; typedef unsigned Type;
}; };
template<> template<>
struct MakeUnsigned<long> { struct MakeUnsigned<long> {
typedef unsigned long type; typedef unsigned long Type;
}; };
template<> template<>
struct MakeUnsigned<long long> { struct MakeUnsigned<long long> {
typedef unsigned long long type; typedef unsigned long long Type;
}; };
template<> template<>
struct MakeUnsigned<unsigned char> { struct MakeUnsigned<unsigned char> {
typedef unsigned char type; typedef unsigned char Type;
}; };
template<> template<>
struct MakeUnsigned<unsigned short> { struct MakeUnsigned<unsigned short> {
typedef unsigned short type; typedef unsigned short Type;
}; };
template<> template<>
struct MakeUnsigned<unsigned int> { struct MakeUnsigned<unsigned int> {
typedef unsigned type; typedef unsigned Type;
}; };
template<> template<>
struct MakeUnsigned<unsigned long> { struct MakeUnsigned<unsigned long> {
typedef unsigned long type; typedef unsigned long Type;
}; };
template<> template<>
struct MakeUnsigned<unsigned long long> { struct MakeUnsigned<unsigned long long> {
typedef unsigned long long type; typedef unsigned long long Type;
}; };
template<typename T> template<typename T>
@ -375,52 +375,52 @@ struct MakeSigned {
template<> template<>
struct MakeSigned<signed char> { struct MakeSigned<signed char> {
typedef signed char type; typedef signed char Type;
}; };
template<> template<>
struct MakeSigned<short> { struct MakeSigned<short> {
typedef short type; typedef short Type;
}; };
template<> template<>
struct MakeSigned<int> { struct MakeSigned<int> {
typedef int type; typedef int Type;
}; };
template<> template<>
struct MakeSigned<long> { struct MakeSigned<long> {
typedef long type; typedef long Type;
}; };
template<> template<>
struct MakeSigned<long long> { struct MakeSigned<long long> {
typedef long long type; typedef long long Type;
}; };
template<> template<>
struct MakeSigned<unsigned char> { struct MakeSigned<unsigned char> {
typedef char type; typedef char Type;
}; };
template<> template<>
struct MakeSigned<unsigned short> { struct MakeSigned<unsigned short> {
typedef short type; typedef short Type;
}; };
template<> template<>
struct MakeSigned<unsigned int> { struct MakeSigned<unsigned int> {
typedef int type; typedef int Type;
}; };
template<> template<>
struct MakeSigned<unsigned long> { struct MakeSigned<unsigned long> {
typedef long type; typedef long Type;
}; };
template<> template<>
struct MakeSigned<unsigned long long> { struct MakeSigned<unsigned long long> {
typedef long long type; typedef long long Type;
}; };
template<class T> template<class T>

View file

@ -42,7 +42,7 @@ typedef __INT8_TYPE__ i8;
#ifdef __serenity__ #ifdef __serenity__
typedef __SIZE_TYPE__ size_t; typedef __SIZE_TYPE__ size_t;
typedef MakeSigned<size_t>::type ssize_t; typedef MakeSigned<size_t>::Type ssize_t;
typedef __PTRDIFF_TYPE__ ptrdiff_t; typedef __PTRDIFF_TYPE__ ptrdiff_t;

View file

@ -47,7 +47,7 @@ template<typename T>
struct TypeTrivia { struct TypeTrivia {
static const size_t bits = sizeof(T) * 8; static const size_t bits = sizeof(T) * 8;
static const T sign_bit = 1 << (bits - 1); static const T sign_bit = 1 << (bits - 1);
static const T mask = typename MakeUnsigned<T>::type(-1); static const T mask = typename MakeUnsigned<T>::Type(-1);
}; };
template<typename T, typename U> template<typename T, typename U>