X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fplot_phylo.c;h=d8666a20c83b156ba84fb2969abc124317fa5ae1;hb=1df144a18356d9b329324324bc2f78cfdf1cea3d;hp=fec2601fa4eb75f0cd9b2f690aca674080eff3dc;hpb=6a2fafede27a5cf6a5aafef7c9b56e78635eaeb4;p=ape.git diff --git a/src/plot_phylo.c b/src/plot_phylo.c index fec2601..d8666a2 100644 --- a/src/plot_phylo.c +++ b/src/plot_phylo.c @@ -1,6 +1,6 @@ -/* plot_phylo.c (2009-10-03) */ +/* plot_phylo.c (2011-06-23) */ -/* Copyright 2004-2009 Emmanuel Paradis +/* Copyright 2004-2011 Emmanuel Paradis /* This file is part of the R-package `ape'. */ /* See the file ../COPYING for licensing issues. */ @@ -37,12 +37,11 @@ void node_depth(int *ntip, int *nnode, int *edge1, int *edge2, void node_height(int *ntip, int *nnode, int *edge1, int *edge2, int *nedge, double *yy) { - int i, k, n; + int i, n; double S; /* The coordinates of the tips have been already computed */ - k = 1; S = 0; n = 0; for (i = 0; i < *nedge; i++) { @@ -59,14 +58,13 @@ void node_height(int *ntip, int *nnode, int *edge1, int *edge2, void node_height_clado(int *ntip, int *nnode, int *edge1, int *edge2, int *nedge, double *xx, double *yy) { - int i, k, n; + int i, n; double S; node_depth(ntip, nnode, edge1, edge2, nedge, xx); /* The coordinates of the tips have been already computed */ - k = 1; S = 0; n = 0; for (i = 0; i < *nedge; i++) {