* Sebastian Hammer, Adam Dickmeiss
*
* $Log: extract.c,v $
- * Revision 1.61 1996-06-06 12:08:37 quinn
+ * Revision 1.63 1996-10-29 14:09:39 adam
+ * Use of cisam system - enabled if setting isamc is 1.
+ *
+ * Revision 1.62 1996/10/11 10:57:01 adam
+ * New module recctrl. Used to manage records (extract/retrieval).
+ * Several files have been moved to the recctrl sub directory.
+ *
+ * Revision 1.61 1996/06/06 12:08:37 quinn
* Added showRecord function
*
* Revision 1.60 1996/06/04 10:18:12 adam
#include <unistd.h>
#include <fcntl.h>
-#include <alexutil.h>
#include <recctrl.h>
#include "index.h"
void key_open (int mem)
{
+ if (!mem)
+ mem = atoi(res_get_def (common_resource, "memMax", "4"))*1024*1024;
if (mem < 50000)
mem = 50000;
key_buf = xmalloc (mem);
key_file_no++;
logf (LOG_LOG, "sorting section %d", key_file_no);
qsort (key_buf + ptr_top-ptr_i, ptr_i, sizeof(char*), key_qsort_compare);
- sprintf (out_fname, TEMP_FNAME, key_file_no);
+ getFnameTmp (out_fname, key_file_no);
if (!(outf = fopen (out_fname, "w")))
{
extractCtrl.readf = file_read;
extractCtrl.seekf = file_seek;
extractCtrl.endf = file_end;
- extractCtrl.group = rGroup;
+ extractCtrl.map_chrs_input = map_chrs_input;
+ extractCtrl.flagShowRecords = rGroup->flagShowRecords;
r = (*recType->extract)(&extractCtrl);
if (r)