namazu-users-en
[Top] [All Lists]

Re: namazu returns references, but no matching documents

To: namazu-users-en@namazu.org
Subject: Re: namazu returns references, but no matching documents
From: Earl Hood <earl@earlhood.com>
Date: Wed, 26 Nov 2003 13:07:29 -0600
Reply-to: Earl Hood <earl@earlhood.com>
Message-id: <200311261907.hAQJ7Tg08683@gator.earlhood.com>
On November 26, 2003 at 18:53, knok@daionet.gr.jp wrote:

According to gdb, it's in the following line that the reason why
namazu couldn't work appropriately:

            val = nmz_do_searching(token, val);

(nmz/parser.c: factor())

val is an structure (NmzResult). In nmz_do_searching() function, the
value of val seems handled appropriately, but the return value was not
effected, therefore val.num is still 0 after the line.

I maed a patch for the issue. But 2 tests were still failed.

Is there a concern that namazu code be reentrant?  If so, it
appears that your patch will break this.

I do find it interesting that the namazu code passes structures
around by copy a lot.  Is there a reason for this?

--ewh

<Prev in Thread] Current Thread [Next in Thread>