summaryrefslogtreecommitdiff
path: root/src/fileio.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-07 12:11:48 +0000
committerrubidium <rubidium@openttd.org>2007-03-07 12:11:48 +0000
commit24c4d5b06d231785db01500360c26815d8fe4d15 (patch)
tree757477dbdc02025cc29690a4e66e40f872cab02b /src/fileio.cpp
parent36bb92ae241403d61dc7a3e5a1696b615be61395 (diff)
downloadopenttd-24c4d5b06d231785db01500360c26815d8fe4d15.tar.xz
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r--src/fileio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index e317987cd..897785d1b 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -18,7 +18,7 @@
#define FIO_BUFFER_SIZE 512
#define MAX_HANDLES 64
-typedef struct {
+struct Fio {
byte *buffer, *buffer_end; ///< position pointer in local buffer and last valid byte of buffer
uint32 pos; ///< current (system) position in file
FILE *cur_fh; ///< current file handle
@@ -29,7 +29,7 @@ typedef struct {
const char *filename[MAX_HANDLES]; ///< array of filenames we (should) have open
uint usage_count[MAX_HANDLES]; ///< count how many times this file has been opened
#endif /* LIMITED_FDS */
-} Fio;
+};
static Fio _fio;