- dict = dict_open (bfs, FNAME_DICT, 100, 0, 0);
- if (!dict)
- {
- logf (LOG_FATAL, "dict_open fail");
- exit (1);
- }
- if (res_get_match (common_resource, "isam", "i", NULL))
- {
- isam = is_open (bfs, FNAME_ISAM, key_compare, 0,
- sizeof(struct it_key), common_resource);
- if (!isam)
- {
- logf (LOG_FATAL, "is_open fail");
- exit (1);
- }
- }
- else if (res_get_match (common_resource, "isam", "s", NULL))
- {
- struct ISAMS_M_s isams_m;
- isams = isams_open (bfs, FNAME_ISAMS, 0,
- key_isams_m(common_resource, &isams_m));
- if (!isams)
- {
- logf (LOG_FATAL, "isams_open fail");
- exit (1);
- }
- }
- else if (res_get_match (common_resource, "isam", "h", NULL))
- {
- isamh = isamh_open (bfs, FNAME_ISAMH, 0, key_isamh_m(common_resource));
- if (!isamh)
- {
- logf (LOG_FATAL, "isamh_open fail");
- exit (1);
- }
- }
- else if (res_get_match (common_resource, "isam", "d", NULL))
- {
- struct ISAMD_M_s isamd_m;
- isamd = isamd_open (bfs, FNAME_ISAMD, 0,
- key_isamd_m(common_resource,&isamd_m));
- if (!isamd)
- {
- logf (LOG_FATAL, "isamd_open fail");
- exit (1);
- }
- }
- else
- {
- struct ISAMC_M_s isamc_m;
- isamc = isc_open (bfs, FNAME_ISAMC, 0,
- key_isamc_m (common_resource, &isamc_m));
- if (!isamc)
- {
- logf (LOG_FATAL, "isc_open fail");
- exit (1);
- }
- }
- records = rec_open (bfs, 0, 0);
-
- for (i = 0; i<8; i++)