diff options
Diffstat (limited to 'stc/ccommon.h')
| -rw-r--r-- | stc/ccommon.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stc/ccommon.h b/stc/ccommon.h index ed44bcd7..0fa74f7b 100644 --- a/stc/ccommon.h +++ b/stc/ccommon.h @@ -122,8 +122,7 @@ for (type i=start, i##_inc_=step, i##_end_=(stop) - (0 < i##_inc_) \
; (i <= i##_end_) == (0 < i##_inc_); i += i##_inc_)
-#define c_with(start, end) for (int _c_w = (start, 0); !_c_w; end, ++_c_w)
-#define c_withfile(f, open) for (FILE *f = open; f; fclose(f), f = NULL)
+#define c_with(start, end) for (start, *_c_w = NULL; !_c_w; ++_c_w, end)
#define c_withbuffer(b, type, n) c_withbuffer_x(b, type, n, 256)
#define c_withbuffer_x(b, type, n, BYTES) \
for (type _c_b[((BYTES) - 1) / sizeof(type) + 1], \
|
