summaryrefslogtreecommitdiffstats
path: root/parts/documentation/protocols
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:42 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 23:52:48 +0900
commit76ef0cc47c8bbb03ae4f32680515aedf484ec5f8 (patch)
tree90d45576b52840fd52c9f22682574a44a1df6a01 /parts/documentation/protocols
parent97498570fe5cf2ec7abeb0e06920a6bb8a364cb2 (diff)
downloadtdevelop-76ef0cc47c8bbb03ae4f32680515aedf484ec5f8.tar.gz
tdevelop-76ef0cc47c8bbb03ae4f32680515aedf484ec5f8.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit da6bd0768e4304e6c2853d012c7d0686a205addb)
Diffstat (limited to 'parts/documentation/protocols')
-rw-r--r--parts/documentation/protocols/chm/decompress.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/parts/documentation/protocols/chm/decompress.cpp b/parts/documentation/protocols/chm/decompress.cpp
index b8f45ae2..e10bab45 100644
--- a/parts/documentation/protocols/chm/decompress.cpp
+++ b/parts/documentation/protocols/chm/decompress.cpp
@@ -323,9 +323,9 @@ int LZXinit(int window) {
*/
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;
@@ -405,8 +405,8 @@ int lzx_read_lens(UBYTE *lens, ULONG first, ULONG last, lzx_bits *lb) {
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;
@@ -462,8 +462,8 @@ int LZXdecompress(UBYTE* inpos, int inlen, UBYTE* outpos, int outlen) {
ULONG R1 = LZX(R1);
ULONG R2 = LZX(R2);
- register ULONG bitbuf;
- register int bitsleft;
+ ULONG bitbuf;
+ int bitsleft;
ULONG match_offset, i,j,k; /* ijk used in READ_HUFFSYM macro */
lzx_bits lb; /* used in READ_LENGTHS macro */