diff options
author | Flavio Poletti <flavio@polettix.it> | 2019-06-16 14:24:26 +0000 |
---|---|---|
committer | Flavio Poletti <flavio@polettix.it> | 2019-06-16 14:24:26 +0000 |
commit | 630e697bbda7c2849f4af6d4f2876dd41f1f3bc1 (patch) | |
tree | 53c59affcef4d4bf6dc9ce0aee2e01c9867cf0e8 /bricks.c | |
parent | 8bb002ba7bb2f68f7d5b3ea8cf4f667724a1cd6e (diff) | |
download | oldrunner-630e697bbda7c2849f4af6d4f2876dd41f1f3bc1.tar.gz |
Add vim modeline, remove trailing spaces
Diffstat (limited to 'bricks.c')
-rw-r--r-- | bricks.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,4 +1,6 @@ /* $Id: bricks.c,v 1.1.1.1 2010/07/17 17:30:32 culot Exp $ */ +/* vim: et ai sts=2 ts=2 sw=2: + * */ /* * Copyright (c) 2010 Frederic Culot <frederic@culot.org> @@ -65,7 +67,7 @@ bricks_free (void) while (!SLIST_EMPTY (&bricks)) { struct brick *b; - + b = SLIST_FIRST (&bricks); SLIST_REMOVE_HEAD (&bricks, bricksp); xfree (b); @@ -118,7 +120,7 @@ void bricks_draw (void) { struct brick *b; - + SLIST_FOREACH (b, &bricks, bricksp) draw_brick (&b->pos, b->state); } @@ -127,13 +129,13 @@ unsigned bricks_broken_at (const struct coord *pos) { struct brick *b; - + SLIST_FOREACH (b, &bricks, bricksp) { if (b->state == BRICK_BROKEN && coord_equal (&b->pos, pos)) return 1; } - + return 0; } |