diff options
| author | tslil <tslil@posteo.de> | 2021-01-03 17:20:39 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | 60dfb616282023dbc1f567355357e27018693077 (patch) | |
| tree | 435b0de145b97dcb6ecaf3fe73c03e6cd6ec0a44 /include/tak.h | |
| parent | 45d2aa065c7ac8143110873c069cd0de471739a7 (diff) | |
Incorrect usage of globals in header
Diffstat (limited to 'include/tak.h')
| -rw-r--r-- | include/tak.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/tak.h b/include/tak.h index f6cde6a..a398b51 100644 --- a/include/tak.h +++ b/include/tak.h @@ -22,12 +22,12 @@ typedef uint16_t colour_stack_t; #define COUNT_AT(l) (celldat[(l)] >> NUM_SHIFT) #define THE_COORDS(col,row) ((col)+(row)*board_size) -enum WIN_TYPE won; -uint8_t board_size; -data_t celldat[36]; -colour_stack_t colours[36]; -enum COLOUR current_colour; -uint8_t white_count, black_count, ply; +extern enum WIN_TYPE won; +extern uint8_t board_size; +extern data_t celldat[36]; +extern colour_stack_t colours[36]; +extern enum COLOUR current_colour; +extern uint8_t white_count, black_count, ply; void reset_state(const uint8_t new_board_size); void next_ply(void); |
