(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};

This commit is contained in:
rubidium
2007-03-07 12:11:48 +00:00
parent 36bb92ae24
commit 24c4d5b06d
138 changed files with 779 additions and 789 deletions

View File

@@ -6,12 +6,12 @@
#define FIOS_H
/* Deals with finding savegames */
typedef struct {
struct FiosItem {
byte type;
uint64 mtime;
char title[64];
char name[256 - 12 - 64];
} FiosItem;
};
enum {
FIOS_TYPE_DRIVE = 0,
@@ -56,15 +56,15 @@ int CDECL compare_FiosItems(const void *a, const void *b);
/* Implementation of opendir/readdir/closedir for Windows */
#if defined(WIN32)
#include <windows.h>
typedef struct DIR DIR;
struct DIR;
typedef struct dirent { // XXX - only d_name implemented
struct dirent { // XXX - only d_name implemented
wchar_t *d_name; // name of found file
/* little hack which will point to parent DIR struct which will
* save us a call to GetFileAttributes if we want information
* about the file (for example in function fio_bla) */
DIR *dir;
} dirent;
};
struct DIR {
HANDLE hFind;