aboutsummaryrefslogtreecommitdiffstats
path: root/istream.h
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-24 02:01:26 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-24 02:01:26 +0000
commit975c8f9d43d4026bf1d669b08646e9d29a9d02e4 (patch)
treefd8aed139ffef712ccbb2d392c13b3949b0192c5 /istream.h
parent[w3m-dev 02530] segfault for bad cookie from local (diff)
downloadw3m-975c8f9d43d4026bf1d669b08646e9d29a9d02e4.tar.gz
w3m-975c8f9d43d4026bf1d669b08646e9d29a9d02e4.zip
run make indent
Diffstat (limited to '')
-rw-r--r--istream.h74
1 files changed, 37 insertions, 37 deletions
diff --git a/istream.h b/istream.h
index 991cc9f..b7138fa 100644
--- a/istream.h
+++ b/istream.h
@@ -1,4 +1,4 @@
-/* $Id: istream.h,v 1.3 2001/11/15 00:32:13 a-ito Exp $ */
+/* $Id: istream.h,v 1.4 2001/11/24 02:01:26 ukai Exp $ */
#ifndef IO_STREAM_H
#define IO_STREAM_H
@@ -15,7 +15,7 @@
struct stream_buffer {
unsigned char *buf;
- int size, cur, next;
+ int size, cur, next;
};
typedef struct stream_buffer *StreamBuffer;
@@ -44,73 +44,73 @@ struct ens_handle {
struct base_stream {
struct stream_buffer stream;
- void *handle;
- char type;
- char iseos;
- int (*read) ();
- void (*close) ();
+ void *handle;
+ char type;
+ char iseos;
+ int (*read) ();
+ void (*close) ();
};
struct file_stream {
struct stream_buffer stream;
- struct file_handle *handle;
- char type;
- char iseos;
- int (*read) ();
- void (*close) ();
+ struct file_handle *handle;
+ char type;
+ char iseos;
+ int (*read) ();
+ void (*close) ();
};
struct str_stream {
struct stream_buffer stream;
- Str handle;
- char type;
- char iseos;
- int (*read) ();
- void (*close) ();
+ Str handle;
+ char type;
+ char iseos;
+ int (*read) ();
+ void (*close) ();
};
#ifdef USE_SSL
struct ssl_stream {
struct stream_buffer stream;
- struct ssl_handle *handle;
- char type;
- char iseos;
- int (*read) ();
- void (*close) ();
+ struct ssl_handle *handle;
+ char type;
+ char iseos;
+ int (*read) ();
+ void (*close) ();
};
#endif /* USE_SSL */
struct encoded_stream {
struct stream_buffer stream;
- struct ens_handle *handle;
- char type;
- char iseos;
- int (*read) ();
- void (*close) ();
+ struct ens_handle *handle;
+ char type;
+ char iseos;
+ int (*read) ();
+ void (*close) ();
};
union input_stream {
- struct base_stream base;
- struct file_stream file;
- struct str_stream str;
+ struct base_stream base;
+ struct file_stream file;
+ struct str_stream str;
#ifdef USE_SSL
- struct ssl_stream ssl;
+ struct ssl_stream ssl;
#endif /* USE_SSL */
struct encoded_stream ens;
};
-typedef struct base_stream *BaseStream;
-typedef struct file_stream *FileStream;
-typedef struct str_stream *StrStream;
+typedef struct base_stream *BaseStream;
+typedef struct file_stream *FileStream;
+typedef struct str_stream *StrStream;
#ifdef USE_SSL
-typedef struct ssl_stream *SSLStream;
+typedef struct ssl_stream *SSLStream;
#endif /* USE_SSL */
typedef struct encoded_stream *EncodedStrStream;
-typedef union input_stream *InputStream;
+typedef union input_stream *InputStream;
extern InputStream newInputStream(int des);
-extern InputStream newFileStream(FILE * f, void (*closep)());
+extern InputStream newFileStream(FILE * f, void (*closep) ());
extern InputStream newStrStream(Str s);
#ifdef USE_SSL
extern InputStream newSSLStream(SSL * ssl, int sock);