[digraphanalysis-cvs] digraphanalysis/src alias.c, graph.c, node.c, node.h,
Status: Planning
Brought to you by:
jbreker
|
From: Jeff B. <jb...@us...> - 2005-04-21 18:44:54
|
Update of /cvsroot/digraphanalysis/digraphanalysis/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19583 Modified Files: alias.c graph.c node.c node.h Log Message: compiles Index: node.h =================================================================== RCS file: /cvsroot/digraphanalysis/digraphanalysis/src/node.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** node.h 17 Apr 2005 03:05:58 -0000 1.5 --- node.h 21 Apr 2005 18:44:42 -0000 1.6 *************** *** 21,24 **** --- 21,26 ---- #include <sys/queue.h> + #include <stdio.h> + struct nodelink { Index: graph.c =================================================================== RCS file: /cvsroot/digraphanalysis/digraphanalysis/src/graph.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** graph.c 18 Apr 2005 14:53:29 -0000 1.1 --- graph.c 21 Apr 2005 18:44:42 -0000 1.2 *************** *** 22,26 **** #include "node.h" ! struct graph *graph_new(struct aliaslist *alias_list, struct nodelist *node_list) { struct graph *graph; --- 22,27 ---- #include "node.h" ! struct graph * ! graph_new(struct aliaslist *alias_list, struct nodelist *node_list) { struct graph *graph; *************** *** 35,39 **** } ! struct graphlist *graphlist_new() { struct graphlist *graphlist; --- 36,46 ---- } ! struct graph * ! graphlist_add(struct graphlist *graph_list, struct graph *graph) ! { ! } ! ! struct graphlist * ! graphlist_new() { struct graphlist *graphlist; Index: node.c =================================================================== RCS file: /cvsroot/digraphanalysis/digraphanalysis/src/node.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** node.c 15 Apr 2005 19:32:32 -0000 1.3 --- node.c 21 Apr 2005 18:44:42 -0000 1.4 *************** *** 22,28 **** #include "node.h" ! /* DONE ! */ ! struct nodelist *nodelist_new() { struct nodelist *list; --- 22,72 ---- #include "node.h" ! void ! node_free(struct node *node) ! { ! } ! ! struct node * ! node_new(char *uid) ! { ! } ! ! struct node * ! nodelist_add(struct nodelist *node_list, struct node *node) ! { ! } ! ! struct node * ! nodelist_add_msd(struct nodelist *node_list, struct node *node) ! { ! } ! ! struct nodelist * ! nodelist_duplicate(struct nodelist *node_list) ! { ! } ! ! struct node * ! nodelist_find(struct nodelist *node_list, struct node *node) ! { ! } ! ! void ! nodelist_free(struct nodelist *node_list) ! { ! } ! ! struct nodelist * ! nodelist_intersection(struct nodelist *node_list1, struct nodelist *node_list2) ! { ! } ! ! struct nodelist * ! nodelist_merge(struct nodelist *node_list1, struct nodelist *node_list2) ! { ! } ! ! struct nodelist * ! nodelist_new() { struct nodelist *list; *************** *** 34,37 **** --- 78,106 ---- } + void + nodelist_print(FILE *filep, struct nodelist *node_list) + { + } + + struct node * + nodelist_remove(struct nodelist *node_list, struct node *node) + { + } + + unsigned int + nodelist_size(struct nodelist *node_list) + { + } + + struct nodelist * + nodelist_subtract(struct nodelist *node_list1, struct nodelist *node_list2) + { + } + + struct nodelist * + nodelist_union(struct nodelist *node_list1, struct nodelist *node_list2) + { + } + int node_compare(struct node *node1, struct node *node2) { Index: alias.c =================================================================== RCS file: /cvsroot/digraphanalysis/digraphanalysis/src/alias.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** alias.c 18 Apr 2005 14:53:29 -0000 1.3 --- alias.c 21 Apr 2005 18:44:42 -0000 1.4 *************** *** 24,29 **** alias_free(struct alias *alias) { ! free(uid); ! free(name); free(alias); alias = NULL; --- 24,29 ---- alias_free(struct alias *alias) { ! free(alias->uid); ! free(alias->name); free(alias); alias = NULL; *************** *** 65,69 **** struct alias * ! aliaslist_find(struct aliaslist *alias_list, struct char *uid) { } --- 65,69 ---- struct alias * ! aliaslist_find(struct aliaslist *alias_list, char *uid) { } *************** *** 74,82 **** struct aliaslink *alias_link; ! FOREACH(alias_link, alias_list, list) { LIST_REMOVE(alias_link, list); alias_free(alias_link->alias); - free(list); free(alias_link); alias_link = NULL; --- 74,81 ---- struct aliaslink *alias_link; ! LIST_FOREACH(alias_link, alias_list, list) { LIST_REMOVE(alias_link, list); alias_free(alias_link->alias); free(alias_link); alias_link = NULL; |