aboutsummaryrefslogtreecommitdiffstats
path: root/istream.h
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2013-10-14 14:02:26 +0000
committerTatsuya Kinoshita <tats@debian.org>2013-10-14 14:02:26 +0000
commitf7ff70f6da9f70e21c690f1d11a695de7536bf6f (patch)
tree42815fcf0bf71d5944461cb83f3f779138080d80 /istream.h
parentMerge branch 'feature/debian-version' (diff)
parentWorkaround of GC crash on Cygwin64 (diff)
downloadw3m-f7ff70f6da9f70e21c690f1d11a695de7536bf6f.tar.gz
w3m-f7ff70f6da9f70e21c690f1d11a695de7536bf6f.zip
Merge branch 'bug/win64gc'
Conflicts: istream.c main.c
Diffstat (limited to 'istream.h')
-rw-r--r--istream.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/istream.h b/istream.h
index e710e78..5a04be0 100644
--- a/istream.h
+++ b/istream.h
@@ -2,13 +2,13 @@
#ifndef IO_STREAM_H
#define IO_STREAM_H
+#include "indep.h"
#include <stdio.h>
#ifdef USE_SSL
#include <openssl/bio.h>
#include <openssl/x509.h>
#include <openssl/ssl.h>
#endif
-#include "Str.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -36,7 +36,7 @@ union input_stream;
struct ens_handle {
union input_stream *is;
- Str s;
+ struct growbuf gb;
int pos;
char encoding;
};
@@ -119,9 +119,14 @@ extern InputStream newEncodedStream(InputStream is, char encoding);
extern int ISclose(InputStream stream);
extern int ISgetc(InputStream stream);
extern int ISundogetc(InputStream stream);
-extern Str StrISgets(InputStream stream);
-extern Str StrmyISgets(InputStream stream);
+extern Str StrISgets2(InputStream stream, char crnl);
+#define StrISgets(stream) StrISgets2(stream, FALSE)
+#define StrmyISgets(stream) StrISgets2(stream, TRUE)
+void ISgets_to_growbuf(InputStream stream, struct growbuf *gb, char crnl);
+#ifdef unused
extern int ISread(InputStream stream, Str buf, int count);
+#endif
+int ISread_n(InputStream stream, char *dst, int bufsize);
extern int ISfileno(InputStream stream);
extern int ISeos(InputStream stream);
#ifdef USE_SSL