X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fkaps%2Fhtml_dumper.c;h=a9dd2f1996d41e65bc0a36f23b78e7c83cfd36d1;hb=5474a1c188c9d59eea2c915515980cd9cbab58d8;hp=d0809eada9305e6f440415573e4c54d196c7befa;hpb=2f6a3ddc84e1023452e7b1301c321567fd3e7407;p=libfirm
diff --git a/ir/kaps/html_dumper.c b/ir/kaps/html_dumper.c
index d0809eada..a9dd2f199 100644
--- a/ir/kaps/html_dumper.c
+++ b/ir/kaps/html_dumper.c
@@ -22,7 +22,6 @@
* @brief HTML dumper for PBQP.
* @date 03.10.2008
* @author Sebastian Buchwald
- * @version $Id$
*/
#include "config.h"
@@ -87,10 +86,10 @@ static void dump_matrix(FILE *f, pbqp_matrix_t *mat)
fprintf(f, "\t\\end{pmatrix}\n");
}
-void dump_edge(FILE *file, pbqp_edge_t *edge)
+void pbqp_dump_edge(FILE *file, pbqp_edge_t *edge)
{
fputs("
", file);
@@ -103,8 +102,8 @@ static void dump_edge_costs(pbqp_t *pbqp)
fputs("
", pbqp->dump_file); for (src_index = 0; src_index < pbqp->num_nodes; ++src_index) { pbqp_node_t *src_node = get_node(pbqp, src_index); - unsigned edge_index; - unsigned len; + size_t edge_index; + size_t len; if (!src_node) continue; @@ -114,17 +113,17 @@ static void dump_edge_costs(pbqp_t *pbqp) pbqp_edge_t *edge = src_node->edges[edge_index]; unsigned tgt_index = edge->tgt->index; if (src_index < tgt_index) { - dump_edge(pbqp->dump_file, edge); + pbqp_dump_edge(pbqp->dump_file, edge); } } } fputs("
", pbqp->dump_file); } -void dump_node(FILE *file, pbqp_node_t *node) +void pbqp_dump_node(FILE *file, pbqp_node_t *node) { if (node) { - fprintf(file, "\tc%d = ", node->index); + fprintf(file, "\tc%u = ", node->index); dump_vector(file, node->costs); fputs("", pbqp->dump_file); for (index = 0; index < pbqp->num_nodes; ++index) { - dump_node(pbqp->dump_file, get_node(pbqp, index)); + pbqp_dump_node(pbqp->dump_file, get_node(pbqp, index)); } fputs("
", pbqp->dump_file); } -void dump_section(FILE *f, int level, const char *txt) +void pbqp_dump_section(FILE *f, int level, const char *txt) { fprintf(f, "