about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTStream.h
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2004-05-07 01:13:29 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2004-05-07 01:13:29 -0400
commitd326f24d169154673717129098ff4554a673f178 (patch)
tree7229f817b10bcdb82f8df2b6af3a3acc792a762d /WWW/Library/Implementation/HTStream.h
parent2cd8e80bfe2792ce8999a26b34384598f58e3889 (diff)
downloadlynx-snapshots-d326f24d169154673717129098ff4554a673f178.tar.gz
snapshot of project "lynx", label v2-8-6dev_3
Diffstat (limited to 'WWW/Library/Implementation/HTStream.h')
-rw-r--r--WWW/Library/Implementation/HTStream.h62
1 files changed, 29 insertions, 33 deletions
diff --git a/WWW/Library/Implementation/HTStream.h b/WWW/Library/Implementation/HTStream.h
index 25e62570..b2941c94 100644
--- a/WWW/Library/Implementation/HTStream.h
+++ b/WWW/Library/Implementation/HTStream.h
@@ -3,11 +3,11 @@
                                              
    A Stream object is something which accepts a stream of text.
    
-   The creation methods will vary on the type of Stream Object.   All creation methods
-   return a pointer to the stream type below.
+   The creation methods will vary on the type of Stream Object.  All creation
+   methods return a pointer to the stream type below.
    
-   As you can see, but the methods used to write to the stream and close it are pointed to
-   be the object itself.
+   As you can see, but the methods used to write to the stream and close it are
+   pointed to be the object itself.
    
  */
 #ifndef HTSTREAM_H
@@ -16,43 +16,39 @@
 #ifndef HTUTILS_H
 #include <HTUtils.h>
 #endif
- 
+
 typedef struct _HTStream HTStream;
 
 /*
 
-   These are the common methods of all streams.  They should be self-explanatory, except
-   for end_document which must be called before free.  It should be merged with free in
-   fact:  it should be dummy for new streams.
+   These are the common methods of all streams.  They should be
+   self-explanatory, except for end_document which must be called before free. 
+   It should be merged with free in fact:  it should be dummy for new streams.
    
-   The put_block method was write, but this upset systems which had macros for write().
+   The put_block method was write, but this upset systems which had macros for
+   write().
    
  */
 typedef struct _HTStreamClass {
 
-        char*  name;                            /* Just for diagnostics */
-                
-        void (*_free) (
-                HTStream*       me);
-
-        void (*_abort) (
-                HTStream*       me,
-                HTError         e);
-                
-        void (*put_character) (
-                HTStream*       me,
-                char            ch);
-                                
-        void (*put_string) (
-                HTStream*       me,
-                const char *    str);
-                
-        void (*put_block) (
-                HTStream*       me,
-                const char *    str,
-                int             len);
-
-}HTStreamClass;
+    char *name;			/* Just for diagnostics */
+
+    void (*_free) (HTStream *me);
+
+    void (*_abort) (HTStream *me,
+		    HTError e);
+
+    void (*put_character) (HTStream *me,
+			   char ch);
+
+    void (*put_string) (HTStream *me,
+			const char *str);
+
+    void (*put_block) (HTStream *me,
+		       const char *str,
+		       int len);
+
+} HTStreamClass;
 
 /*
 
@@ -63,6 +59,6 @@ typedef struct _HTStreamClass {
    example from the network.
 
  */
-extern HTStream * HTErrorStream (void);
+extern HTStream *HTErrorStream(void);
 
 #endif /* HTSTREAM_H */