-/* $Id: index.h,v 1.91 2002-11-15 21:26:00 adam Exp $
+/* $Id: index.h,v 1.92 2002-11-26 22:18:34 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
int key_SU_decode (int *ch, const unsigned char *out);
int key_SU_encode (int ch, char *out);
-// extern Res common_resource;
-
#define ENCODE_BUFLEN 768
struct encode_info {
int sysno; /* previously written values for delta-compress */
-/* $Id: isamd-p.h,v 1.11 2002-08-02 19:26:56 adam Exp $
+/* $Id: isamd-p.h,v 1.12 2002-11-26 22:18:34 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
sizeof(ISAMD_BLOCK_SIZE) + \
sizeof(ISAMD_BLOCK_SIZE))
/* == 12 (was 16) */
-// sizeof(int) +
+/* sizeof(int) + */
int isamd_alloc_block (ISAMD is, int cat);
/*
* $Log: isamd-p.h,v $
- * Revision 1.11 2002-08-02 19:26:56 adam
+ * Revision 1.12 2002-11-26 22:18:34 adam
+ * Remove // comments
+ *
+ * Revision 1.11 2002/08/02 19:26:56 adam
* Towards GPL
*
* Revision 1.10 2002/04/29 18:10:24 adam
-/* $Id: isamd.c,v 1.23 2002-08-02 19:26:56 adam Exp $
+/* $Id: isamd.c,v 1.24 2002-11-26 22:18:34 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
pp->diffinfo=0;
pp->decodeClientData = (*is->method->code_start)(ISAMD_DECODE);
- dictnum=*dictbuf; // numkeys for internals, 0 for externals
+ dictnum=*dictbuf; /* numkeys for internals, 0 for externals */
if (0==dictnum)
{
/*
* $Log: isamd.c,v $
- * Revision 1.23 2002-08-02 19:26:56 adam
+ * Revision 1.24 2002-11-26 22:18:34 adam
+ * Remove // comments
+ *
+ * Revision 1.23 2002/08/02 19:26:56 adam
* Towards GPL
*
* Revision 1.22 2002/07/12 18:12:21 heikki
-/* $Id: merge-d.c,v 1.28 2002-08-02 19:26:56 adam Exp $
+/* $Id: merge-d.c,v 1.29 2002-11-26 22:18:34 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
int difftype;
};
-#define DT_NONE 0 // no diff, marks end of sequence
-#define DT_DIFF 1 // ordinarry diff
-#define DT_MAIN 2 // main data
-#define DT_INPU 3 // input data to be merged
-#define DT_DONE 4 // done with all input here
+#define DT_NONE 0 /* no diff, marks end of sequence */
+#define DT_DIFF 1 /* ordinarry diff */
+#define DT_MAIN 2 /* main data */
+#define DT_INPU 3 /* input data to be merged */
+#define DT_DONE 4 /* done with all input here */
if (0==pp->diffinfo[i].maxidx)
{
- if (pp->is->method->debug > 5) //!!! 4
+ if (pp->is->method->debug > 5) /* !!! 4 */
logf(LOG_LOG,"isamd_getDiffInfo:End mark at ix=%d n=%d",
diffidx, i);
return; /* end marker */
; /* find last diff */
if (p_key)
{ /* we have an extra item to inject into the merge */
- if (pp->is->method->debug >9) //!!!!!
+ if (pp->is->method->debug >9) /* !!!!! */
logf(LOG_LOG,"isamd_read_item: going to merge with %d.%d",
p_key->sysno, p_key->seqno);
pp->diffinfo[i].key = *p_key; /* the key merge could not handle */
/* set up diffs as they should be for reading */
diffidx = ISAMD_BLOCK_OFFSET_1;
- //readpp->diffbuf=readpp->buf; // diffinfo has to duplicate it!
- //getDiffInfo(readpp); // first read will make the diffinfo, at init
if (readpp->is->method->debug >4)
logf(LOG_LOG,"isamd_merge: f=%d=%d:%d n=%d=%d:%d",
} /* while read */
-// firstpp->diffs=0;
-
-
isamd_reduceblock(pp); /* reduce size if possible */
if (0==firstpp->next)
firstpp->next = isamd_addr(pp->pos,pp->cat);
diffidx+=sizeof(int); /* difflen will be stored here */
/* read first input */
- //i_ptr = i_item; //!!!
i_more = filter_read(filt, &i_key, &i_mode);
/* i_more = (*data->read_item)(data->clientData, &i_ptr, &i_mode); */
{ /* max size - can't help, need to merge it */
if (is->method->debug >7)
logf(LOG_LOG,"isamd_appd: need to merge");
- if (is->method->debug >9) //!!!!!
+ if (is->method->debug >9) /* !!!!! */
logf(LOG_LOG,"isamd_appd: going to merge with m=%d %d.%d",
i_mode, i_key.sysno, i_key.seqno);
merge_rc = merge (firstpp, &i_key, filt, dictentry, dictlen);
/*
* $Log: merge-d.c,v $
- * Revision 1.28 2002-08-02 19:26:56 adam
+ * Revision 1.29 2002-11-26 22:18:34 adam
+ * Remove // comments
+ *
+ * Revision 1.28 2002/08/02 19:26:56 adam
* Towards GPL
*
* Revision 1.27 2002/07/12 18:12:21 heikki