From 558657d6aa8cac730595f05eef5e5f94c2419d57 Mon Sep 17 00:00:00 2001 From: tawada Date: Mon, 27 May 2019 09:46:57 +0900 Subject: [PATCH] change variables to extern --- io.c | 4 ++++ io.h | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/io.c b/io.c index 033d38e..8d8e446 100644 --- a/io.c +++ b/io.c @@ -10,6 +10,10 @@ short int w=0, h=0; // 使用する盤面サイズ short int blocks=0; // ブロックの数 +short int block_data[MAXBLOCK+1][5][3]; // ブロックの情報 + +short int board_data[MAXW][MAXH]; // 盤面情報 + void reset_parameters(void){ int i,j,k; for(i=0;i