<commit_before>/* Copyright ©2007-2008 <NAME> <<EMAIL>>
 * See LICENSE file for license details.
 */

#ifdef VARARGCK
# pragma varargck	argpos	debug	2
# pragma varargck	argpos	dprint	1
# pragma varargck	argpos	event	1
# pragma varargck	argpos	warning	1
#
# pragma varargck	type	"a"	Area*	
# pragma varargck	type	"C"	Client*	
# pragma varargck	type	"r"	void
#endif

#define _cond(cond, n) __alive++ == n && cond
#define _cont(cont) (void)(__alive--, cont)

#define with(type, var) \
	for(type var=(type)-1; (var == (type)-1) && ((var=0) || true);)

/* Grotesque, but worth it. */

#define foreach_area(v, s, a) \
	with(int, __alive)                            \
	with(Area*, __anext)                          \
	for(s=0; _cond(s <= nscreens, 0); _cont(s++)) \
		for((a)=(s < nscreens ? (v)->areas[s] : v->floating), __anext=(a)->next; _cond(a, 1); _cont(((a)=__anext) && (__anext=(a)->next)))

#define foreach_column(v, s, a) \<commit_msg>Fix bug in last commit<commit_after>/* Copyright ©2007-2008 <NAME> <<EMAIL>>
 * See LICENSE file for license details.
 */

#ifdef VARARGCK
# pragma varargck	argpos	debug	2
# pragma varargck	argpos	dprint	1
# pragma varargck	argpos	event	1
# pragma varargck	argpos	warning	1
#
# pragma varargck	type	"a"	Area*	
# pragma varargck	type	"C"	Client*	
# pragma varargck	type	"r"	void
#endif

#define _cond(cond, n) (cond) && __alive++ == n
#define _cont(cont) (void)(__alive--, cont)

#define with(type, var) \
	for(type var=(type)-1; (var == (type)-1) && ((var=0) || true);)

/* Grotesque, but worth it. */

#define foreach_area(v, s, a) \
	with(int, __alive)                            \
	with(Area*, __anext)                          \
	for(s=0; _cond(s <= nscreens, 0); _cont(s++)) \
		for((a)=(s < nscreens ? (v)->areas[s] : v->floating), __anext=(a)->next; _cond(a, 1); _cont(((a)=__anext) && (__anext=(a)->next)))

#define foreach_column(v, s, a) \
{'fraction_non_alphanumeric': 0.18229994700582935, 'fraction_numerical': 0.019077901430842606, 'mean_word_length': 3.3602771362586603, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1492888', 'n_tokens_mistral': 789, 'n_tokens_neox': 767, 'n_words': 200}