W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2001

Bug in Tidy (with config file) (fwd)

From: Dave Raggett <dsr@w3.org>
Date: Thu, 13 Dec 2001 14:20:49 +0000 (GMT Standard Time)
To: html-tidy@w3.org
Message-ID: <Pine.WNT.4.10.10112131420310.-781655@hazel>
---------- Forwarded message ----------
Date: Tue, 11 Dec 2001 11:22:10 -0800
From: Igor Okulist <okigan@hotmail.com>
To: dsr@w3.org
Subject: Bug in Tidy (with config file)

The procedure seems to have a problem when calling
tidy's main from a program.

I tracked down the problem: The "ParseConfigFile" function fails to
work correctly because "lookup" function cannot find how to process
a property in config file.

In turn the "lookup" functions fails because "hashtab" is corrupted
(all entries are NULL). A work around (not good one, but makes it
work) is to force tidy to recreate hashtab. I commented out code as
following:

void InitConfig(void)
{
    struct Flag *p;

// if (!initialized)
    {
        initialized = yes;
    
        for(p = flags; p->name != null; ++p)
            install(p->name, p->location, p->parser);
    }

    c = 0;  /* init single char buffer */
}

Regads,
Igor Okulist
Received on Thursday, 13 December 2001 09:20:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:47 GMT