make gcc happy
This commit is contained in:
parent
b86ea09914
commit
c0689dd1cf
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: xadump.cpp,v 1.18 2008-07-01 11:51:51 dockes Exp $ (C) 2004 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: xadump.cpp,v 1.19 2008-12-15 14:39:52 dockes Exp $ (C) 2004 J.F.Dockes";
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -17,6 +17,7 @@ static char rcsid[] = "@(#$Id: xadump.cpp,v 1.18 2008-07-01 11:51:51 dockes Exp
|
|||||||
* Free Software Foundation, Inc.,
|
* Free Software Foundation, Inc.,
|
||||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
#include <stdlib.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
|
||||||
@ -207,7 +208,7 @@ int main(int argc, char **argv)
|
|||||||
cout << "Really delete xapian document ?" << endl;
|
cout << "Really delete xapian document ?" << endl;
|
||||||
string rep;
|
string rep;
|
||||||
cin >> rep;
|
cin >> rep;
|
||||||
if (!rep.empty() && rep[0] == 'y' || rep[0] == 'Y') {
|
if (!rep.empty() && (rep[0] == 'y' || rep[0] == 'Y')) {
|
||||||
Xapian::WritableDatabase wdb(dbdir, Xapian::DB_OPEN);
|
Xapian::WritableDatabase wdb(dbdir, Xapian::DB_OPEN);
|
||||||
cout << "Deleting" << endl;
|
cout << "Deleting" << endl;
|
||||||
wdb.delete_document(docid);
|
wdb.delete_document(docid);
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: searchdata.cpp,v 1.28 2008-12-15 09:24:24 dockes Exp $ (C) 2006 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: searchdata.cpp,v 1.29 2008-12-15 14:39:52 dockes Exp $ (C) 2006 J.F.Dockes";
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -234,9 +234,9 @@ private:
|
|||||||
// After splitting entry on whitespace: process non-phrase element
|
// After splitting entry on whitespace: process non-phrase element
|
||||||
void processSimpleSpan(const string& span, list<Xapian::Query> &pqueries);
|
void processSimpleSpan(const string& span, list<Xapian::Query> &pqueries);
|
||||||
// Process phrase/near element
|
// Process phrase/near element
|
||||||
void StringToXapianQ::processPhraseOrNear(wsQData *splitData,
|
void processPhraseOrNear(wsQData *splitData,
|
||||||
list<Xapian::Query> &pqueries,
|
list<Xapian::Query> &pqueries,
|
||||||
bool useNear, int slack);
|
bool useNear, int slack);
|
||||||
|
|
||||||
Db& m_db;
|
Db& m_db;
|
||||||
const string& m_prefix;
|
const string& m_prefix;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user