diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:12:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:12:14 +0000 |
commit | 982972c2aada53f83389987317fb6cbee9ce5a91 (patch) | |
tree | 25420c3b905b2e00f02a895d877fd0669025ee35 /WWW/Library/Implementation/HTWSRC.h | |
parent | Initial commit. (diff) | |
download | lynx-3ba7e98c1b65687e0f2fc1293509725761903a18.tar.xz lynx-3ba7e98c1b65687e0f2fc1293509725761903a18.zip |
Adding upstream version 2.8.9rel.1.upstream/2.8.9rel.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'WWW/Library/Implementation/HTWSRC.h')
-rw-r--r-- | WWW/Library/Implementation/HTWSRC.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/WWW/Library/Implementation/HTWSRC.h b/WWW/Library/Implementation/HTWSRC.h new file mode 100644 index 0000000..152d27a --- /dev/null +++ b/WWW/Library/Implementation/HTWSRC.h @@ -0,0 +1,43 @@ +/* A parser for WAIS source files + WAIS SOURCE FILE PARSER + + This converter returns a stream object into which a WAIS source file can be + written. The result is put via a structured stream into whatever format was + required for the output stream. + + See also: HTWAIS protocol interface module + + */ +#ifndef HTWSRC_H +#define HTWSRC_H + +#include <HTFormat.h> + +#ifdef __cplusplus +extern "C" { +#endif + extern char from_hex(char c); + + extern HTStream *HTWSRCConvert(HTPresentation *pres, + HTParentAnchor *anchor, + HTStream *sink); + +/* + +Escaping Strings + + HTDeSlash takes out the invlaid characters in a URL path ELEMENT by + converting them into hex-escaped characters. HTEnSlash does the reverse. + + Each returns a pointer to a newly allocated string which must eventually be + freed by the caller. + + */ + extern char *HTDeSlash(const char *str); + + extern char *HTEnSlash(const char *str); + +#ifdef __cplusplus +} +#endif +#endif /* HTWSRC_H */ |