distributed files from common/ into rcld, internfile, common
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#ifndef lint
|
||||
static char rcsid[] = "@(#$Id: pathhash.cpp,v 1.3 2006-01-23 13:32:28 dockes Exp $ (C) 2005 J.F.Dockes";
|
||||
static char rcsid[] = "@(#$Id: pathhash.cpp,v 1.4 2006-11-15 14:57:53 dockes Exp $ (C) 2005 J.F.Dockes";
|
||||
#endif
|
||||
/*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -26,6 +26,7 @@ static char rcsid[] = "@(#$Id: pathhash.cpp,v 1.3 2006-01-23 13:32:28 dockes Exp
|
||||
|
||||
#ifndef NO_NAMESPACES
|
||||
using std::string;
|
||||
namespace Rcl {
|
||||
#endif /* NO_NAMESPACES */
|
||||
|
||||
#ifdef PATHHASH_HEX
|
||||
@@ -85,6 +86,9 @@ void pathHash(const std::string &path, std::string &phash, unsigned int maxlen)
|
||||
// Truncate path and append hash
|
||||
phash = path.substr(0, maxlen - HASHLEN) + hash;
|
||||
}
|
||||
#ifndef NO_NAMESPACES
|
||||
}
|
||||
#endif // NO_NAMESPACES
|
||||
|
||||
#ifdef TEST_PATHHASH
|
||||
#include <stdio.h>
|
||||
|
||||
+10
-2
@@ -16,12 +16,20 @@
|
||||
*/
|
||||
#ifndef _PATHHASH_H_INCLUDED_
|
||||
#define _PATHHASH_H_INCLUDED_
|
||||
/* @(#$Id: pathhash.h,v 1.2 2006-01-30 11:15:27 dockes Exp $ (C) 2004 J.F.Dockes */
|
||||
/* @(#$Id: pathhash.h,v 1.3 2006-11-15 14:57:53 dockes Exp $ (C) 2004 J.F.Dockes */
|
||||
|
||||
#include <string>
|
||||
|
||||
extern void pathHash(const std::string &path, std::string &hash,
|
||||
#ifndef NO_NAMESPACES
|
||||
using std::string;
|
||||
namespace Rcl {
|
||||
#endif
|
||||
|
||||
extern void pathHash(const string &path, string &hash,
|
||||
unsigned int len);
|
||||
|
||||
|
||||
#ifndef NO_NAMESPACES
|
||||
}
|
||||
#endif
|
||||
#endif /* _PATHHASH_H_INCLUDED_ */
|
||||
|
||||
+1
-2
@@ -1,5 +1,5 @@
|
||||
#ifndef lint
|
||||
static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.94 2006-11-14 13:55:43 dockes Exp $ (C) 2004 J.F.Dockes";
|
||||
static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.95 2006-11-15 14:57:53 dockes Exp $ (C) 2004 J.F.Dockes";
|
||||
#endif
|
||||
/*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -32,7 +32,6 @@ static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.94 2006-11-14 13:55:43 dockes Exp $
|
||||
#ifndef NO_NAMESPACES
|
||||
using namespace std;
|
||||
#endif /* NO_NAMESPACES */
|
||||
#define RCLDB_INTERNAL
|
||||
|
||||
#include "rcldb.h"
|
||||
#include "stemdb.h"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#ifndef _SEARCHDATA_H_INCLUDED_
|
||||
#define _SEARCHDATA_H_INCLUDED_
|
||||
/* @(#$Id: searchdata.h,v 1.4 2006-11-14 13:55:43 dockes Exp $ (C) 2004 J.F.Dockes */
|
||||
/* @(#$Id: searchdata.h,v 1.5 2006-11-15 14:57:53 dockes Exp $ (C) 2004 J.F.Dockes */
|
||||
|
||||
#include <string>
|
||||
#include <list>
|
||||
@@ -10,9 +10,9 @@
|
||||
#ifndef NO_NAMESPACES
|
||||
using std::list;
|
||||
using std::string;
|
||||
#endif
|
||||
|
||||
namespace Rcl {
|
||||
#endif // NO_NAMESPACES
|
||||
|
||||
/** Search clause types */
|
||||
enum SClType {
|
||||
|
||||
+7
-4
@@ -1,7 +1,6 @@
|
||||
#ifndef _STEMDB_H_INCLUDED_
|
||||
#define _STEMDB_H_INCLUDED_
|
||||
/* @(#$Id: stemdb.h,v 1.1 2006-04-13 09:50:03 dockes Exp $ (C) 2004 J.F.Dockes */
|
||||
#ifdef RCLDB_INTERNAL
|
||||
/* @(#$Id: stemdb.h,v 1.2 2006-11-15 14:57:53 dockes Exp $ (C) 2004 J.F.Dockes */
|
||||
/// Stem database code
|
||||
///
|
||||
/// Stem databases list stems and the set of index terms they expand to. They
|
||||
@@ -14,9 +13,12 @@
|
||||
#include <string>
|
||||
|
||||
#include <xapian.h>
|
||||
|
||||
#ifndef NO_NAMESPACES
|
||||
using std::string;
|
||||
using std::list;
|
||||
namespace Rcl {
|
||||
namespace StemDb {
|
||||
#endif // NO_NAMESPACES
|
||||
|
||||
/// Get languages of existing stem databases
|
||||
extern std::list<std::string> getLangs(const std::string& dbdir);
|
||||
@@ -30,8 +32,9 @@ extern std::list<std::string> stemExpand(const std::string& dbdir,
|
||||
const std::string& lang,
|
||||
const std::string& term);
|
||||
|
||||
#ifndef NO_NAMESPACES
|
||||
}
|
||||
}
|
||||
#endif // NO_NAMESPACES
|
||||
|
||||
#endif // RCLDB_INTERNAL
|
||||
#endif /* _STEMDB_H_INCLUDED_ */
|
||||
|
||||
Reference in New Issue
Block a user