From f574742d945a6c1982c6b513e01f61eb00a87af5 Mon Sep 17 00:00:00 2001 From: chatty Date: Wed, 22 Dec 1993 12:26:40 +0000 Subject: Fixed glitches in documentation changed arg of operator new --- utils/List.cc | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'utils') diff --git a/utils/List.cc b/utils/List.cc index dd07956..f55b1be 100644 --- a/utils/List.cc +++ b/utils/List.cc @@ -36,7 +36,7 @@ public: CcuListLink* Next; inline CcuListLink (CcuListItem* e, CcuListLink* n = 0) { Entry = e; Next = n ? n : this; } CcuListLink* Previous (); - void* operator new (unsigned int); + void* operator new (unsigned long); void operator delete (void*); }; #endif @@ -52,9 +52,9 @@ CcuAllocator* CcuList::CcuListLink::ListLinkMem = 0; /*?nodoc?*/ void* #ifdef CPLUS_BUG20 -CcuListLink :: operator new (unsigned int) +CcuListLink :: operator new (unsigned long) #else -CcuList::CcuListLink :: operator new (unsigned int) +CcuList::CcuListLink :: operator new (unsigned long) #endif { if (!ListLinkMem) @@ -78,9 +78,10 @@ CcuList::CcuListLink :: operator delete (void* that) } -/*? +/*! Get the link whose next link is this one. -?*/ +!*/ +/*?hidden?*/ #ifndef CPLUS_BUG20 CcuList::CcuListLink* CcuList::CcuListLink :: Previous () @@ -338,9 +339,10 @@ CcuList :: RemoveLast () return data; } -/*? +/*! Insert an element before the link \var{l}. This function has a linear cost. -?*/ +!*/ +/*?hidden?*/ void CcuList :: InsertBeforeLink (CcuListLink* l, CcuListItem* e) { @@ -350,9 +352,10 @@ CcuList :: InsertBeforeLink (CcuListLink* l, CcuListItem* e) } -/*? +/*! Insert an element after the link \var{l}. -?*/ +!*/ +/*?hidden?*/ void CcuList :: InsertAfterLink (CcuListLink* l, CcuListItem* e) { @@ -362,10 +365,11 @@ CcuList :: InsertAfterLink (CcuListLink* l, CcuListItem* e) LastLink = newlink; } -/*? +/*! Remove the link which is after \var{l} and return its entry. If \var{l} is the last link of the list, the first one is removed. -?*/ +!*/ +/*?hidden?*/ CcuListItem* CcuList :: RemoveAfterLink (CcuListLink* l) { -- cgit v1.1