Mercurial > hg > dmlib
comparison src/dmzlib.c @ 1000:5df750e47721
Rename a variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 01 Mar 2015 03:03:44 +0200 |
parents | b3b8794c4915 |
children | 198156b930d7 |
comparison
equal
deleted
inserted
replaced
999:b3b8794c4915 | 1000:5df750e47721 |
---|---|
339 } | 339 } |
340 } | 340 } |
341 } | 341 } |
342 | 342 |
343 | 343 |
344 static const Uint8 length_dezigzag[19] = | 344 static const Uint8 dm_zlib_length_dezigzag[19] = |
345 { | 345 { |
346 16, 17, 18, 0, 8, 7, 9, | 346 16, 17, 18, 0, 8, 7, 9, |
347 6 , 10, 5 , 11, 4, 12, 3, | 347 6 , 10, 5 , 11, 4, 12, 3, |
348 13, 2 , 14, 1 , 15 | 348 13, 2 , 14, 1 , 15 |
349 }; | 349 }; |
362 | 362 |
363 memset(codeLengthSizes, 0, sizeof(codeLengthSizes)); | 363 memset(codeLengthSizes, 0, sizeof(codeLengthSizes)); |
364 | 364 |
365 for (i = 0; i < hclen; i++) | 365 for (i = 0; i < hclen; i++) |
366 { | 366 { |
367 codeLengthSizes[length_dezigzag[i]] = (Uint8) s; | |
368 int s = dmZReceive(ctx, 3); | 367 int s = dmZReceive(ctx, 3); |
368 codeLengthSizes[dm_zlib_length_dezigzag[i]] = (Uint8) s; | |
369 } | 369 } |
370 | 370 |
371 if ((ret = dmZLibBuildHuffmanTables(&z_codelength, codeLengthSizes, 19)) != DMERR_OK) | 371 if ((ret = dmZLibBuildHuffmanTables(&z_codelength, codeLengthSizes, 19)) != DMERR_OK) |
372 return ret; | 372 return ret; |
373 | 373 |