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/console.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/console.h')
-rw-r--r-- | saga/console.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/saga/console.h b/saga/console.h index 12a0b7ebf7..02560edb80 100644 --- a/saga/console.h +++ b/saga/console.h @@ -39,7 +39,7 @@ namespace Saga { #define R_CONSOLE_TXTCOLOR 0x00FFFFFFUL #define R_CONSOLE_TXTSHADOW 0x00202020UL -typedef struct R_CONSOLEINFO_tag { +struct R_CONSOLEINFO { int active; int y_max; @@ -53,24 +53,24 @@ typedef struct R_CONSOLEINFO_tag { char input_buf[R_CON_INPUTBUF_LEN + 1]; int input_pos; -} R_CONSOLEINFO; +}; -typedef struct R_CONSOLE_LINE_tag { +struct R_CONSOLE_LINE { - struct R_CONSOLE_LINE_tag *next; - struct R_CONSOLE_LINE_tag *prev; + R_CONSOLE_LINE *next; + R_CONSOLE_LINE *prev; char *str_p; int str_len; -} R_CONSOLE_LINE; +}; -typedef struct R_CON_SCROLLBACK_tag { +struct R_CON_SCROLLBACK { - struct R_CONSOLE_LINE_tag *head; - struct R_CONSOLE_LINE_tag *tail; + R_CONSOLE_LINE *head; + R_CONSOLE_LINE *tail; int lines; -} R_CON_SCROLLBACK; +}; static int CON_AddLine(R_CON_SCROLLBACK * scroll, int line_max, const char *constr_p); |