-/* $Id: rset.h,v 1.21 2004-01-30 11:43:40 heikki Exp $
+/* $Id: rset.h,v 1.22 2004-08-03 12:15:44 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
int (*f_forward)(RSET ct, RSFD rfd, void *buf, int *term_index,
int (*cmpfunc)(const void *p1, const void *p2),
const void *untilbuf);
- int (*f_count)(RSET ct);
+/* int (*f_count)(RSET ct); */ /* FIXME - remove this and add pos */
int (*f_read)(RSFD rfd, void *buf, int *term_index);
int (*f_write)(RSFD rfd, const void *buf);
};
-/* $Id: zrpn.c,v 1.140 2004-06-16 21:29:49 adam Exp $
+/* $Id: zrpn.c,v 1.141 2004-08-03 12:15:44 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
{
char term_dst[IT_MAX_WORD+1];
RSET rset[60], result;
- int i, rset_no = 0;
+ int rset_no = 0;
struct grep_info grep_info;
char *termz = normalize_term(zh, zapt, termz_org, stream, reg_type);
const char *termp = termz;
-/* $Id: rsbetween.c,v 1.13 2004-06-08 15:05:16 heikki Exp $
+/* $Id: rsbetween.c,v 1.14 2004-08-03 12:15:45 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
static int r_forward_between(RSET ct, RSFD rfd, void *buf, int *term_index,
int (*cmpfunc)(const void *p1, const void *p2),
const void *untilbuf);
-static int r_count_between (RSET ct);
+/* static int r_count_between (RSET ct); */
static int r_read_between (RSFD rfd, void *buf, int *term_index);
static int r_write_between (RSFD rfd, const void *buf);
r_delete_between,
r_rewind_between,
r_forward_between, /* rset_default_forward, */
- r_count_between,
+ /* r_count_between, */
r_read_between,
r_write_between,
};
return rc;
}
+/*
static int r_count_between (RSET ct)
{
return 0;
}
+*/
-/* $Id: rsbool.c,v 1.30 2004-06-16 20:32:07 adam Exp $
+/* $Id: rsbool.c,v 1.31 2004-08-03 12:15:45 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
static int r_forward(RSET ct, RSFD rfd, void *buf, int *term_index,
int (*cmpfunc)(const void *p1, const void *p2),
const void *untilbuf);
-static int r_count (RSET ct);
+/* static int r_count (RSET ct); */
static int r_read_and (RSFD rfd, void *buf, int *term_index);
static int r_read_or (RSFD rfd, void *buf, int *term_index);
static int r_read_not (RSFD rfd, void *buf, int *term_index);
r_delete,
r_rewind,
r_forward, /* rset_default_forward, */
- r_count,
+ /* r_count, */
r_read_and,
r_write,
};
#else
rset_default_forward,
#endif
- r_count,
+ /* r_count, */
r_read_or,
r_write,
};
r_delete,
r_rewind,
r_forward,
- r_count,
+ /* r_count, */
r_read_not,
r_write,
};
return rc;
}
+/*
static int r_count (RSET ct)
{
return 0;
}
-
+*/
/*
1,1 1,3
-/* $Id: rsisam.c,v 1.24 2004-01-16 15:27:35 heikki Exp $
+/* $Id: rsisam.c,v 1.25 2004-08-03 12:15:45 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
static void r_close (RSFD rfd);
static void r_delete (RSET ct);
static void r_rewind (RSFD rfd);
-static int r_count (RSET ct);
+/* static int r_count (RSET ct); */
static int r_read (RSFD rfd, void *buf, int *term_index);
static int r_write (RSFD rfd, const void *buf);
r_delete,
r_rewind,
rset_default_forward,
- r_count,
+ /* r_count, */
r_read,
r_write,
};
is_rewind( ((struct rset_ispt_info*) rfd)->pt);
}
+/*
static int r_count (RSET ct)
{
return 0;
}
+*/
static int r_read (RSFD rfd, void *buf, int *term_index)
{
-/* $Id: rsisamb.c,v 1.8 2004-06-01 15:22:58 adam Exp $
+/* $Id: rsisamb.c,v 1.9 2004-08-03 12:15:45 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
static int r_forward(RSET ct, RSFD rfd, void *buf, int *term_index,
int (*cmpfunc)(const void *p1, const void *p2),
const void *untilbuf);
-static int r_count (RSET ct);
+/* static int r_count (RSET ct);*/
static int r_read (RSFD rfd, void *buf, int *term_index);
static int r_write (RSFD rfd, const void *buf);
r_delete,
r_rewind,
r_forward, /* rset_default_forward, */
- r_count,
+ /* r_count, */
r_read,
r_write,
};
return i;
}
+/*
static int r_count (RSET ct)
{
return 0;
}
+*/
static int r_read (RSFD rfd, void *buf, int *term_index)
{
-/* $Id: rsisamc.c,v 1.14 2004-01-29 13:11:01 adam Exp $
+/* $Id: rsisamc.c,v 1.15 2004-08-03 12:15:45 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
static void r_close (RSFD rfd);
static void r_delete (RSET ct);
static void r_rewind (RSFD rfd);
-static int r_count (RSET ct);
+/* static int r_count (RSET ct); */
static int r_read (RSFD rfd, void *buf, int *term_index);
static int r_write (RSFD rfd, const void *buf);
r_delete,
r_rewind,
rset_default_forward,
- r_count,
+ /*r_count, */
r_read,
r_write,
};
logf (LOG_DEBUG, "rsisamc_rewind");
abort ();
}
-
+/*
static int r_count (RSET ct)
{
return 0;
}
+*/
static int r_read (RSFD rfd, void *buf, int *term_index)
{
-/* $Id: rsisamd.c,v 1.6 2004-01-29 13:11:01 adam Exp $
+/* $Id: rsisamd.c,v 1.7 2004-08-03 12:15:45 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
static void r_close (RSFD rfd);
static void r_delete (RSET ct);
static void r_rewind (RSFD rfd);
-static int r_count (RSET ct);
+/* static int r_count (RSET ct); */
static int r_read (RSFD rfd, void *buf, int *term_index);
static int r_write (RSFD rfd, const void *buf);
r_delete,
r_rewind,
rset_default_forward,
- r_count,
+ /* r_count, */
r_read,
r_write,
};
abort ();
}
+/*
static int r_count (RSET ct)
{
return 0;
}
+*/
static int r_read (RSFD rfd, void *buf, int *term_index)
{
-/* $Id: rsisams.c,v 1.4 2004-01-16 15:27:35 heikki Exp $
+/* $Id: rsisams.c,v 1.5 2004-08-03 12:15:45 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
static void r_close (RSFD rfd);
static void r_delete (RSET ct);
static void r_rewind (RSFD rfd);
-static int r_count (RSET ct);
+/* static int r_count (RSET ct); */
static int r_read (RSFD rfd, void *buf, int *term_index);
static int r_write (RSFD rfd, const void *buf);
r_delete,
r_rewind,
rset_default_forward,
- r_count,
+ /* r_count, */
r_read,
r_write,
};
abort ();
}
+/*
static int r_count (RSET ct)
{
return 0;
}
+*/
static int r_read (RSFD rfd, void *buf, int *term_index)
{
-/* $Id: rsm_or.c,v 1.14 2004-01-16 15:27:35 heikki Exp $
+/* $Id: rsm_or.c,v 1.15 2004-08-03 12:15:45 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
static void r_close (RSFD rfd);
static void r_delete (RSET ct);
static void r_rewind (RSFD rfd);
-static int r_count (RSET ct);
+/* static int r_count (RSET ct); */
static int r_read (RSFD rfd, void *buf, int *term_index);
static int r_write (RSFD rfd, const void *buf);
r_delete,
r_rewind,
rset_default_forward,
- r_count,
+ /* r_count, */
r_read,
r_write,
};
{
}
+/*
static int r_count (RSET ct)
{
return 0;
}
+*/
static int r_read (RSFD rfd, void *buf, int *term_index)
{
-/* $Id: rsnull.c,v 1.16 2004-01-16 15:27:35 heikki Exp $
+/* $Id: rsnull.c,v 1.17 2004-08-03 12:15:45 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
static void r_close (RSFD rfd);
static void r_delete (RSET ct);
static void r_rewind (RSFD rfd);
-static int r_count (RSET ct);
+/* static int r_count (RSET ct); */
static int r_read (RSFD rfd, void *buf, int *term_index);
static int r_write (RSFD rfd, const void *buf);
r_delete,
r_rewind,
rset_default_forward,
- r_count,
+ /* r_count, */
r_read,
r_write,
};
logf (LOG_DEBUG, "rsnull_rewind");
}
+/*
static int r_count (RSET ct)
{
return 0;
}
+*/
static int r_read (RSFD rfd, void *buf, int *term_index)
{
-/* $Id: rsprox.c,v 1.3 2004-06-16 21:27:37 adam Exp $
+/* $Id: rsprox.c,v 1.4 2004-08-03 12:15:45 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
static int r_forward(RSET ct, RSFD rfd, void *buf, int *term_index,
int (*cmpfunc)(const void *p1, const void *p2),
const void *untilbuf);
-static int r_count (RSET ct);
+/* static int r_count (RSET ct); */
static int r_read (RSFD rfd, void *buf, int *term_index);
static int r_write (RSFD rfd, const void *buf);
r_delete,
r_rewind,
r_forward,
- r_count,
+ /* r_count, */
r_read,
r_write,
};
return 0;
}
+/*
static int r_count (RSET ct)
{
return 0;
}
+*/
static int r_read (RSFD rfd, void *buf, int *term_index)
{
-/* $Id: rstemp.c,v 1.36 2004-01-16 15:27:35 heikki Exp $
+/* $Id: rstemp.c,v 1.37 2004-08-03 12:15:45 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003
Index Data Aps
static void r_close (RSFD rfd);
static void r_delete (RSET ct);
static void r_rewind (RSFD rfd);
-static int r_count (RSET ct);
+/* static int r_count (RSET ct);*/
static int r_read (RSFD rfd, void *buf, int *term_index);
static int r_write (RSFD rfd, const void *buf);
r_delete,
r_rewind,
rset_default_forward,
- r_count,
+ /* r_count, */
r_read,
r_write,
};
r_reread (rfd);
}
+/*
static int r_count (RSET ct)
{
struct rset_temp_info *info = (struct rset_temp_info *) ct->buf;
return info->pos_end / info->key_size;
}
-
+*/
static int r_read (RSFD rfd, void *buf, int *term_index)
{
struct rset_temp_rfd *mrfd = (struct rset_temp_rfd*) rfd;