Update of /cvsroot/digraphanalysis/digraphanalysis/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17444
Modified Files:
list.c output.c
Log Message:
bugs
- When the list gets new nodes in the front via list_merge our pointer that we passed points to the middle of the list. therefore we must always use the returned object instead of assuming the passed object is updated. (Thats probably one of the first things they teach when teaching variable passing with pointers to functions, geez :)
- if the object we are looking for is larger than the object we are inspecting then break if larger not smaller.
Index: output.c
===================================================================
RCS file: /cvsroot/digraphanalysis/digraphanalysis/src/output.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** output.c 5 Sep 2005 17:52:41 -0000 1.9
--- output.c 7 Sep 2005 00:01:44 -0000 1.10
***************
*** 31,37 ****
#include "output.h"
! /* Note: analysis_main_directory -> output_main_directory
! *
! * Create and enter the main output directory.
*/
int
--- 31,35 ----
#include "output.h"
! /* Create and enter the main output directory.
*/
int
***************
*** 55,59 ****
}
! /* analysis_output_report -> output_report
*/
void
--- 53,57 ----
}
! /* Generate the main report.
*/
void
***************
*** 132,135 ****
--- 130,135 ----
}
+ /* Create a new directory using the same directory stats as the parent directory.
+ */
int
output_new_directory(char *dirname)
Index: list.c
===================================================================
RCS file: /cvsroot/digraphanalysis/digraphanalysis/src/list.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** list.c 5 Sep 2005 17:52:41 -0000 1.7
--- list.c 7 Sep 2005 00:01:44 -0000 1.8
***************
*** 68,72 ****
if((ret_list = list_new(list->compare, list->print)) != NULL)
! if(list_merge(ret_list, list) == NULL)
{
list_free(ret_list);
--- 68,72 ----
if((ret_list = list_new(list->compare, list->print)) != NULL)
! if((ret_list = list_merge(ret_list, list)) == NULL)
{
list_free(ret_list);
***************
*** 189,193 ****
free(iter);
}
! if(i <= 0)
break;
}
--- 189,193 ----
free(iter);
}
! if(i >= 0)
break;
}
|