raw_write() always fopen("wb"), even on windows use "\n" line termination

This commit is contained in:
rlar 2012-05-06 14:28:33 +02:00
parent 10e5dbfbcc
commit 14f884729c
5 changed files with 5 additions and 5 deletions

View File

@ -69,7 +69,7 @@ NBJTdump(GENmodel *inModel, CKTcircuit *ckt)
anyOutput = 1;
sprintf(fileName, "%s%s.%d.%s", output->OUTProotFile, prefix,
*state_num, inst->NBJTname);
if ((fpState = fopen(fileName, "w")) == NULL) {
if ((fpState = fopen(fileName, "wb")) == NULL) {
perror(fileName);
} else {
NBJTputHeader(fpState, ckt, inst);

View File

@ -70,7 +70,7 @@ NBJT2dump(GENmodel *inModel, CKTcircuit *ckt)
anyOutput = 1;
sprintf(fileName, "%s%s.%d.%s", output->OUTProotFile, prefix,
*state_num, inst->NBJT2name);
if ((fpState = fopen(fileName, "w")) == NULL) {
if ((fpState = fopen(fileName, "wb")) == NULL) {
perror(fileName);
} else {
NBJT2putHeader(fpState, ckt, inst);

View File

@ -69,7 +69,7 @@ NUMDdump(GENmodel *inModel, CKTcircuit *ckt)
anyOutput = 1;
sprintf(fileName, "%s%s.%d.%s", output->OUTProotFile, prefix,
*state_num, inst->NUMDname);
if ((fpState = fopen(fileName, "w")) == NULL) {
if ((fpState = fopen(fileName, "wb")) == NULL) {
perror(fileName);
} else {
NUMDputHeader(fpState, ckt, inst);

View File

@ -70,7 +70,7 @@ NUMD2dump(GENmodel *inModel, CKTcircuit *ckt)
anyOutput = 1;
sprintf(fileName, "%s%s.%d.%s", output->OUTProotFile, prefix,
*state_num, inst->NUMD2name);
if ((fpState = fopen(fileName, "w")) == NULL) {
if ((fpState = fopen(fileName, "wb")) == NULL) {
perror(fileName);
} else {
NUMD2putHeader(fpState, ckt, inst);

View File

@ -70,7 +70,7 @@ NUMOSdump(GENmodel *inModel, CKTcircuit *ckt)
anyOutput = 1;
sprintf(fileName, "%s%s.%d.%s", output->OUTProotFile, prefix,
*state_num, inst->NUMOSname);
if ((fpState = fopen(fileName, "w")) == NULL) {
if ((fpState = fopen(fileName, "wb")) == NULL) {
perror(fileName);
} else {
NUMOSputHeader(fpState, ckt, inst);