Switch to unified view

a/src/rcldb/rcldb.cpp b/src/rcldb/rcldb.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.55 2006-01-27 13:34:42 dockes Exp $ (C) 2004 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.56 2006-02-02 08:58:11 dockes Exp $ (C) 2004 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
1321
    // with the appropriate ipath. This is very inefficient.
1321
    // with the appropriate ipath. This is very inefficient.
1322
    const char *ermsg = "";
1322
    const char *ermsg = "";
1323
    try {
1323
    try {
1324
    if (!ndb->db.term_exists(pathterm)) {
1324
    if (!ndb->db.term_exists(pathterm)) {
1325
        char len[20];
1325
        char len[20];
1326
        sprintf(len, "%d", pathterm.length());
1326
        sprintf(len, "%d", int(pathterm.length()));
1327
        throw string("path inexistant: [") + pathterm +"] length " + len;
1327
        throw string("path inexistant: [") + pathterm +"] length " + len;
1328
    }
1328
    }
1329
    for (Xapian::PostingIterator docid = 
1329
    for (Xapian::PostingIterator docid = 
1330
         ndb->db.postlist_begin(pathterm);
1330
         ndb->db.postlist_begin(pathterm);
1331
         docid != ndb->db.postlist_end(pathterm); docid++) {
1331
         docid != ndb->db.postlist_end(pathterm); docid++) {