From 24c4d5b06d231785db01500360c26815d8fe4d15 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 7 Mar 2007 12:11:48 +0000 Subject: (svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {}; --- src/newgrf_gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/newgrf_gui.cpp') diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 3a1c49719..cf9a52508 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -106,10 +106,10 @@ static void ShowNewGRFInfo(const GRFConfig *c, uint x, uint y, uint w, bool show /* Dialogue for adding NewGRF files to the selection */ -typedef struct newgrf_add_d { +struct newgrf_add_d { GRFConfig **list; const GRFConfig *sel; -} newgrf_add_d; +}; static void NewGRFAddDlgWndProc(Window *w, WindowEvent *e) @@ -236,14 +236,14 @@ static const WindowDesc _newgrf_add_dlg_desc = { /* 'NewGRF Settings' dialogue */ -typedef struct newgrf_d { +struct newgrf_d { GRFConfig **orig_list; ///< grf list the window is shown with GRFConfig **list; ///< temporary grf list to which changes are made GRFConfig *sel; ///< selected grf item bool editable; ///< is the window editable bool show_params; ///< are the grf-parameters shown in the info-panel bool execute; ///< on pressing 'apply changes' are grf changes applied immediately, or only list is updated -} newgrf_d; +}; assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(newgrf_d)); -- cgit v1.2.3-54-g00ecf