w3m

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

commit fd38bce05851317f537d3ba70d752f5eebd08529
parent e714d5362ad7c69d227784fce64ddcc7882bc0b5
Author: ukai <ukai>
Date:   Sun, 19 Jan 2003 08:28:39 +0000

[w3m-dev 03654] file.c:image_source when undef USE_IMAGE
* file.c (readHeader): image_source ifdef USE_IMAGE
	(loadGeneralFile): ditto
	(uncompress_stream): ditto
From: WATANABE Katsuyuki <knabe@sannet.ne.jp>

Diffstat:
MChangeLog | 7+++++++
Mfile.c | 14++++++++++++--
2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,10 @@ +2003-01-19 WATANABE Katsuyuki <knabe@sannet.ne.jp> + + * [w3m-dev 03654] file.c:image_source when undef USE_IMAGE + * file.c (readHeader): image_source ifdef USE_IMAGE + (loadGeneralFile): ditto + (uncompress_stream): ditto + 2003-01-19 Fumitoshi UKAI <ukai@debian.or.jp> * [w3m-dev 03653] SourceForge.net: 576032 w3m https crashes with OpenSSL-0.9.7 diff --git a/file.c b/file.c @@ -594,7 +594,11 @@ readHeader(URLFile *uf, Buffer *newBuf, int thru, ParsedURL *pu) else http_response_code = 0; - if (thru && !newBuf->header_source && !image_source) { + if (thru && !newBuf->header_source +#ifdef USE_IMAGE + && !image_source +#endif + ) { Str tmpf = tmpfname(TMPF_DFL, NULL); src = fopen(tmpf->ptr, "w"); if (src) @@ -1899,8 +1903,10 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer, page_loaded: if (page) { FILE *src; +#ifdef USE_IMAGE if (image_source) return NULL; +#endif tmp = tmpfname(TMPF_SRC, ".html"); src = fopen(tmp->ptr, "w"); if (src) { @@ -7734,7 +7740,11 @@ uncompress_stream(URLFile *uf, char **src) return; } - if (uf->scheme != SCM_LOCAL && !image_source) { + if (uf->scheme != SCM_LOCAL +#ifdef USE_IMAGE + && !image_source +#endif + ) { tmpf = tmpfname(TMPF_DFL, ext)->ptr; if (save2tmp(*uf, tmpf) < 0) { UFclose(uf);