diff options
author | Paul Gilbert | 2019-06-20 22:20:59 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-06-22 14:40:50 -0700 |
commit | 8f75589971d70b2ca749d5389a332e6761213a5b (patch) | |
tree | 4ddb7bba2a1040c5b563b89b75ae823182c08a91 /engines/glk/alan2/decode.cpp | |
parent | ad1cecaeac5d54b0973d6c7edce8181cb965ff68 (diff) | |
download | scummvm-rg350-8f75589971d70b2ca749d5389a332e6761213a5b.tar.gz scummvm-rg350-8f75589971d70b2ca749d5389a332e6761213a5b.tar.bz2 scummvm-rg350-8f75589971d70b2ca749d5389a332e6761213a5b.zip |
GLK: ALAN2: Remove all prototype ifdef blocks
Diffstat (limited to 'engines/glk/alan2/decode.cpp')
-rw-r--r-- | engines/glk/alan2/decode.cpp | 38 |
1 files changed, 5 insertions, 33 deletions
diff --git a/engines/glk/alan2/decode.cpp b/engines/glk/alan2/decode.cpp index 4ffdc2f3b9..f1ec3db89c 100644 --- a/engines/glk/alan2/decode.cpp +++ b/engines/glk/alan2/decode.cpp @@ -32,13 +32,7 @@ static int decodeBuffer; /* Bits to be input */ static int bitsToGo; /* Bits still in buffer */ static int garbageBits; /* Bits past EOF */ - -#ifdef _PROTOTYPES_ -static int inputBit(void) -#else -static int inputBit() -#endif -{ +static int inputBit() { int bit; if (!bitsToGo) { /* More bits available ? */ @@ -63,12 +57,7 @@ static CodeValue value; /* Currently seen code value */ static CodeValue low, high; /* Current code region */ -#ifdef _PROTOTYPES_ -void startDecoding(void) -#else -void startDecoding() -#endif -{ +void startDecoding() { int i; bitsToGo = 0; @@ -81,13 +70,7 @@ void startDecoding() high = TOPVALUE; } - -#ifdef _PROTOTYPES_ -int decodeChar(void) -#else -int decodeChar() -#endif -{ +int decodeChar() { long range; int f; int symbol; @@ -144,12 +127,7 @@ typedef struct DecodeInfo { restore and continue later. */ -#ifdef _PROTOTYPES_ -void *pushDecode(void) -#else -void *pushDecode() -#endif -{ +void *pushDecode() { DecodeInfo *info; info = (DecodeInfo *) allocate(sizeof(DecodeInfo)); @@ -171,13 +149,7 @@ void *pushDecode() continue after having decoded something else. */ -#ifdef _PROTOTYPES_ -void popDecode(void *i) -#else -void popDecode(i) - void *i; -#endif -{ +void popDecode(void *i) { DecodeInfo *info = (DecodeInfo *) i; fseek(txtfil, info->fpos, 0); decodeBuffer = info->buffer; |