Add option -d (decompress) to fpga_compress. Allows testing.

Improve zlib deflate (note: no change required to inflate).
This commit is contained in:
pwpiwi 2015-05-18 08:49:38 +02:00
commit 4b3f6d79ea
5 changed files with 204 additions and 11 deletions

View file

@ -847,8 +847,8 @@ int flush;
break;
case 1: /* fixed block */
#ifdef ZLIB_PM3_TUNED
Dbprintf("FATAL error. Compressed FPGA files with fixed code blocks are not supported!");
for(;;);
strm->msg = (char *)"fixed block coding not supported";
state->mode = BAD;
#else
fixedtables(state);
Tracev((stderr, "inflate: fixed codes block%s\n",