show pointed-to symbol onmouseover, for easier scanning (r=brendan)

This commit is contained in:
shaver%mozilla.org 2000-04-23 07:13:19 +00:00
Родитель 7b747c0fa4
Коммит 7d006ae565
2 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -534,8 +534,10 @@ static void dump_graphedge_list(graphedge *list, FILE *fp)
for (edge = list; edge; edge = edge->next)
total += edge->total;
for (edge = list; edge; edge = edge->next) {
fprintf(fp, "<a href='#%s'>%s&nbsp;(%1.2f%%)</a>\n",
graphnode_name(edge->node),
const char *node_name = graphnode_name(edge->node);
fprintf(fp, "<a href='#%s' onmouseover='window.status=\"%s\"'>"
"%s&nbsp;(%1.2f%%)</a>\n",
node_name, node_name,
prettybig(edge->total, buf, sizeof buf),
percent(edge->total, total));
}

Просмотреть файл

@ -534,8 +534,10 @@ static void dump_graphedge_list(graphedge *list, FILE *fp)
for (edge = list; edge; edge = edge->next)
total += edge->total;
for (edge = list; edge; edge = edge->next) {
fprintf(fp, "<a href='#%s'>%s&nbsp;(%1.2f%%)</a>\n",
graphnode_name(edge->node),
const char *node_name = graphnode_name(edge->node);
fprintf(fp, "<a href='#%s' onmouseover='window.status=\"%s\"'>"
"%s&nbsp;(%1.2f%%)</a>\n",
node_name, node_name,
prettybig(edge->total, buf, sizeof buf),
percent(edge->total, total));
}