diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-06-11 17:28:27 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-06-11 17:28:27 +0200 |
commit | a8665d204255b4b0ad9ae6982f77ecd5e053c1b6 (patch) | |
tree | 5f7e58785f5175e7f067ffaf8f96d16272c92d1e /src/common/metafile.h | |
parent | 8ffdf2583e4ea77731490dcaad51dbc08d7f26fa (diff) | |
download | colobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.tar.gz colobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.tar.bz2 colobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.zip |
Changed #defined constants to consts; typedef struct -> struct
Diffstat (limited to 'src/common/metafile.h')
-rw-r--r-- | src/common/metafile.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/common/metafile.h b/src/common/metafile.h index c580f6a..0fa1b51 100644 --- a/src/common/metafile.h +++ b/src/common/metafile.h @@ -22,24 +22,22 @@ #include <stdio.h>
-#define METAMAX 5
+const int METAMAX = 5;
-typedef struct
+struct MetaHeader
{
char name[14]; // file name (8.3 max)
int start; // position from the beginning of the metafile
int len; // length of the file
-}
-MetaHeader;
+};
-typedef struct
+struct MetaFile
{
char name[50]; // name of the metafile
FILE* stream; // channel
int total; // number of files
MetaHeader* headers; // headers of files
-}
-MetaFile;
+};
|