[digraphanalysis-cvs] digraphanalysis/src analysis.c, list.c, node.h, output.c,
Status: Planning
Brought to you by:
jbreker
|
From: Jeff B. <jb...@us...> - 2005-09-05 17:52:49
|
Update of /cvsroot/digraphanalysis/digraphanalysis/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14866 Modified Files: analysis.c list.c node.h output.c Log Message: mmm code that works (note still some odd bugs around) Index: node.h =================================================================== RCS file: /cvsroot/digraphanalysis/digraphanalysis/src/node.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** node.h 28 May 2005 20:58:00 -0000 1.11 --- node.h 5 Sep 2005 17:52:41 -0000 1.12 *************** *** 35,38 **** --- 35,39 ---- unsigned int node_distance(struct node *, struct node *); void node_free(struct node *); + void node_msd(struct node *, struct list *); struct node *node_new(char *); void node_print(FILE *, void *); Index: output.c =================================================================== RCS file: /cvsroot/digraphanalysis/digraphanalysis/src/output.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** output.c 4 Sep 2005 22:50:22 -0000 1.8 --- output.c 5 Sep 2005 17:52:41 -0000 1.9 *************** *** 191,194 **** --- 191,195 ---- fprintf(filep, "This key has not signed, nor been signed by:\n"); list_print(filep, tmp_nodelist); + tmp_size = list_size(tmp_nodelist); fprintf(filep, " Total: %u key%s in this set.\n\n", tmp_size, ((tmp_size == 1)?"":"s")); Index: analysis.c =================================================================== RCS file: /cvsroot/digraphanalysis/digraphanalysis/src/analysis.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** analysis.c 28 May 2005 20:58:00 -0000 1.4 --- analysis.c 5 Sep 2005 17:52:41 -0000 1.5 *************** *** 48,52 **** --- 48,55 ---- LIST_FOREACH(node_link, graph->node_list, list) + { + node_msd(node_link->object, graph->node_list); output_file(node_link->object, graph); + } return; Index: list.c =================================================================== RCS file: /cvsroot/digraphanalysis/digraphanalysis/src/list.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** list.c 28 May 2005 20:58:00 -0000 1.6 --- list.c 5 Sep 2005 17:52:41 -0000 1.7 *************** *** 202,205 **** --- 202,207 ---- unsigned int size; + size = 0; + LIST_FOREACH(iter, list, list) if((size + 1) != 0) *************** *** 269,271 **** return ret_list; } - --- 271,272 ---- |