From add37ecc4ee6485d9f91f95f1c983abf867da2c6 Mon Sep 17 00:00:00 2001 From: Kevin Worth Date: Mon, 28 Nov 2005 17:48:06 +0000 Subject: [PATCH] 2005-11-28 kevin worth * src/ttt-board.c: * src/ttt-board.h: Moved struct def from ttt-board.h into ttt-board.c to make it private * src/ttt-lex.h: Autogenerated --- ChangeLog | 9 +++++++++ src/ttt-board.c | 4 ++++ src/ttt-board.h | 4 +--- src/ttt-lex.h | 2 ++ 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4e2aba1..d1a6ced 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-11-28 kevin worth + + * src/ttt-board.c: + * src/ttt-board.h: Moved struct def from ttt-board.h into + ttt-board.c to make it private + + * src/ttt-lex.h: + Autogenerated + 2005-11-28 Carl Worth * TODO: Add instructions on using the first letter of our names to diff --git a/src/ttt-board.c b/src/ttt-board.c index 7627b4d..27fb19e 100644 --- a/src/ttt-board.c +++ b/src/ttt-board.c @@ -21,6 +21,10 @@ #include "ttt-board.h" +struct _ttt_board { + int cells[TTT_BOARD_MAX_CELLS]; +}; + /* Initialize an empty board. */ void ttt_board_init (ttt_board_t *board) diff --git a/src/ttt-board.h b/src/ttt-board.h index c589a77..e9498cc 100644 --- a/src/ttt-board.h +++ b/src/ttt-board.h @@ -26,9 +26,7 @@ #define TTT_BOARD_MAX_CELLS 9 -typedef struct ttt_board { - int cells[TTT_BOARD_MAX_CELLS]; -} ttt_board_t; +typedef struct _ttt_board ttt_board_t; void ttt_board_init (ttt_board_t *board); diff --git a/src/ttt-lex.h b/src/ttt-lex.h index 964b6a0..d70d5d8 100644 --- a/src/ttt-lex.h +++ b/src/ttt-lex.h @@ -224,6 +224,8 @@ void yyfree (void * ,yyscan_t yyscanner ); #define YY_EXTRA_TYPE void * #endif +static int yy_init_globals (yyscan_t yyscanner ); + /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ -- 2.43.0