about summary refs log tree commit diff stats
path: root/src/LYMain.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-08-06 13:04:14 -0400
committerThomas E. Dickey <dickey@invisible-island.net>1998-08-06 13:04:14 -0400
commitd7e8d7e419ae58610a9988ff09910670a59526ff (patch)
treea7c02ce435a282a5f60b1a297b5dd4d053b92d67 /src/LYMain.c
parente6ba2a01f70f84d9133cf305e4b493c9d656cb21 (diff)
downloadlynx-snapshots-d7e8d7e419ae58610a9988ff09910670a59526ff.tar.gz
snapshot of project "lynx", label v2-8-1dev_20
Diffstat (limited to 'src/LYMain.c')
-rw-r--r--src/LYMain.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/LYMain.c b/src/LYMain.c
index 3651f0cc..ea5584d0 100644
--- a/src/LYMain.c
+++ b/src/LYMain.c
@@ -1,5 +1,4 @@
 #include <HTUtils.h>
-#include <tcp.h>
 #include <HTTP.h>
 #include <HTParse.h>
 #include <HTAccess.h>
@@ -52,8 +51,6 @@
 #include <LYexit.h>
 #include <LYLeaks.h>
 
-#define FREE(x) if (x) {free(x); x = NULL;}
-
 #ifdef VMS
 #define DISPLAY "DECW$DISPLAY"
 #else
@@ -336,7 +333,9 @@ PUBLIC BOOLEAN LYMBMAdvanced = TRUE;
 PUBLIC int LYStatusLine = -1;		 /* Line for statusline() if > -1 */
 PUBLIC BOOLEAN LYCollapseBRs = COLLAPSE_BR_TAGS;  /* Collapse serial BRs? */
 PUBLIC BOOLEAN LYSetCookies = SET_COOKIES; /* Process Set-Cookie headers? */
-PUBLIC BOOLEAN LYEatAllCookies = EAT_ALL_COOKIES; /* take all cookies?    */
+PUBLIC BOOLEAN LYAcceptAllCookies = ACCEPT_ALL_COOKIES; /* take all cookies? */
+PUBLIC char *LYCookieAcceptDomains = NULL; /* domains to accept all cookies */
+PUBLIC char *LYCookieRejectDomains = NULL; /* domains to reject all cookies */
 PUBLIC char *XLoadImageCommand = NULL;	/* Default image viewer for X */
 PUBLIC BOOLEAN LYNoISMAPifUSEMAP = FALSE; /* Omit ISMAP link if MAP present? */
 PUBLIC int LYHiddenLinks = HIDDENLINKS_SEPARATE; /* Show hidden links? */
@@ -2525,6 +2524,10 @@ static int width_fun ARGS3(
 
 static Parse_Args_Type Arg_Table [] =
 {
+   PARSE_SET(
+      "accept_all_cookies", SET_ARG,		&LYAcceptAllCookies,
+      "accepts all cookies"
+   ),
    PARSE_FUN(
       "anonymous",	FUNCTION_ARG,	anonymous_fun,
       "used to specify the anonymous account"
@@ -2608,10 +2611,6 @@ with -dump, format output as with -traversal, but to stdout"
       "dump",		FUNCTION_ARG,		dump_output_fun,
       "dump the first file to stdout and exit"
    ),
-   PARSE_SET(
-      "eat_all_cookies", SET_ARG,		&LYEatAllCookies,
-      "accepts all cookies"
-   ),
    PARSE_FUN(
       "editor", 	NEED_FUNCTION_ARG,	editor_fun,
       "=EDITOR\nenable edit mode with specified editor"