Exemple #1
0
static void
data_mark(struct saucy *s, struct coloring *c, int k)
{
	int cf = c->cfront[k];

	/* Move connects to the back of nonsingletons */
	if (c->clen[cf]) move_to_back(s, c, k);
}
Exemple #2
0
static void
data_count(struct saucy *s, struct coloring *c, int k)
{
	int cf = c->cfront[k];

	/* Move to back and count the number of connections */
	if (c->clen[cf] && !s->ccount[k]++) move_to_back(s, c, k);
}
int		my_mlx_hook_loop(t_env *e)
{
	if (e->mv->left == 1)
		e = move_to_left(e);
	if (e->mv->right == 1)
		e = move_to_right(e);
	if (e->mv->front == 1)
		e = move_to_front(e);
	if (e->mv->back == 1)
		e = move_to_back(e);
	my_expose_hook(e);
	return (0);
}