From e52594208cfeed7af6be03a9000f99c31d0f403d Mon Sep 17 00:00:00 2001 From: jsm Date: Sat, 1 Jan 2000 10:15:17 +0000 Subject: Declare variables as extern in headers rather than using linker commons. --- tetris/tetris.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'tetris/tetris.c') diff --git a/tetris/tetris.c b/tetris/tetris.c index f1f096a8..ba6eb439 100644 --- a/tetris/tetris.c +++ b/tetris/tetris.c @@ -1,4 +1,4 @@ -/* $NetBSD: tetris.c,v 1.12 1999/09/12 09:02:24 jsm Exp $ */ +/* $NetBSD: tetris.c,v 1.13 2000/01/01 10:15:17 jsm Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -62,8 +62,21 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993\n\ #include "screen.h" #include "tetris.h" +cell board[B_SIZE]; /* 1 => occupied, 0 => empty */ + +int Rows, Cols; /* current screen size */ + +const struct shape *curshape; +const struct shape *nextshape; + +long fallrate; /* less than 1 million; smaller => faster */ + +int score; /* the obvious thing */ gid_t gid, egid; +char key_msg[100]; +int showpreview; + static void elide __P((void)); static void setup_board __P((void)); int main __P((int, char **)); -- cgit v1.2.3