}
/* function to clear an Sfio_t structure */
-#define SFCLEAR(f,mtx) \
+#define SFCLEAR(f) \
( (f)->next = (unsigned char*)0, /* next */ \
(f)->endw = (unsigned char*)0, /* endw */ \
(f)->endr = (unsigned char*)0, /* endr */ \
if (!f) {
if (!(f = (Sfio_t *) malloc(sizeof(Sfio_t))))
return NIL(Sfio_t *);
- SFCLEAR(f, NIL(Vtmutex_t *));
+ SFCLEAR(f);
}
}
return -1;
/* make a fake stream */
- SFCLEAR(&f, NIL(Vtmutex_t *));
+ SFCLEAR(&f);
f.flags = SF_STRING | SF_WRITE;
f.mode = SF_WRITE;
f.size = n - 1;
return -1;
/* make a fake stream */
- SFCLEAR(&f, NIL(Vtmutex_t *));
+ SFCLEAR(&f);
f.flags = SF_STRING | SF_READ;
f.mode = SF_READ;
f.size = strlen(s);
return NIL(Sfio_t *);
}
- SFCLEAR(f2, NIL(Vtmutex_t *));
+ SFCLEAR(f2);
}
f2->mode = SF_AVAIL | SF_LOCK;
f2mode = SF_AVAIL;