summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFormat.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/lynx/WWW/Library/Implementation/HTFormat.h')
-rw-r--r--gnu/usr.bin/lynx/WWW/Library/Implementation/HTFormat.h35
1 files changed, 24 insertions, 11 deletions
diff --git a/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFormat.h b/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFormat.h
index 63c96f5b70f..4ee14688e53 100644
--- a/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFormat.h
+++ b/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFormat.h
@@ -38,7 +38,8 @@ typedef HTAtom * HTFormat;
*/
/* Internal ones */
-#define WWW_SOURCE HTAtom_for("www/source") /* Whatever it was originally*/
+/* #define WWW_SOURCE HTAtom_for("www/source") */ /* Whatever it was originally*/
+extern HTAtom * WWW_SOURCE; /* calculated once, heavy used */
/*
@@ -343,7 +344,7 @@ extern int HTFileCopy PARAMS((
HTStream* sink));
-#ifdef SOURCE_CACHE
+#ifdef USE_SOURCE_CACHE
#include <HTChunk.h>
/*
@@ -424,7 +425,7 @@ extern int HTParseFile PARAMS((
FILE *fp,
HTStream* sink));
-#ifdef SOURCE_CACHE
+#ifdef USE_SOURCE_CACHE
/*
HTParseMem: Parse a document in memory
@@ -443,12 +444,9 @@ extern int HTParseMem PARAMS((
#endif
#ifdef USE_ZLIB
-
-#ifdef USE_ZLIB
#include <zlib.h>
-#endif /* USE_ZLIB */
/*
-HTParseGzFile: Parse a gzipped File through a file pointer
+HTParseGzFile: Parse a gzip'ed File through a file pointer
This routine is called by protocols modules to load an object. uses
HTStreamStack and HTGzFileCopy. Returns HT_LOADED if successful, can also
@@ -463,6 +461,24 @@ extern int HTParseGzFile PARAMS((
#endif /* USE_ZLIB */
+#ifdef USE_BZLIB
+#include <bzlib.h>
+/*
+HTParseBzFile: Parse a bzip2'ed File through a file pointer
+
+ This routine is called by protocols modules to load an object. uses
+ HTStreamStack and HTGzFileCopy. Returns HT_LOADED if successful, can also
+ return HT_PARTIAL_CONTENT, HT_NO_DATA, or other <0 for failure.
+ */
+extern int HTParseBzFile PARAMS((
+ HTFormat format_in,
+ HTFormat format_out,
+ HTParentAnchor *anchor,
+ BZFILE *bzfp,
+ HTStream* sink));
+
+#endif /* USE_BZLIB */
+
/*
HTNetToText: Convert Net ASCII to local representation
@@ -493,8 +509,5 @@ Epilogue
*/
extern BOOL HTOutputSource; /* Flag: shortcut parser */
-#endif
-
-/*
- end */
+#endif /* HTFORMAT_H */