diff options
author | 2005-02-27 19:48:28 +0000 | |
---|---|---|
committer | 2005-02-27 19:48:28 +0000 | |
commit | a775febea537b179d3b87c59e2cfa3bfb54c69ea (patch) | |
tree | ae423f8affcb382872fc5d537da7bf3b8038eb47 /sci-biology/treeviewx/files | |
parent | Cosmetic fix (diff) | |
download | historical-a775febea537b179d3b87c59e2cfa3bfb54c69ea.tar.gz historical-a775febea537b179d3b87c59e2cfa3bfb54c69ea.tar.bz2 historical-a775febea537b179d3b87c59e2cfa3bfb54c69ea.zip |
GCC 3.4 fixes. This might fix bug #82455.
Package-Manager: portage-2.0.51.16
Diffstat (limited to 'sci-biology/treeviewx/files')
-rw-r--r-- | sci-biology/treeviewx/files/digest-treeviewx-0.4-r1 | 1 | ||||
-rw-r--r-- | sci-biology/treeviewx/files/treeviewx-gcc-3.4.patch | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/sci-biology/treeviewx/files/digest-treeviewx-0.4-r1 b/sci-biology/treeviewx/files/digest-treeviewx-0.4-r1 new file mode 100644 index 000000000000..f842ea00853f --- /dev/null +++ b/sci-biology/treeviewx/files/digest-treeviewx-0.4-r1 @@ -0,0 +1 @@ +MD5 a0f556e474804e59a72ff24ee0d8f10d tv-0.4.tar.gz 336684 diff --git a/sci-biology/treeviewx/files/treeviewx-gcc-3.4.patch b/sci-biology/treeviewx/files/treeviewx-gcc-3.4.patch new file mode 100644 index 000000000000..9d64fabb6a9b --- /dev/null +++ b/sci-biology/treeviewx/files/treeviewx-gcc-3.4.patch @@ -0,0 +1,73 @@ +--- TreeLib/nodeiterator.h.old 2002-02-24 15:37:17.000000000 -0500 ++++ TreeLib/nodeiterator.h 2005-02-27 14:23:30.971981368 -0500 +@@ -128,34 +128,34 @@ + + template <class N> N *PreorderIterator<N>::begin () + { +- cur = root; +- return cur; ++ this->cur = this->root; ++ return this->cur; + } + + template <class N> N *PreorderIterator<N>::next () + { +- if (cur->GetChild()) ++ if (this->cur->GetChild()) + { +- stk.push (cur); +- N *p = (N *)(cur->GetChild()); +- cur = p; ++ this->stk.push (this->cur); ++ N *p = (N *)(this->cur->GetChild()); ++ this->cur = p; + } + else + { +- while (!stk.empty() && (cur->GetSibling() == NULL)) ++ while (!this->stk.empty() && (this->cur->GetSibling() == NULL)) + { +- cur = stk.top(); +- stk.pop(); ++ this->cur = this->stk.top(); ++ this->stk.pop(); + } +- if (stk.empty()) +- cur = NULL; ++ if (this->stk.empty()) ++ this->cur = NULL; + else + { +- N *p = (N *)(cur->GetSibling()); +- cur = p; ++ N *p = (N *)(this->cur->GetSibling()); ++ this->cur = p; + } + } +- return cur; ++ return this->cur; + } + + +--- TreeLib/profile.h.old 2002-12-10 06:37:57.000000000 -0500 ++++ TreeLib/profile.h 2005-02-27 14:27:51.205419872 -0500 +@@ -77,7 +77,7 @@ + #include <ctime> + #endif + +- ++using namespace std; + + /** + *@typedef std::map <std::string, int, std::less<std::string> > LabelMap; +--- TreeLib/treedrawer.cpp.old 2003-08-22 06:47:28.000000000 -0400 ++++ TreeLib/treedrawer.cpp 2005-02-27 14:26:19.279394752 -0500 +@@ -406,7 +406,7 @@ + if (q->IsLeaf()) + { + double d = q->GetPathLength() - mMaxPathLength; +- mUltrametric = (std::fabs(d) <= 0.0001); ++ mUltrametric = (fabs(d) <= 0.0001); + // cout << mMaxPathLength << ":" << q->GetPathLength() << " " << d << endl; + } + q = u.next(); |