remove the entire file buffer modification which was never come in effect

Take over this task to the OS which will handle this properly.
This commit is contained in:
dwarning 2018-10-31 08:23:56 +01:00 committed by Holger Vogt
parent f0f19f87a3
commit 42d29ef49f
2 changed files with 0 additions and 8 deletions

View File

@ -45,8 +45,6 @@ extern struct dbcomm *dbs;
FILE *rawfileFp;
bool rawfileBinary;
#define RAWBUF_SIZE 32768
char rawfileBuf[RAWBUF_SIZE];
/*To tell resume the rawfile name saj*/
char *last_used_rawfile = NULL;
/*end saj */
@ -286,7 +284,6 @@ dosim(
ft_setflag = FALSE;
return 1;
}
setvbuf(rawfileFp, rawfileBuf, _IOFBF, RAWBUF_SIZE);
#endif /* __MINGW32__ */
rawfileBinary = !ascii;
} else {

View File

@ -27,8 +27,6 @@ Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
#include "ngspice/inpdefs.h"
#define RAWBUF_SIZE 32768
extern char rawfileBuf[RAWBUF_SIZE];
extern void line_free_x(struct card *deck, bool recurse);
extern INPmodel *modtab;
@ -114,14 +112,12 @@ com_resume(wordlist *wl)
ft_setflag = FALSE;
return;
}
setvbuf(rawfileFp, rawfileBuf, _IOFBF, RAWBUF_SIZE);
} else if (!ascii) {
if ((rawfileFp = fopen(last_used_rawfile, "ab")) == NULL) {
perror(last_used_rawfile);
ft_setflag = FALSE;
return;
}
setvbuf(rawfileFp, rawfileBuf, _IOFBF, RAWBUF_SIZE);
}
/*---------------------------------------------------------------------------*/
#else
@ -130,7 +126,6 @@ com_resume(wordlist *wl)
ft_setflag = FALSE;
return;
}
setvbuf(rawfileFp, rawfileBuf, _IOFBF, RAWBUF_SIZE);
#endif
rawfileBinary = !ascii;
} else {