projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Server produces diagnostic "Unsupported Attribute Set" when appropriate.
[idzebra-moved-to-github.git]
/
index
/
zsets.c
diff --git
a/index/zsets.c
b/index/zsets.c
index
9cb1ca6
..
b43ea18
100644
(file)
--- a/
index/zsets.c
+++ b/
index/zsets.c
@@
-4,7
+4,14
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: zsets.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: zsets.c,v $
- * Revision 1.10 1995-10-30 15:08:08 adam
+ * Revision 1.12 1997-09-25 14:57:36 adam
+ * Windows NT port.
+ *
+ * Revision 1.11 1996/12/23 15:30:46 adam
+ * Work on truncation.
+ * Bug fix: result sets weren't deleted after server shut down.
+ *
+ * Revision 1.10 1995/10/30 15:08:08 adam
* Bug fixes.
*
* Revision 1.9 1995/10/17 18:02:14 adam
* Bug fixes.
*
* Revision 1.9 1995/10/17 18:02:14 adam
@@
-42,7
+49,11
@@
*/
#include <stdio.h>
#include <assert.h>
*/
#include <stdio.h>
#include <assert.h>
+#ifdef WINDOWS
+#include <io.h>
+#else
#include <unistd.h>
#include <unistd.h>
+#endif
#include "zserver.h"
#include <rstemp.h>
#include "zserver.h"
#include <rstemp.h>
@@
-79,6
+90,20
@@
ZServerSet *resultSetGet (ZServerInfo *zi, const char *name)
return NULL;
}
return NULL;
}
+void resultSetDestroy (ZServerInfo *zi)
+{
+ ZServerSet *s, *s1;
+
+ for (s = zi->sets; s; s = s1)
+ {
+ s1 = s->next;
+ rset_delete (s->rset);
+ xfree (s->name);
+ xfree (s);
+ }
+ zi->sets = NULL;
+}
+
ZServerSetSysno *resultSetSysnoGet (ZServerInfo *zi, const char *name,
int num, int *positions)
{
ZServerSetSysno *resultSetSysnoGet (ZServerInfo *zi, const char *name,
int num, int *positions)
{