edit ZMainHead.H a bit

This commit is contained in:
2021-02-25 17:45:17 +09:00
parent 822f54cc50
commit 639c5f8347

View File

@ -473,7 +473,7 @@ namespace ZNsMain
typedef int ZTypInt ; typedef int ZTypInt ;
typedef int ZTypIntE ; // int enum : 다른 enum 형끼리 비교할 일이 있을 때, 이 자료로 형변환한다. typedef int ZTypIntE ; // int enum : 다른 enum 형끼리 비교할 일이 있을 때, 이 자료로 형변환한다.
typedef IntE ZTypIntEnum ; typedef int ZTypIntEnum ;
typedef long ZTypIntLong ; typedef long ZTypIntLong ;
typedef short ZTypIntShort; typedef short ZTypIntShort;
@ -2562,41 +2562,41 @@ namespace ZNsMain
#ifdef _WIN #ifdef _WIN
inline LongLong ATOLL(const char* ApcChar) inline ZTypLLong ATOLL(const char* ApcChar)
{ {
if(ApcChar==0) return 0; return ::_atoi64(ApcChar); if(ApcChar==0) return 0; return ::_atoi64(ApcChar);
}/* }/*
inline LongLong ATOLL(const char* ApcChar)*/ inline ZTypLLong ATOLL(const char* ApcChar)*/
#else // !defined(_WIN) #else // !defined(_WIN)
inline LongLong ATOLL(const char* ApcChar) inline ZTypLLong ATOLL(const char* ApcChar)
{ {
if(ApcChar==0) return 0; return ::atoll(ApcChar); if(ApcChar==0) return 0; return ::atoll(ApcChar);
}/* }/*
inline LongLong ATOLL(const char* ApcChar)*/ inline ZTypLLong ATOLL(const char* ApcChar)*/
#endif // !defined(_WIN) #endif // !defined(_WIN)
inline LongLong ATOLL(const char* ApcChar, ZTypIntI AI_Length) inline ZTypLLong ATOLL(const char* ApcChar, ZTypIntI AI_Length)
{ {
return AToInt<LongLong>(ApcChar, AI_Length); return AToInt<LongLong>(ApcChar, AI_Length);
}/* }/*
inline LongLong ATOL(const char* ApcChar, ZTypIntI AI_Length)*/ inline ZTypLLong ATOL(const char* ApcChar, ZTypIntI AI_Length)*/
inline long ATOL(const char* ApcChar) inline ZTypLong ATOL(const char* ApcChar)
{ {
if(ApcChar==0) return 0; return atol(ApcChar); if(ApcChar==0) return 0; return atol(ApcChar);
}/* }/*
inline long ATOL(const char* ApcChar)*/ inline ZTypLong ATOL(const char* ApcChar)*/
inline long ATOL(const char* ApcChar, ZTypIntI AI_Length) inline ZTypLong ATOL(const char* ApcChar, ZTypIntI AI_Length)
{ {
return AToInt<long>(ApcChar, AI_Length); return AToInt<long>(ApcChar, AI_Length);
}/* }/*
inline long ATOL(const char* ApcChar, ZTypIntI AI_Length)*/ inline ZTypLong ATOL(const char* ApcChar, ZTypIntI AI_Length)*/
inline ZTypIntI ATOI(const char* ApcChar) inline ZTypIntI ATOI(const char* ApcChar)
@ -2630,16 +2630,14 @@ namespace ZNsMain
inline TTypeSize GetLengthType(const TTypeCh* ApcChar) inline TTypeSize GetLengthType(const TTypeCh* ApcChar)
{ {
if(ApcChar==0) return 0; if(ApcChar==0) return 0;
TTypeSize VL_Length=0; //////////////// TTypeSize VL_Length=0 ;
while(*(ApcChar+VL_Length)!=_T('\0')) while(*(ApcChar+VL_Length)!=_T('\0'))
{
++VL_Length; ++VL_Length;
}/* /////////////////////////////////////
while(*(ApcChar+VL_Length)!=_T('\0'))*/
return VL_Length;
return VL_Length; ////////////////////
}/* }/*
template<typename TTypeSize, typename TTypeCh> template<typename TTypeSize, typename TTypeCh>
inline TTypeSize GetLengthType(const TTypeCh* ApcChar) */ inline TTypeSize GetLengthType(const TTypeCh* ApcChar) */