From a8d94f4acea04681c89b46233f90bd8f4cee6ebf Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Tue, 18 May 2021 15:34:16 +0200 Subject: Final improvements before push. --- stc/ccommon.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'stc/ccommon.h') 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], \ -- cgit v1.2.3