|
|
|
@ -984,7 +984,7 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name) |
|
|
|
char *global_copy = NULL, keep_char; |
|
|
|
int line_number = 1; /* sjb - renamed to avoid confusion with struct line */ |
|
|
|
FILE *newfp; |
|
|
|
#ifdef _DEBUG |
|
|
|
#ifdef TRACE |
|
|
|
FILE *fdo; |
|
|
|
struct line *tmp_ptr1 = NULL; |
|
|
|
#endif |
|
|
|
@ -1509,7 +1509,7 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name) |
|
|
|
inp_add_control_section(working, &line_number); |
|
|
|
} |
|
|
|
*data = cc; |
|
|
|
#ifdef _DEBUG |
|
|
|
#ifdef TRACE |
|
|
|
/*debug: print into file*/ |
|
|
|
if (tmp_ptr1) tfree(tmp_ptr1); |
|
|
|
fdo = fopen("debug-out.txt", "w"); |
|
|
|
@ -2896,9 +2896,9 @@ inp_sort_params( struct line *start_card, struct line *end_card, struct line *ca |
|
|
|
/* rows */ |
|
|
|
depends_on = (char ***) tmalloc(sizeof(char **) * arr_size); |
|
|
|
/* columns */ |
|
|
|
for (i = 0; i < arr_size; i++) |
|
|
|
{ |
|
|
|
depends_on[i] = (char **) tmalloc(sizeof(char *) * 100); |
|
|
|
for (i = 0; i < arr_size; i++) |
|
|
|
{ |
|
|
|
depends_on[i] = (char **) tmalloc(sizeof(char *) * 100); |
|
|
|
} |
|
|
|
|
|
|
|
ptr_array = (struct line **) tmalloc(arr_size*sizeof(struct line *)); |
|
|
|
@ -3070,8 +3070,8 @@ inp_sort_params( struct line *start_card, struct line *end_card, struct line *ca |
|
|
|
tfree(param_names); |
|
|
|
tfree(param_strs); |
|
|
|
|
|
|
|
for (i = 0; i< arr_size; i++) |
|
|
|
tfree(depends_on[i]); |
|
|
|
for (i = 0; i< arr_size; i++) |
|
|
|
tfree(depends_on[i]); |
|
|
|
tfree(depends_on); |
|
|
|
|
|
|
|
tfree(ptr_array); |
|
|
|
|