# Europagate, 1995
#
# $Log: Makefile,v $
-# Revision 1.20 1995/04/20 15:24:59 quinn
+# Revision 1.21 1995/04/20 16:10:45 adam
+# Modified to work with non-blocking zass-api. Not using non-blocking
+# facility yet.
+#
+# Revision 1.20 1995/04/20 15:24:59 quinn
# *** empty log message ***
#
# Revision 1.19 1995/04/19 16:08:20 adam
#
SHELL=/bin/sh
-<<<<<<< 1.19
-ZPRE=/home/proj/zdist/zdist102b1-1/libz3950
-ZINC=-I$(ZPRE)
-ZLIB=$(ZPRE)/libz3950.a
-=======
#ZPRE=/home/proj/zdist/zdist102b1-1/libz3950
#ZINC=-I$(ZPRE)
#ZLIB=$(ZPRE)/libz3950.a
->>>>>>> /tmp/T4a18061
-<<<<<<< 1.19
-#ZLIB=../../yaz/lib/libyaz.a
-=======
ZLIB=../../yaz/lib/libyaz.a
->>>>>>> /tmp/T4a18061
INCLUDE=-I../include
#CFLAGS=-g -Wall
* Europagate, 1995
*
* $Log: persist.c,v $
- * Revision 1.3 1995/04/19 13:19:09 adam
+ * Revision 1.4 1995/04/20 16:10:46 adam
+ * Modified to work with non-blocking zass-api. Not using non-blocking
+ * facility yet.
+ *
+ * Revision 1.3 1995/04/19 13:19:09 adam
* New command: account - for authentication.
*
* Revision 1.2 1995/04/19 10:46:19 adam
{
const struct zass_searchent *p;
- p = zass_search (zass, set->rpn, set->name, set->database);
+ p = zass_search (zass, set->rpn, set->name, set->database, NULL);
if (!p)
return 2;
if (p->errcode != -1)
r = obtain_sets (zass, rpn, sets);
if (r)
return NULL;
- return zass_search (zass, rpn, (char*) result_set, (char*) database);
+ return zass_search (zass, rpn, (char*) result_set, (char*) database, NULL);
}
const struct zass_presentent *zass_p_present (ZASS zass,
if (!p)
return NULL;
}
- return zass_present (zass, (char*) result_set, offset, number);
+ return zass_present (zass, (char*) result_set, offset, number, NULL);
}
struct ccl_rpn_node *load_rpn (char *buf, FILE *inf)
if (!fgetsx (buf, 1024, inf))
return NULL;
+ rpn = malloc (sizeof (*rpn));
+ if (!rpn)
+ return NULL;
switch (*buf)
{
case 'A':
- rpn = malloc (sizeof (*rpn));
- if (!rpn)
- return NULL;
rpn->kind = CCL_RPN_AND;
rpn->u.p[0] = load_rpn (buf, inf);
rpn->u.p[1] = load_rpn (buf, inf);
break;
case 'O':
- rpn = malloc (sizeof (*rpn));
- if (!rpn)
- return NULL;
rpn->kind = CCL_RPN_OR;
rpn->u.p[0] = load_rpn (buf, inf);
rpn->u.p[1] = load_rpn (buf, inf);
break;
case 'N':
- rpn = malloc (sizeof (*rpn));
- if (!rpn)
- return NULL;
rpn->kind = CCL_RPN_NOT;
rpn->u.p[0] = load_rpn (buf, inf);
rpn->u.p[1] = load_rpn (buf, inf);
break;
case 'P':
- rpn = malloc (sizeof (*rpn));
- if (!rpn)
- return NULL;
rpn->kind = CCL_RPN_PROX;
rpn->u.p[0] = load_rpn (buf, inf);
rpn->u.p[1] = load_rpn (buf, inf);
break;
case 'T':
- rpn = malloc (sizeof (*rpn));
- if (!rpn)
- return NULL;
rpn->kind = CCL_RPN_TERM;
rpn->u.t.term = gw_strdup (buf+2);
*attrp = NULL;
break;
case 'S':
- rpn = malloc (sizeof (*rpn));
- if (!rpn)
- return NULL;
rpn->kind = CCL_RPN_SET;
rpn->u.setname = gw_strdup (buf+2);
+ break;
+ default:
+ free (rpn);
+ return NULL;
}
return rpn;
}
* Europagate, 1995
*
* $Log: urp.c,v $
- * Revision 1.29 1995/04/19 16:01:58 adam
+ * Revision 1.30 1995/04/20 16:10:47 adam
+ * Modified to work with non-blocking zass-api. Not using non-blocking
+ * facility yet.
+ *
+ * Revision 1.29 1995/04/19 16:01:58 adam
* Some hacks to get the FIFO communication work!! Isn't reliable.
* Resource gw.account added - default account info.
*
if (info.zass)
gw_log (GW_LOG_WARN, KERNEL_LOG, "Zass free...");
gw_log (GW_LOG_DEBUG, KERNEL_LOG, "reopen_target");
- info.zass = zass_open (info.hostname, info.port, *info.account ?
- info.account : NULL);
+ info.zass = zass_open (info.hostname, info.port, NULL, /* complete */
+ *info.account ? info.account : NULL);
if (!info.zass)
{
gw_log (GW_LOG_DEBUG, KERNEL_LOG, "Cannot connect to target %s:%d",