diff options
author | Max Horn | 2004-04-25 14:42:14 +0000 |
---|---|---|
committer | Max Horn | 2004-04-25 14:42:14 +0000 |
commit | d4f876b37df0fdc772936eedf9b112802987254b (patch) | |
tree | c7e782e5846dd153159c574ca9cb2ca250dfd34f /saga/xmidi_mod.h | |
parent | f9cd78cedd48371f8aa9d98cbcdeb879fe543fac (diff) | |
download | scummvm-rg350-d4f876b37df0fdc772936eedf9b112802987254b.tar.gz scummvm-rg350-d4f876b37df0fdc772936eedf9b112802987254b.tar.bz2 scummvm-rg350-d4f876b37df0fdc772936eedf9b112802987254b.zip |
Fix many warnings; use C++ type system instead of C style typedefs; removed various unused stuff; const correctness; etc.
svn-id: r13622
Diffstat (limited to 'saga/xmidi_mod.h')
-rw-r--r-- | saga/xmidi_mod.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/saga/xmidi_mod.h b/saga/xmidi_mod.h index 4d093072a7..8743f78c32 100644 --- a/saga/xmidi_mod.h +++ b/saga/xmidi_mod.h @@ -83,9 +83,9 @@ enum MIDI_EVENT_LENGTHS { MIDI_SYSEX_TIMESIG_LEN = 7 }; -typedef struct XMIDIEVENT_tag { - struct XMIDIEVENT_tag *prev_event; - struct XMIDIEVENT_tag *next_event; +struct XMIDIEVENT { + XMIDIEVENT *prev_event; + XMIDIEVENT *next_event; size_t smf_size; /* Size of event in SMF format */ @@ -99,13 +99,13 @@ typedef struct XMIDIEVENT_tag { uchar op3; uchar op4; uchar pad; -} XMIDIEVENT; +}; -typedef struct XMIDIEVENT_LIST_tag { +struct XMIDIEVENT_LIST { XMIDIEVENT *head; XMIDIEVENT *tail; int smf_size; -} XMIDIEVENT_LIST; +}; int XMIDI_Read(const uchar *XMI_img, XMIDIEVENT_LIST *event_list); int XMIDI_Free(XMIDIEVENT_LIST *event_list); |