search for: curr_node

Displaying 4 results from an estimated 4 matches for "curr_node".

2014 Apr 13
2
Adding an external library to Xapian
It is there: https://github.com/sidmutha/xapian/blob/master/xapian-core/api/Makefile.mk#L53 On an other note, I'm trying to run ./bootstrap from the cloned repo. But it gives an error saying "unknown option -C" followed by "Bootstrap failed". *Siddhant Mutha* Undergraduate Student Department of Computer Science and Engineering IIT Madras Chennai
2014 Apr 13
2
Adding an external library to Xapian
...gt; > diff --git a/xapian-core/api/trie.cc b/xapian-core/api/trie.cc > index eba3a15..b856f39 100644 > --- a/xapian-core/api/trie.cc > +++ b/xapian-core/api/trie.cc > @@ -33,10 +33,10 @@ Trie::Trie() { > void > Trie::add_term(std::string term) { > struct trie_node *curr_node = &root; > - for (int i = 0; i < term.size(); ++i) { > + for (unsigned int i = 0; i < term.size(); ++i) { > for (vector<trie_node *>::iterator it = > curr_node->children.begi > it != curr_node->children...
2004 Dec 05
1
BUG in fs/ext3/dir.c
...first. */ - if (info->extra_fname && - call_filldir(filp, dirent, filldir, info->extra_fname)) - goto finished; + if (info->extra_fname) { + if(call_filldir(filp, dirent, filldir, info->extra_fname)) + goto finished; + else + goto next_entry; + } if (!info->curr_node) info->curr_node = rb_first(&info->root); @@ -492,7 +495,7 @@ info->curr_minor_hash = fname->minor_hash; if (call_filldir(filp, dirent, filldir, fname)) break; - +next_entry: info->curr_node = rb_next(info->curr_node); if (!info->curr_node) { if (info...
2003 Mar 05
1
RE: [Ext2-devel] Re: ext3 htree brelse problems look to be fixed!
...c 1.5 vs edited ===== --- 1.5/fs/ext3/dir.c Wed Oct 2 01:24:11 2002 +++ edited/dir.c Sat Mar 1 23:45:04 2003 @@ -450,8 +450,10 @@ &info->next_hash); if (ret < 0) return ret; - if (ret == 0) + if (ret == 0) { + filp->f_pos = -1; break; + } info->curr_node = rb_get_first(&info->root); } > -----Original Message----- > From: Daniel Phillips [mailto:phillips@arcor.de] > Sent: Wednesday, March 05, 2003 12:25 AM > To: James H. Cloos Jr.; ext2-devel@lists.sourceforge.net > Cc: ext3-users@redhat.com; linux-kernel@vger.kernel.org...