summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlink <link@localhost>2002-12-05 03:34:45 +0000
committerlink <link@localhost>2002-12-05 03:34:45 +0000
commite85bb260e2751a63aaa488881d1a7b32a55eccea (patch)
tree9774829f02cd233edc072c28759f5298c72e36a5
parent347a9c8c09c2ec244d0544726e3f7921c9485ef9 (diff)
downloadmarkup-validator-e85bb260e2751a63aaa488881d1a7b32a55eccea.zip
markup-validator-e85bb260e2751a63aaa488881d1a7b32a55eccea.tar.gz
markup-validator-e85bb260e2751a63aaa488881d1a7b32a55eccea.tar.bz2
Preinitialize some datastructures. We now pass almost all test cases...
-rwxr-xr-xhttpd/cgi-bin/check10
1 files changed, 6 insertions, 4 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index 2b914f8..d4e2a3d 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -9,7 +9,7 @@
# This source code is available under the license at:
# http://www.w3.org/Consortium/Legal/copyright-software
#
-# $Id: check,v 1.312 2002-12-05 03:11:08 link Exp $
+# $Id: check,v 1.313 2002-12-05 03:34:45 link Exp $
#
# Disable buffering on STDOUT!
@@ -133,7 +133,7 @@ The error reported was: '$@'
#
# Strings
- $VERSION = q$Revision: 1.312 $;
+ $VERSION = q$Revision: 1.313 $;
$VERSION =~ s/Revision: ([\d\.]+) /$1/;
} # end of BEGIN block.
@@ -177,8 +177,10 @@ $File->{Charset}->{Override} = ''; # From CGI/user override.
$File->{Offsets}->[0] = [0, 0]; # The first item isn't used...
#
-# List to hold line numbers for encoding errors
-$File->{Lines} = [];
+# Initialize datastructures.
+$File->{Lines} = []; # Line numbers for encoding errors.
+$File->{Warnings} = []; # Warnings...
+$File->{'Other Namespaces'} = []; # Other (non-root) Namespaces.
#########################################