From f24913673b0b575b8f21f2021e7fd241fedde5c0 Mon Sep 17 00:00:00 2001 From: sauron Date: Sat, 4 Oct 2025 09:13:53 +0900 Subject: [PATCH] commit 2025-10-04 09:13 ZCLink& operator+, - : ZCppMain/ZtCObjList.H --- ZCppMain/ZtCObjList.H | 16 ++++++++++++++++ ZCppMain/ZtCSimList.H | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ZCppMain/ZtCObjList.H b/ZCppMain/ZtCObjList.H index 2baa3eb..fc96010 100644 --- a/ZCppMain/ZtCObjList.H +++ b/ZCppMain/ZtCObjList.H @@ -974,6 +974,15 @@ namespace ZNsMain }/* ZCLink& operator+(TypeSize AL_Distance)*/ + ZCLink& operator-(TypeSize AL_Distance) + { + if(AL_Distance>=0) + return *GetPrevPtr(AL_Distance); + else return *GetNextPtr(AL_Distance); + }/* + ZCLink& operator-(TypeSize AL_Distance)*/ + + const ZCLink& operator+(TypeSize AL_Distance) const { if(AL_Distance>=0) @@ -982,6 +991,13 @@ namespace ZNsMain }/* const ZCLink& operator+(TypeSize AL_Distance) const*/ + const ZCLink& operator-(TypeSize AL_Distance) const + { + if(AL_Distance>=0) + return *GetPrevPtr(AL_Distance); + else return *GetNextPtr(AL_Distance); + }/* + const ZCLink& operator-(TypeSize AL_Distance) const*/ public: };/* diff --git a/ZCppMain/ZtCSimList.H b/ZCppMain/ZtCSimList.H index 7a93758..b3ef965 100644 --- a/ZCppMain/ZtCSimList.H +++ b/ZCppMain/ZtCSimList.H @@ -256,7 +256,7 @@ namespace ZNsMain MakeLinkCopy /*++++++++++++++++++++++++++++++++++++++++++++*/ ( - AP_LinkOrgin->GetNextPtr() , AL_FarNum-ml_UseSize, + AP_LinkOrgin->GetNextPtr(), AL_FarNum-ml_UseSize, RR(mp_NoUseTail->mp_NextLink), RR(APR_TailCopy) ); /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/