[sword-devel]

sword-devel@crosswire.org sword-devel@crosswire.org
Sun, 28 Jul 2002 17:47:29 +0600


Hi Troy,

Lo an example of erroneous error code (0) which does not point that the lex is 
empty.

#include <rawld.h>

void main(int argc, char **argv)
{
	RawLD::createModule("tmp/lextest");
	RawLD lex("tmp/lextest");

	lex.SetKey("a");
	lex << "aaa";

	lex.SetKey("a");
	lex.deleteEntry();

	lex = TOP;
	std::cout << "Error() = " << (int)lex.Error() << std::endl;
}

-- 
Victor Porton (porton@ex-code.com)