summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:49 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:49 +0900
commit9d71490e2507a563d0066ec26c085bb91e155ecd (patch)
treee1fc8afecb5159431c309f249215f25ed2bc55a3 /lib
parentbd9128ecd7315f352c6014ea0bf7f3589307e2cc (diff)
downloadkchmviewer-master.tar.gz
kchmviewer-master.zip
Removed explicit usage of the 'register' keyword.HEADmaster
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'lib')
-rw-r--r--lib/chmlib/lzx.c14
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 */