ZZ_pBak::~ZZ_pBak() { if (MustRestore) CopyPointer(ZZ_pInfo, ptr); CopyPointer(ptr, 0); }
GF2EBak::~GF2EBak() { if (MustRestore) CopyPointer(GF2EInfo, ptr); CopyPointer(ptr, 0); }
zz_pEBak::~zz_pEBak() { if (MustRestore) CopyPointer(zz_pEInfo, ptr); CopyPointer(ptr, 0); }
RTFformatting& RTFformatting::Assign (const RTFformatting& right) { if(&right == NULL) { CHECK_CONDITION_NOT_EXPECTED; // NASTY but it was tested for for some reason return *this; // as it did before } if (this != &right) { m_fLocation = right.m_fLocation; CopyPointer(the_RTFapoctl , right.the_RTFapoctl ); CopyPointer(the_RTFtapoctl , right.the_RTFtapoctl ); RTFbrdrdef*& pref=DetachBrdrDef(); CopyPointer(pref , right.the_RTFbrdrdef); CopyPointer(DetachChrfmt() , right.the_RTFchrfmt ); CopyPointer(the_RTFpnprops, right.the_RTFpnprops); CopyPointer(the_RTFpn , right.the_RTFpn ); CopyPointer(DetachParfmt() , right.GetParfmt() ); CopyPointer(the_RTFshading, right.the_RTFshading); CopyPointer(the_RTFtabdef , right.the_RTFtabdef ); m_iRBound = right.m_iRBound; m_bNestedTblDef = right.m_bNestedTblDef; //++BobH 01-02-01 } AttachParfmt(); return *this; }
fbl::RefPtr<ThreadDispatcher> ProcessDispatcher::LookupThreadById(zx_koid_t koid) { LTRACE_ENTRY_OBJ; Guard<fbl::Mutex> guard{get_lock()}; auto iter = thread_list_.find_if([koid](const ThreadDispatcher& t) { return t.get_koid() == koid; }); return fbl::WrapRefPtr(iter.CopyPointer()); }
static struct Pointer * CopyPointer(struct Pointer * ptr) { if(ptr) { struct __ecereNameSpace__ecere__sys__OldList * list = MkList(); struct Specifier * spec; if(ptr->qualifiers) { for(spec = (*ptr->qualifiers).first; spec; spec = spec->next) ListAdd(list, CopySpecifier(spec)); } return MkPointer(list, CopyPointer(ptr->pointer)); } return (((void *)0)); }
zz_pEExtraContext::zz_pEExtraContext(const zz_pEExtraContext& a) { ptr = NULL; CopyPointer(ptr, a.ptr); }
void ZZ_pBak::save() { MustRestore = 1; CopyPointer(ptr, ZZ_pInfo); }
void ZZ_pBak::restore() { MustRestore = 0; CopyPointer(ZZ_pInfo, ptr); }
void ZZ_pContext::restore() const { CopyPointer(ZZ_pInfo, ptr); }
zz_pEExtraContext::~zz_pEExtraContext() { CopyPointer(ptr, NULL); }
GF2EContext::~GF2EContext() { CopyPointer(ptr, 0); }
void ZZ_pContext::save() { CopyPointer(ptr, ZZ_pInfo); }
zz_pEContext::zz_pEContext(const zz_pEContext& a) { ptr = 0; CopyPointer(ptr, a.ptr); }
zz_pEContext::~zz_pEContext() { CopyPointer(ptr, 0); }
void GF2EBak::save() { MustRestore = 1; CopyPointer(ptr, GF2EInfo); }
void zz_pEBak::save() { MustRestore = 1; CopyPointer(ptr, zz_pEInfo); }
void zz_pEExtraContext::restore() const { CopyPointer(zz_pEExtraInfo, ptr); }
void GF2EContext::restore() const { CopyPointer(GF2EInfo, ptr); }
void GF2EContext::save() { CopyPointer(ptr, GF2EInfo); }
void zz_pEContext::restore() const { CopyPointer(zz_pEInfo, ptr); }
void zz_pEExtraContext::save() { CopyPointer(ptr, zz_pEExtraInfo); }
void GF2EBak::restore() { MustRestore = 0; CopyPointer(GF2EInfo, ptr); }
GF2EContext::GF2EContext(const GF2EContext& a) { ptr = 0; CopyPointer(ptr, a.ptr); }
void zz_pEBak::restore() { MustRestore = 0; CopyPointer(zz_pEInfo, ptr); }
ZZ_pContext::ZZ_pContext(const ZZ_pContext& a) { ptr = 0; CopyPointer(ptr, a.ptr); }
zz_pEContext& zz_pEContext::operator=(const zz_pEContext& a) { CopyPointer(ptr, a.ptr); return *this; }
ZZ_pContext& ZZ_pContext::operator=(const ZZ_pContext& a) { CopyPointer(ptr, a.ptr); return *this; }
void zz_pEContext::save() { CopyPointer(ptr, zz_pEInfo); }
ZZ_pContext::~ZZ_pContext() { CopyPointer(ptr, 0); }