X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Findex.h;h=219ab3820c1996c20afe3926fc1e3dc1df770590;hb=83533000f9456dcab2fc171abafd84d6104d4087;hp=b3f906de9bd957935fa2926c8c9a265338d8a9bd;hpb=3726bf6622da6a8b983bb4cbb7d654e84c3216d7;p=idzebra-moved-to-github.git diff --git a/index/index.h b/index/index.h index b3f906d..219ab38 100644 --- a/index/index.h +++ b/index/index.h @@ -10,11 +10,16 @@ #include #include +#include +#if ZMBOL #include #include -#include -#include -#include +#include +#define ISAM_DEFAULT "c" +#else +#define ISAM_DEFAULT "s" +#endif +#include #include #ifdef __cplusplus @@ -99,9 +104,11 @@ void key_logdump (int mask, const void *p); void inv_prstat (BFiles bfs); void inv_compact (BFiles bfs); void key_input (BFiles bfs, int nkeys, int cache); -ISAMC_M key_isamc_m (Res res, ISAMC_M me); ISAMS_M key_isams_m (Res res, ISAMS_M me); -ISAMH_M key_isamh_m (Res res); +#if ZMBOL +ISAMC_M key_isamc_m (Res res, ISAMC_M me); +ISAMD_M key_isamd_m (Res res, ISAMD_M me); +#endif int merge_sort (char **buf, int from, int to); int key_SU_code (int ch, char *out); @@ -110,6 +117,7 @@ int key_SU_code (int ch, char *out); #define FNAME_ISAMC "isamc" #define FNAME_ISAMS "isams" #define FNAME_ISAMH "isamh" +#define FNAME_ISAMD "isamd" #define FNAME_CONFIG "zebra.cfg" #define GMATCH_DICT "gmatch" @@ -129,7 +137,7 @@ int fileExtract (SYSNO *sysno, const char *fname, void zebraIndexLockMsg (const char *str); void zebraIndexUnlock (void); -void zebraIndexLock (BFiles bfs, int commitNow, const char *rval); +int zebraIndexLock (BFiles bfs, int commitNow, const char *rval); int zebraIndexWait (int commitPhase); #define FNAME_MAIN_LOCK "zebraidx.LCK" @@ -158,7 +166,16 @@ extern Res common_resource; /* * $Log: index.h,v $ - * Revision 1.65 1999-07-14 10:59:26 adam + * Revision 1.68 2000-02-24 11:00:07 adam + * Fixed bug: indexer would run forever when lock dir was non-existant. + * + * Revision 1.67 1999/11/30 13:48:03 adam + * Improved installation. Updated for inclusion of YAZ header files. + * + * Revision 1.66 1999/07/14 13:21:34 heikki + * Added isam-d files. Compiles (almost) clean. Doesn't work at all + * + * Revision 1.65 1999/07/14 10:59:26 adam * Changed functions isc_getmethod, isams_getmethod. * Improved fatal error handling (such as missing EXPLAIN schema). *