diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:49 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 23:52:54 +0900 |
commit | c0623c7fb28b6a3b33893c7844409dbbec2d2d83 (patch) | |
tree | b0b11f04bbbf18ef7944971501addfd3f6c586ea | |
parent | f12309041381a3b2f79c2f59473d710e33ab07d4 (diff) | |
download | kchmviewer-c0623c7fb28b6a3b33893c7844409dbbec2d2d83.tar.gz kchmviewer-c0623c7fb28b6a3b33893c7844409dbbec2d2d83.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 9d71490e2507a563d0066ec26c085bb91e155ecd)
-rw-r--r-- | lib/chmlib/lzx.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/chmlib/lzx.c b/lib/chmlib/lzx.c index 7a5545b..b189439 100644 --- a/lib/chmlib/lzx.c +++ b/lib/chmlib/lzx.c @@ -346,9 +346,9 @@ int LZXreset(struct LZXstate *pState) */ static int make_decode_table(ULONG nsyms, ULONG nbits, UBYTE *length, UWORD *table) { - register UWORD sym; - register ULONG leaf; - register UBYTE bit_num = 1; + UWORD sym; + ULONG leaf; + UBYTE bit_num = 1; ULONG fill; ULONG pos = 0; /* the current position in the decode table */ ULONG table_mask = 1 << nbits; @@ -425,8 +425,8 @@ static int lzx_read_lens(struct LZXstate *pState, UBYTE *lens, ULONG first, ULON ULONG i,j, x,y; int z; - register ULONG bitbuf = lb->bb; - register int bitsleft = lb->bl; + ULONG bitbuf = lb->bb; + int bitsleft = lb->bl; UBYTE *inpos = lb->ip; UWORD *hufftbl; @@ -476,8 +476,8 @@ int LZXdecompress(struct LZXstate *pState, unsigned char *inpos, unsigned char * ULONG R1 = pState->R1; ULONG R2 = pState->R2; - register ULONG bitbuf; - register int bitsleft; + ULONG bitbuf; + int bitsleft; ULONG match_offset, i,j,k; /* ijk used in READ_HUFFSYM macro */ struct lzx_bits lb; /* used in READ_LENGTHS macro */ |