From ab68f32074e12861b03552534217e8e7d80e9404 Mon Sep 17 00:00:00 2001 From: sauron Date: Tue, 2 Sep 2025 17:06:26 +0900 Subject: [PATCH] commit 2025-09-02 17:06 delete argument AL_AddAllocSize in ZftLoadFile() in ZCppMain/ZMainHeadEx.H --- ZCppMain/ZMainHeadEx.H | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/ZCppMain/ZMainHeadEx.H b/ZCppMain/ZMainHeadEx.H index a0a0146..ec6a0fc 100644 --- a/ZCppMain/ZMainHeadEx.H +++ b/ZCppMain/ZMainHeadEx.H @@ -7337,14 +7337,13 @@ namespace ZNsMain template 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 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 ) ###############################################################################*/