diff options
author | chatty | 1993-12-22 12:26:40 +0000 |
---|---|---|
committer | chatty | 1993-12-22 12:26:40 +0000 |
commit | f574742d945a6c1982c6b513e01f61eb00a87af5 (patch) | |
tree | f7ebe2dbd572ef3b2822cd041149da28dea25612 /utils/List.cc | |
parent | d57dd00975ec10a65238f0339dba036a611e17b2 (diff) | |
download | ivy-league-f574742d945a6c1982c6b513e01f61eb00a87af5.zip ivy-league-f574742d945a6c1982c6b513e01f61eb00a87af5.tar.gz ivy-league-f574742d945a6c1982c6b513e01f61eb00a87af5.tar.bz2 ivy-league-f574742d945a6c1982c6b513e01f61eb00a87af5.tar.xz |
Fixed glitches in documentation
changed arg of operator new
Diffstat (limited to 'utils/List.cc')
-rw-r--r-- | utils/List.cc | 26 |
1 files changed, 15 insertions, 11 deletions
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) { |