commit 2025-09-04 19:51 add type ZTycInt, ZTycLong etc in ZCppMain/ZMainHead.H

This commit is contained in:
2025-09-04 19:51:40 +09:00
parent 108a86df10
commit c6c879dc45

View File

@ -627,6 +627,22 @@ namespace ZNsMain
#endif #endif
typedef const int ZTycInt ;
typedef const long ZTycLong ;
typedef const short ZTycShort ;
typedef const char ZTycChar ;
typedef const wchar_t ZTycCharW ;
typedef const ZTypLLong ZTycLLong ;
typedef const ZTypULLong ZTycULLong ;
typedef const ZTypIntLL ZTycIntLL ;
typedef const ZTypIntULL ZTycIntULL ;
typedef const ZTypIntPtr ZTycIntPtr ;
typedef const ZTypIntUPtr ZTycIntUPtr;
#ifdef _WIN32 #ifdef _WIN32
typedef HANDLE ZTypeID; typedef HANDLE ZTypeID;
#else #else
@ -3690,10 +3706,10 @@ namespace ZNsMain
template<> string& ZftMakeStr(string& ARR_SaveCStr, long AL_Long) template<> string& ZftMakeStr(string& ARR_SaveCStr, long AL_Long)
{ {
const int CI_BuffSize = 31 ; ZTycInt CI_BuffSize = 31 ;
char VCA_BuffParam[CI_BuffSize] ; ZTypChar VCA_BuffParam[CI_BuffSize] ;
int VI_ResultSize = ZTypInt VI_ResultSize =
::sprintf(VCA_BuffParam, "%ld", AL_Long); ::sprintf(VCA_BuffParam, "%ld", AL_Long);
ARR_SaveCStr.append ARR_SaveCStr.append
@ -3705,10 +3721,10 @@ namespace ZNsMain
template<> string& ZftMakeStr(string& ARR_SaveCStr, double AD_Double) template<> string& ZftMakeStr(string& ARR_SaveCStr, double AD_Double)
{ {
const int CI_BuffSize=51 ; ZTycInt CI_BuffSize=51 ;
char VCA_BuffParam[CI_BuffSize]; ZTypChar VCA_BuffParam[CI_BuffSize];
int VI_ResultSize = ::sprintf ZTypInt VI_ResultSize = ::sprintf
( (
VCA_BuffParam, "%f", AD_Double VCA_BuffParam, "%f", AD_Double
); );