/* testhtml.c */ /* Copyright 1997-1999 by Eberhard Mattes Donated to the public domain. No warranty. 1997-07-19 Initial version 1997-09-06 "href" configuration 1997-09-13 url_check_path() removed 1997-10-20 Add openlog(), closelog(), and setlogmask() 1997-10-21 libemfw.h defines octet 1997-10-22 "script" configuration 1998-02-19 Handle script macros in attributes 1999-03-17 CONNECT (https/SSL) 1999-08-26 allow/block embed 1999-09-16 allow/block style */ #include #include #include #include #include #include "magic.h" #include "libemfw.h" #include "emio.h" #include "squid-gw.h" #include "ctype.h" /* These variables must be global. They are just referenced by http.c, but not actually used. */ int needauth = 0; magic_t magic; EMI_FILE *c_in, *s_in; EMO_FILE *c_out, *s_out; struct ctype_t* ctypes; static enum { ANNO_NONE, ANNO_KEYWORDS, ANNO_ANSI_COLOR } anno_mode; static EMI_FILE *in; static EMO_FILE *out; static void usage (void) ATTR_NORETURN; static void usage (void) { fputs ("Usage: testhtml [