Update inpfile.c
Testing linux build
This commit is contained in:
@@ -122,14 +122,14 @@ void saveauxdata(Project *pr, FILE *f)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void write_demands(Project *pr, FILE *f) {
|
void write_demands(Project *pr, FILE *f) {
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
Snode *node = NULL;
|
Snode *node = NULL;
|
||||||
list_node_t *lnode = NULL;
|
list_node_t *lnode = NULL;
|
||||||
char *temp = NULL;
|
char *temp = NULL;
|
||||||
|
|
||||||
char s[MAXLINE + 1],
|
char s[MAXLINE + 1],
|
||||||
s1[MAXLINE + 1];
|
s1[MAXLINE + 1];
|
||||||
|
|
||||||
double ucf = pr->Ucf[DEMAND];
|
double ucf = pr->Ucf[DEMAND];
|
||||||
@@ -152,10 +152,10 @@ void write_demands(Project *pr, FILE *f) {
|
|||||||
|
|
||||||
fprintf(f, "\n%s %-31s", s, s1);
|
fprintf(f, "\n%s %-31s", s, s1);
|
||||||
|
|
||||||
if (temp = get_category_name(lnode)) {
|
//if (temp = get_category_name(lnode)) {
|
||||||
fprintf(f, " ;%s", temp);
|
// fprintf(f, " ;%s", temp);
|
||||||
free(temp);
|
// free(temp);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -372,7 +372,7 @@ int saveinpfile(Project *pr, const char *fname)
|
|||||||
|
|
||||||
// Write [DEMANDS] section
|
// Write [DEMANDS] section
|
||||||
write_demands(pr, f);
|
write_demands(pr, f);
|
||||||
|
|
||||||
|
|
||||||
// Write [EMITTERS] section
|
// Write [EMITTERS] section
|
||||||
fprintf(f, "\n\n");
|
fprintf(f, "\n\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user