From f4d6305bdddca9c1deb51bd19904779cbbf4406b Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 10 Jan 2003 17:06:17 +0000 Subject: [w3m-dev 03632] cleanup (don't close connection of news server) * file.c (loadSomething): remove UFclose nntp:,news: (loadFile): UFclose (loadGeneralFile): always UFclose * html.h (UFclose): only reset when ISclose ==0 * istream.c (ISclose): return int (ISfileno): flag IST_UNCLOSE * istream.h (ISclose): return int (IST_UNCLOSE): added * news.c (news_close): reset IST_UNCLOSE (news_open): set IST_UNCLOSE From: Hironori SAKAMOTO --- istream.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'istream.h') diff --git a/istream.h b/istream.h index fa91d9b..dc60a0f 100644 --- a/istream.h +++ b/istream.h @@ -1,4 +1,4 @@ -/* $Id: istream.h,v 1.9 2002/09/28 16:30:07 ukai Exp $ */ +/* $Id: istream.h,v 1.10 2003/01/10 17:06:24 ukai Exp $ */ #ifndef IO_STREAM_H #define IO_STREAM_H @@ -116,7 +116,7 @@ extern InputStream newStrStream(Str s); extern InputStream newSSLStream(SSL * ssl, int sock); #endif extern InputStream newEncodedStream(InputStream is, char encoding); -extern void ISclose(InputStream stream); +extern int ISclose(InputStream stream); extern int ISgetc(InputStream stream); extern int ISundogetc(InputStream stream); extern Str StrISgets(InputStream stream); @@ -134,6 +134,7 @@ extern Str ssl_get_certificate(SSL *ssl, char *hostname); #define IST_STR 2 #define IST_SSL 3 #define IST_ENCODED 4 +#define IST_UNCLOSE 0x10 #define IStype(stream) ((stream)->base.type) #define is_eos(stream) ISeos(stream) -- cgit v1.2.3