Bug fix: Leading and trailing white space weren't removed in scan tokens.
[idzebra-moved-to-github.git] / index / zserver.h
index f740257..d2874a4 100644 (file)
@@ -1,10 +1,23 @@
 /*
- * Copyright (C) 1994-1995, Index Data I/S 
+ * Copyright (C) 1994-1996, Index Data I/S 
  * All rights reserved.
  * Sebastian Hammer, Adam Dickmeiss
  *
  * $Log: zserver.h,v $
- * Revision 1.19  1996-05-14 11:34:01  adam
+ * Revision 1.23  1996-12-23 15:30:46  adam
+ * Work on truncation.
+ * Bug fix: result sets weren't deleted after server shut down.
+ *
+ * Revision 1.22  1996/11/04 14:07:49  adam
+ * Moved truncation code to trunc.c.
+ *
+ * Revision 1.21  1996/10/29 14:09:58  adam
+ * Use of cisam system - enabled if setting isamc is 1.
+ *
+ * Revision 1.20  1996/06/04 10:19:02  adam
+ * Minor changes - removed include of ctype.h.
+ *
+ * Revision 1.19  1996/05/14  11:34:01  adam
  * Scan support in multiple registers/databases.
  *
  * Revision 1.18  1996/05/14  06:16:50  adam
@@ -89,8 +102,9 @@ typedef struct {
     int registerState; /* 0 (no commit pages), 1 (use commit pages) */
     time_t registerChange;
     ZServerSet *sets;
-    Dict wordDict;
-    ISAM wordIsam;
+    Dict dict;
+    ISAM isam;
+    ISAMC isamc;
     Records records;
     int errCode;
     char *errString;
@@ -108,9 +122,13 @@ int rpn_scan (ZServerInfo *zi, Z_AttributesPlusTerm *zapt,
               int *position, int *num_entries, struct scan_entry **list,
               int *status);
 
+RSET rset_trunc (ZServerInfo *zi, ISAM_P *isam_p, int no);
+
 ZServerSet *resultSetAdd (ZServerInfo *zi, const char *name,
                           int ov, RSET rset);
 ZServerSet *resultSetGet (ZServerInfo *zi, const char *name);
+void resultSetDestroy (ZServerInfo *zi);
+
 ZServerSetSysno *resultSetSysnoGet (ZServerInfo *zi, const char *name,
                                     int num, int *positions);
 void resultSetSysnoDel (ZServerInfo *zi, ZServerSetSysno *records, int num);