store/index files.
+Changed file naming scheme for register files from <name>.mf.<no> to
+<name>-<no>.mf.
+
Implemented "position"-flag for register type (as defined in
default.idx). When set to zero no position (or seqence number) is
saved in register for each word occurrence, thus saving some register
-# Copyright (C) 1994-1998, Index Data
+# Copyright (C) 1994-1999, Index Data
# All rights reserved.
# Sebastian Hammer, Adam Dickmeiss
-# $Id: Makefile.in,v 1.2 1998-10-28 15:20:40 adam Exp $
+# $Id: Makefile.in,v 1.3 1999-02-18 12:49:32 adam Exp $
SHELL=/bin/sh
MAKE=make
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: mfile.c,v $
- * Revision 1.30 1999-02-02 14:50:02 adam
+ * Revision 1.31 1999-02-18 12:49:33 adam
+ * Changed file naming scheme for register files as well as record
+ * store/index files.
+ *
+ * Revision 1.30 1999/02/02 14:50:02 adam
* Updated WIN32 code specific sections. Changed header.
*
* Revision 1.29 1998/05/27 14:28:34 adam
{
if (*dent->d_name == '.')
continue;
- if (sscanf(dent->d_name, "%[^.].mf.%d", metaname, &number) != 2)
+ if (sscanf(dent->d_name, "%[^-]-%d.mf", metaname, &number) != 2)
{
logf (LOG_DEBUG, "bf: %s is not a part-file.", dent->d_name);
continue;
return 0;
}
mnew->files[0].dir = dp;
- sprintf(tmp, "%s/%s.mf.%d", dp->name, mnew->name, 0);
+ sprintf(tmp, "%s/%s-%d.mf", dp->name, mnew->name, 0);
mnew->files[0].path = xstrdup(tmp);
mnew->ma = ma;
mnew->next = ma->mfiles;
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: recindex.c,v $
- * Revision 1.21 1999-02-02 14:51:03 adam
+ * Revision 1.22 1999-02-18 12:49:34 adam
+ * Changed file naming scheme for register files as well as record
+ * store/index files.
+ *
+ * Revision 1.21 1999/02/02 14:51:03 adam
* Updated WIN32 code specific sections. Changed header.
*
* Revision 1.20 1998/01/12 15:04:08 adam
p->rw = rw;
p->tmp_size = 1024;
p->tmp_buf = xmalloc (p->tmp_size);
- p->index_fname = "recindex";
+ p->index_fname = "reci";
p->index_BFile = bf_open (bfs, p->index_fname, 128, rw);
if (p->index_BFile == NULL)
{
for (i = 0; i<REC_BLOCK_TYPES; i++)
{
char str[80];
- sprintf (str, "recdata%c", i + 'A');
+ sprintf (str, "recd%c", i + 'A');
p->data_fname[i] = xmalloc (strlen(str)+1);
strcpy (p->data_fname[i], str);
p->data_BFile[i] = NULL;