commit 2025-09-02 17:06 delete argument AL_AddAllocSize in ZftLoadFile() in ZCppMain/ZMainHeadEx.H
This commit is contained in:
@ -7337,14 +7337,13 @@ namespace ZNsMain
|
||||
|
||||
template<typename TStringData> bool ZftLoadFile /*############################*/
|
||||
(
|
||||
TStringData& ARR_SaveCStr , ZTypCPCChar APC_FileName ,
|
||||
ZTypLength AL_LoadSize=0 , ZTypLength AL_Offset =0,
|
||||
bool AB_DoAppend=true, ZTypLength AL_AddAllocSize=0
|
||||
TStringData& ARR_SaveCStr , ZTypCPCChar APC_FileName ,
|
||||
ZTypLength AL_LoadSize=0 , ZTypLength AL_Offset =0,
|
||||
bool AB_DoAppend=true
|
||||
)
|
||||
/*#############################################################################*/
|
||||
{
|
||||
// window 에서 _open() 함수는 \r\n 을 한 문자로 입력받음에 주의.
|
||||
// AL_AddAllocSize 는 파일 APC_FileName 의 크기보다 더 큰 메모리가 필요할 경우에 전달한다.
|
||||
|
||||
if(AL_Offset<0) AL_Offset=0;
|
||||
|
||||
@ -7379,7 +7378,7 @@ namespace ZNsMain
|
||||
|
||||
ARR_SaveCStr.resize //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
||||
(
|
||||
VL_PrevSize+VL_LastPos-AL_Offset+AL_AddAllocSize, ' '
|
||||
VL_PrevSize+VL_LastPos-AL_Offset, ' '
|
||||
);
|
||||
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
||||
|
||||
@ -7456,9 +7455,9 @@ namespace ZNsMain
|
||||
}/*
|
||||
template<typename TStringData> bool ZftLoadFile ################################
|
||||
(
|
||||
TStringData& ARR_SaveCStr , ZTypCPCChar APC_FileName ,
|
||||
ZTypLength AL_LoadSize=0 , ZTypLength AL_Offset =0,
|
||||
bool AB_DoAppend=true, ZTypLength AL_AddAllocSize=0
|
||||
TStringData& ARR_SaveCStr , ZTypCPCChar APC_FileName ,
|
||||
ZTypLength AL_LoadSize=0 , ZTypLength AL_Offset =0,
|
||||
bool AB_DoAppend=true
|
||||
)
|
||||
###############################################################################*/
|
||||
|
||||
|
Reference in New Issue
Block a user