{}
CXX-W1243{}
25
26typedef struct node_t Node;
27
28typedef struct {29 Node* first;30 Node* last;
31} LinkedList;
32
{}
18#include "bomb.h"
19#include "ai.h"
20
21#define forever for (;;) 22#define CHANGE_PLAYER (game->turn = (game->turn + 1) % 2) 23
24static int game_action_fire(Board* board);
25static int game_action_move(Board* board);
Loop body not being enclosed in {}
can make it confusing and hard to read,
hence consider using {}
for loop body.
int x = 0;
while (x < 10) x++;
int x = 0;
while (x < 10) {
x++;
}