(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

@@ -5,26 +5,26 @@
#ifndef HAL_H
#define HAL_H
typedef struct {
struct HalCommonDriver {
const char *(*start)(const char * const *parm);
void (*stop)();
} HalCommonDriver;
};
typedef struct {
struct HalVideoDriver {
const char *(*start)(const char * const *parm);
void (*stop)();
void (*make_dirty)(int left, int top, int width, int height);
void (*main_loop)();
bool (*change_resolution)(int w, int h);
void (*toggle_fullscreen)(bool fullscreen);
} HalVideoDriver;
};
typedef struct {
struct HalSoundDriver {
const char *(*start)(const char * const *parm);
void (*stop)();
} HalSoundDriver;
};
typedef struct {
struct HalMusicDriver {
const char *(*start)(const char * const *parm);
void (*stop)();
@@ -32,7 +32,7 @@ typedef struct {
void (*stop_song)();
bool (*is_song_playing)();
void (*set_volume)(byte vol);
} HalMusicDriver;
};
extern HalMusicDriver *_music_driver;
extern HalSoundDriver *_sound_driver;