raw_write() always fopen("wb"), even on windows use "\n" line termination
This commit is contained in:
parent
10e5dbfbcc
commit
14f884729c
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue