W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2001

Some line to be added?

From: Huajun Zeng <i-hjzeng@microsoft.com>
Date: Thu, 26 Apr 2001 09:12:53 +0800
Message-ID: <F4C77846CEE593418BE5AB7B6A83111E0377FAE8@bjs-msg-01.fareast.corp.microsoft.com>
To: <html-tidy@w3.org>
A routine in function GetCData in lexer.c will run better when I insert
a new line(as following) into it. No error message I've got with the
original code, but I just watch out the memory buffer and found
something not good enough.
...
else if (c == '>' && start >= 0)
{
	if (((len = lexer->lexsize - start) ==
wstrlen(container->element)) &&
	wstrncasecmp(lexer->lexbuf+start, container->element, len) == 0)
	{
		lexer->txtend = start - 2;
		lexer->lexsize = start - 2;		//the line I
added
		break;
	}
...
}
Received on Wednesday, 25 April 2001 21:15:17 GMT

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