From 666431c56023f6b80782581af26b10704f71ff5b Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Tue, 5 Mar 2002 16:58:09 +0000 Subject: [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 --- ChangeLog | 11 ++++++++++- file.c | 17 +++++------------ main.c | 5 +++-- proto.h | 3 +-- 4 files changed, 19 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7692ea7..68114ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2002-03-06 Hironori Sakamoto + + * [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 * doc-jp/MANUAL.html: add note about file:/cgi-bin @@ -3031,4 +3040,4 @@ * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.330 2002/03/03 19:07:37 ukai Exp $ +$Id: ChangeLog,v 1.331 2002/03/05 16:58:09 ukai Exp $ diff --git a/file.c b/file.c index 1d9f650..015d18e 100644 --- a/file.c +++ b/file.c @@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.73 2002/02/28 16:21:54 ukai Exp $ */ +/* $Id: file.c,v 1.74 2002/03/05 16:58:09 ukai Exp $ */ #include "fm.h" #include #include "myctype.h" @@ -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 index 1386362..d215d61 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.85 2002/02/28 16:15:41 ukai Exp $ */ +/* $Id: main.c,v 1.86 2002/03/05 16:58:09 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include @@ -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 index 1b722e5..fc23d07 100644 --- a/proto.h +++ b/proto.h @@ -1,4 +1,4 @@ -/* $Id: proto.h,v 1.36 2002/02/19 15:50:18 ukai Exp $ */ +/* $Id: proto.h,v 1.37 2002/03/05 16:58:09 ukai Exp $ */ /* * This file was automatically generated by version 1.7 of cextract. * Manual editing not recommended. @@ -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); -- cgit v1.2.3