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
More work on temp sets. is_open member removed.
[idzebra-moved-to-github.git]
/
include
/
rset.h
diff --git
a/include/rset.h
b/include/rset.h
index
f7029a4
..
69496a3
100644
(file)
--- a/
include/rset.h
+++ b/
include/rset.h
@@
-4,7
+4,14
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: rset.h,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: rset.h,v $
- * Revision 1.3 1994-11-22 13:15:27 quinn
+ * Revision 1.5 1995-09-04 15:20:13 adam
+ * More work on temp sets. is_open member removed.
+ *
+ * Revision 1.4 1995/09/04 09:09:52 adam
+ * String arg in dict lookup is const.
+ * Minor changes.
+ *
+ * Revision 1.3 1994/11/22 13:15:27 quinn
* Simple
*
* Revision 1.2 1994/11/04 13:21:21 quinn
* Simple
*
* Revision 1.2 1994/11/04 13:21:21 quinn
@@
-18,10
+25,12
@@
#ifndef RSET_H
#define RSET_H
#ifndef RSET_H
#define RSET_H
+#include <stdlib.h>
+
typedef struct rset_control
{
char *desc; /* text description of set type (for debugging) */
typedef struct rset_control
{
char *desc; /* text description of set type (for debugging) */
- char *buf; /* state data stored by subsystem */
+ void *buf; /* state data stored by subsystem */
struct rset_control *(*f_create)(const struct rset_control *sel, void *parms);
int (*f_open)(struct rset_control *ct, int wflag);
void (*f_close)(struct rset_control *ct);
struct rset_control *(*f_create)(const struct rset_control *sel, void *parms);
int (*f_open)(struct rset_control *ct, int wflag);
void (*f_close)(struct rset_control *ct);
@@
-34,7
+43,6
@@
typedef struct rset_control
typedef struct rset
{
typedef struct rset
{
- int is_open;
rset_control *control;
} rset, *RSET;
rset_control *control;
} rset, *RSET;
@@
-54,10
+62,10
@@
void rset_delete(RSET rs);
/* int rset_count(RSET rs); */
#define rset_count(rs, wflag) ((*(rs)->control->f_count)((rs)->control))
/* int rset_count(RSET rs); */
#define rset_count(rs, wflag) ((*(rs)->control->f_count)((rs)->control))
-/* int rset_read(RSET rs, void *buf); */ /* change parameters */
+/* int rset_read(RSET rs, void *buf); */
#define rset_read(rs, buf) ((*(rs)->control->f_read)((rs)->control, (buf)))
#define rset_read(rs, buf) ((*(rs)->control->f_read)((rs)->control, (buf)))
-
-int rset_write(RSET rs, void *buf); /* change parameters */
+/* int rset_write(RSET rs, const void *buf); */
+#define rset_write(rs, buf) ((*(rs)->control->f_write)((rs)->control, (buf)))
#endif
#endif