about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2008-09-10 14:03:11 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2008-09-10 14:03:11 -0400
commitb64489ef364361173db889faaf608495b887edf2 (patch)
tree4765b0d37392e038d69f068e646cceec34ce4c4e /src
parent67b10f416009d4334c0a494a46235d284675fa2d (diff)
downloadlynx-snapshots-b64489ef364361173db889faaf608495b887edf2.tar.gz
snapshot of project "lynx", label v2-8-7dev_9k
Diffstat (limited to 'src')
-rw-r--r--src/LYGlobalDefs.h8
-rw-r--r--src/LYMain.c9
-rw-r--r--src/LYReadCFG.c5
-rw-r--r--src/LYrcFile.h3
4 files changed, 20 insertions, 5 deletions
diff --git a/src/LYGlobalDefs.h b/src/LYGlobalDefs.h
index c2ea05d2..87d9428f 100644
--- a/src/LYGlobalDefs.h
+++ b/src/LYGlobalDefs.h
@@ -1,5 +1,8 @@
-/* $LynxId: LYGlobalDefs.h,v 1.109 2008/03/18 00:38:10 Paul.B.Mahol Exp $ */
-/* global variable definitions */
+/*
+ * $LynxId: LYGlobalDefs.h,v 1.110 2008/09/10 11:56:53 tom Exp $
+ *
+ * global variable definitions
+ */
 
 #ifndef LYGLOBALDEFS_H
 #define LYGLOBALDEFS_H
@@ -211,6 +214,7 @@ extern "C" {
     extern BOOLEAN LYoverride_no_cache;		/* don't need fresh copy, from history */
     extern BOOLEAN LYresubmit_posts;
     extern BOOLEAN LYtrimInputFields;
+    extern BOOLEAN LYxhtml_parsing;
     extern BOOLEAN bold_H1;
     extern BOOLEAN bold_headers;
     extern BOOLEAN bold_name_anchors;
diff --git a/src/LYMain.c b/src/LYMain.c
index a6e88023..b0cf33d9 100644
--- a/src/LYMain.c
+++ b/src/LYMain.c
@@ -1,4 +1,6 @@
-/* $LynxId: LYMain.c,v 1.184 2008/07/02 21:26:25 Paul.B.Mahol Exp $ */
+/*
+ * $LynxId: LYMain.c,v 1.185 2008/09/10 11:58:28 tom Exp $
+ */
 #include <HTUtils.h>
 #include <HTTP.h>
 #include <HTParse.h>
@@ -191,6 +193,7 @@ BOOLEAN LYinternal_flag = FALSE;	/* override no-cache b/c internal link */
 BOOLEAN LYoverride_no_cache = FALSE;	/*override no-cache b/c history etc */
 BOOLEAN LYresubmit_posts = ALWAYS_RESUBMIT_POSTS;
 BOOLEAN LYtrimInputFields = FALSE;
+BOOLEAN LYxhtml_parsing = FALSE;
 BOOLEAN bold_H1 = FALSE;
 BOOLEAN bold_headers = FALSE;
 BOOLEAN bold_name_anchors = FALSE;
@@ -3987,6 +3990,10 @@ with filenames of these images"
       "emit backspaces in output if -dumping or -crawling\n(like 'man' does)"
    ),
 #endif
+   PARSE_SET(
+      "xhtml-parsing",	4|SET_ARG,		LYxhtml_parsing,
+      "enable XHTML 1.0 parsing"
+   ),
    PARSE_NIL
 };
 /* *INDENT-ON* */
diff --git a/src/LYReadCFG.c b/src/LYReadCFG.c
index 4096feed..718344fd 100644
--- a/src/LYReadCFG.c
+++ b/src/LYReadCFG.c
@@ -1,4 +1,6 @@
-/* $LynxId: LYReadCFG.c,v 1.128 2008/03/18 00:38:10 Paul.B.Mahol Exp $ */
+/*
+ * $LynxId: LYReadCFG.c,v 1.129 2008/09/10 12:06:23 tom Exp $
+ */
 #ifndef NO_RULES
 #include <HTRules.h>
 #else
@@ -1601,6 +1603,7 @@ static Config_Type Config_Table [] =
      PARSE_FUN(RC_VIEWER,               viewer_fun),
      PARSE_Env(RC_WAIS_PROXY,           0),
      PARSE_STR(RC_XLOADIMAGE_COMMAND,   XLoadImageCommand),
+     PARSE_SET(RC_XHTML_PARSING,        LYxhtml_parsing),
      PARSE_PRG(RC_ZCAT_PATH,            ppZCAT),
      PARSE_PRG(RC_ZIP_PATH,             ppZIP),
 
diff --git a/src/LYrcFile.h b/src/LYrcFile.h
index e446642f..26504d88 100644
--- a/src/LYrcFile.h
+++ b/src/LYrcFile.h
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYrcFile.h,v 1.25 2008/03/18 00:38:10 Paul.B.Mahol Exp $
+ * $LynxId: LYrcFile.h,v 1.26 2008/09/10 12:05:26 tom Exp $
  */
 #ifndef LYRCFILE_H
 #define LYRCFILE_H
@@ -254,6 +254,7 @@
 #define RC_VI_KEYS_ALWAYS_ON            "vi_keys_always_on"
 #define RC_WAIS_PROXY                   "wais_proxy"
 #define RC_XLOADIMAGE_COMMAND           "xloadimage_command"
+#define RC_XHTML_PARSING                "xhtml_parsing"
 #define RC_ZCAT_PATH                    "zcat_path"
 #define RC_ZIP_PATH                     "zip_path"