projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Getting the terms from rsets where needed, still not passing
[idzebra-moved-to-github.git]
/
rset
/
rsisamc.c
diff --git
a/rset/rsisamc.c
b/rset/rsisamc.c
index
c7fb530
..
4e8b827
100644
(file)
--- a/
rset/rsisamc.c
+++ b/
rset/rsisamc.c
@@
-1,4
+1,4
@@
-/* $Id: rsisamc.c,v 1.25 2004-09-09 10:08:06 heikki Exp $
+/* $Id: rsisamc.c,v 1.27 2004-10-15 10:07:34 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
@@
-32,8
+32,7
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
static RSFD r_open (RSET ct, int flag);
static void r_close (RSFD rfd);
static void r_delete (RSET ct);
static RSFD r_open (RSET ct, int flag);
static void r_close (RSFD rfd);
static void r_delete (RSET ct);
-static void r_rewind (RSFD rfd);
-static int r_read (RSFD rfd, void *buf);
+static int r_read (RSFD rfd, void *buf, TERMID *term);
static int r_write (RSFD rfd, const void *buf);
static void r_pos (RSFD rfd, double *current, double *total);
static int r_write (RSFD rfd, const void *buf);
static void r_pos (RSFD rfd, double *current, double *total);
@@
-43,7
+42,6
@@
static const struct rset_control control =
r_delete,
r_open,
r_close,
r_delete,
r_open,
r_close,
- r_rewind,
rset_default_forward,
r_pos,
r_read,
rset_default_forward,
r_pos,
r_read,
@@
-63,9
+61,9
@@
struct rset_isamc_info {
};
RSET rsisamc_create( NMEM nmem, const struct key_control *kcontrol, int scope,
};
RSET rsisamc_create( NMEM nmem, const struct key_control *kcontrol, int scope,
- ISAMC is, ISAMC_P pos)
+ ISAMC is, ISAMC_P pos, TERMID term)
{
{
- RSET rnew=rset_create_base(&control, nmem, kcontrol, scope);
+ RSET rnew=rset_create_base(&control, nmem, kcontrol, scope,term);
struct rset_isamc_info *info;
info = (struct rset_isamc_info *) nmem_malloc(rnew->nmem,sizeof(*info));
info->is=is;
struct rset_isamc_info *info;
info = (struct rset_isamc_info *) nmem_malloc(rnew->nmem,sizeof(*info));
info->is=is;
@@
-111,17
+109,13
@@
static void r_close (RSFD rfd)
}
}
-static void r_rewind (RSFD rfd)
-{
- logf (LOG_FATAL, "rsisamc_rewind");
- abort ();
-}
-
-static int r_read (RSFD rfd, void *buf)
+static int r_read (RSFD rfd, void *buf, TERMID *term)
{
struct rset_pp_info *p=(struct rset_pp_info *)(rfd->priv);
int r;
r = isc_pp_read(p->pt, buf);
{
struct rset_pp_info *p=(struct rset_pp_info *)(rfd->priv);
int r;
r = isc_pp_read(p->pt, buf);
+ if (term)
+ *term=rfd->rset->term;
return r;
}
return r;
}