w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit fe1154edcaecd09e183690794c066c3a831829eb
parent 67597d95a00a0235918744cddd03bde2668e4d49
Author: ukai <ukai>
Date:   Tue,  5 Mar 2002 16:58:09 +0000

[w3m-dev 03084] A temporary file remains when pipe + 'v'
* proto.h (saveBufferDelNum): deleted
* file.c (saveBufferDelNum): deleted
* file.c (saveBuffer): saveBufferDelNum() renamed
* main.c (vwSrc): tmpfname() recorded as fileToDelete
		use saveBuffer() instead of saveBufferDelNum()
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>

Diffstat:
MChangeLog | 9+++++++++
Mfile.c | 15++++-----------
Mmain.c | 3++-
Mproto.h | 1-
4 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,12 @@ +2002-03-06 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp> + + * [w3m-dev 03084] A temporary file remains when pipe + 'v' + * proto.h (saveBufferDelNum): deleted + * file.c (saveBufferDelNum): deleted + * file.c (saveBuffer): saveBufferDelNum() renamed + * main.c (vwSrc): tmpfname() recorded as fileToDelete + use saveBuffer() instead of saveBufferDelNum() + 2002-03-04 Fumitoshi UKAI <ukai@debian.or.jp> * doc-jp/MANUAL.html: add note about file:/cgi-bin diff --git a/file.c b/file.c @@ -6470,16 +6470,6 @@ loadImageBuffer(URLFile *uf, Buffer *newBuf) } #endif -/* - * saveBuffer: write buffer to file - */ - -void -saveBuffer(Buffer *buf, FILE * f) -{ - saveBufferDelNum(buf, f, FALSE); -} - #ifndef KANJI_SYMBOLS static Str conv_rule(Line *l) @@ -6506,8 +6496,11 @@ conv_rule(Line *l) } #endif +/* + * saveBuffer: write buffer to file + */ void -saveBufferDelNum(Buffer *buf, FILE * f, int del) +saveBuffer(Buffer *buf, FILE * f) { Line *l = buf->firstLine; Str tmp; diff --git a/main.c b/main.c @@ -4150,10 +4150,11 @@ vwSrc(void) !strcasecmp(Currentbuf->type, "text/plain")) { FILE *f; Str tmpf = tmpfname(TMPF_SRC, NULL); + pushText(fileToDelete, tmpf->ptr); f = fopen(tmpf->ptr, "w"); if (f == NULL) return; - saveBufferDelNum(Currentbuf, f, showLineNum); + saveBuffer(Currentbuf, f); fclose(f); fn = tmpf->ptr; } diff --git a/proto.h b/proto.h @@ -189,7 +189,6 @@ extern Buffer *loadBuffer(URLFile *uf, Buffer *newBuf); extern Buffer *loadImageBuffer(URLFile *uf, Buffer *newBuf); #endif extern void saveBuffer(Buffer *buf, FILE * f); -extern void saveBufferDelNum(Buffer *buf, FILE * f, int del); extern Buffer *getshell(char *cmd); extern Buffer *getpipe(char *cmd); extern Buffer *openPagerBuffer(InputStream stream, Buffer *buf);