commit 2025-09-04 20:01 edit a bit ZCppMain/ZMainHeadEx.H
This commit is contained in:
@ -299,7 +299,7 @@ namespace ZNsMain
|
||||
template<typename TString> long ZfReadStdIn(
|
||||
TString& ARR_CStringRead, LPOVERLAPPED AP_Overlapped=NULL)
|
||||
{
|
||||
const int CI_StdBuffSize=512;
|
||||
ZTycInt CI_StdBuffSize = 512 ;
|
||||
|
||||
if(ARR_CStringRead.size()<1)
|
||||
ARR_CStringRead.resize(CI_StdBuffSize, ' ');
|
||||
@ -444,7 +444,7 @@ namespace ZNsMain
|
||||
|
||||
template<typename TString> ssize_t ZfReadStdIn(TString& ARR_CStringRead)
|
||||
{
|
||||
const int CI_StdBuffSize=512;
|
||||
ZTycInt CI_StdBuffSize=512;
|
||||
|
||||
if(ARR_CStringRead.size()<1)
|
||||
ARR_CStringRead.resize(CI_StdBuffSize,' ');
|
||||
@ -1075,8 +1075,8 @@ namespace ZNsMain
|
||||
|
||||
if(mo_TimeObj.tm_yday<=mo_TimeObj.tm_wday) return 1;
|
||||
|
||||
const int CI_DayCntOfWeek=7;
|
||||
const int CI_DayCntAdded =2;
|
||||
ZTycInt CI_DayCntOfWeek= 7;
|
||||
ZTycInt CI_DayCntAdded = 2;
|
||||
|
||||
return (mo_TimeObj.tm_yday - mo_TimeObj.tm_wday-1)/CI_DayCntOfWeek + CI_DayCntAdded ;
|
||||
}/*
|
||||
@ -1248,7 +1248,7 @@ namespace ZNsMain
|
||||
if(SetTimeObj(VL_Time, RR(VO_StTime), AB_IsLoaclTime)==false) return 0;
|
||||
|
||||
|
||||
const int CI_TimeBuffSize=30; static char VCA_TimeBuff[CI_TimeBuffSize];
|
||||
ZTycInt CI_TimeBuffSize=30; static char VCA_TimeBuff[CI_TimeBuffSize];
|
||||
|
||||
(void)sprintf ////////////////////////////////////////////////////////
|
||||
(
|
||||
@ -2287,8 +2287,8 @@ namespace ZNsMain
|
||||
|
||||
if(mo_TimeObj.tm_yday<=mo_TimeObj.tm_wday) return 1;
|
||||
|
||||
const int CI_DayCntOfWeek=7;
|
||||
const int CI_DayCntAdded =2;
|
||||
ZTycInt CI_DayCntOfWeek=7;
|
||||
ZTycInt CI_DayCntAdded =2;
|
||||
|
||||
return (mo_TimeObj.tm_yday - mo_TimeObj.tm_wday-1)/CI_DayCntOfWeek + CI_DayCntAdded ;
|
||||
}/*
|
||||
@ -5662,7 +5662,7 @@ namespace ZNsMain
|
||||
|
||||
if(false==AB_DoKeepPrev)
|
||||
{
|
||||
const int CI_BuffSize = _MAX_DIR*4 ;
|
||||
ZTycInt CI_BuffSize = _MAX_DIR*4 ;
|
||||
|
||||
ARR_CStringDir.resize(CI_BuffSize+1, ' ');
|
||||
|
||||
@ -5679,7 +5679,7 @@ namespace ZNsMain
|
||||
|
||||
|
||||
ZTypLength VL_PrevSize = ARR_CStringDir.size() ;
|
||||
const int CI_BuffSize = VL_PrevSize+_MAX_DIR*4 ;
|
||||
ZTycInt CI_BuffSize = VL_PrevSize+_MAX_DIR*4 ;
|
||||
ARR_CStringDir.resize(CI_BuffSize+1, ' ') ;
|
||||
ZTypPChar VP_CopyStart =
|
||||
(ZTypPChar)ARR_CStringDir.data()+VL_PrevSize ;
|
||||
@ -5723,7 +5723,7 @@ namespace ZNsMain
|
||||
{
|
||||
if(false==AB_DoKeepPrev)
|
||||
{
|
||||
const int CI_BuffSize = _MAX_DIR*4 ;
|
||||
ZTycInt CI_BuffSize = _MAX_DIR*4 ;
|
||||
|
||||
ARR_CStringDir.resize(CI_BuffSize+1, ' ');
|
||||
|
||||
@ -5740,7 +5740,7 @@ namespace ZNsMain
|
||||
|
||||
|
||||
ZTypLength VL_PrevSize = ARR_CStringDir.size() ;
|
||||
const int CI_BuffSize = VL_PrevSize+_MAX_DIR*4 ;
|
||||
ZTycInt CI_BuffSize = VL_PrevSize+_MAX_DIR*4 ;
|
||||
ARR_CStringDir.resize(CI_BuffSize+1, ' ') ;
|
||||
ZTypPChar VP_CopyStart =
|
||||
(ZTypPChar)ARR_CStringDir.data()+VL_PrevSize ;
|
||||
@ -7281,8 +7281,8 @@ namespace ZNsMain
|
||||
using ZNsConst::ZNsLlioMode::AppendMake ;
|
||||
using ZNsConst::ZNsLlioMode::WriteMakeCut;
|
||||
|
||||
const int CI_FileOpenErr = -1;
|
||||
const int CI_FileOpenTag =
|
||||
ZTycInt CI_FileOpenErr = -1 ;
|
||||
ZTycInt CI_FileOpenTag =
|
||||
(
|
||||
AI_RightMode<0 ?
|
||||
S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP :
|
||||
|
Reference in New Issue
Block a user