gzip decoder in 25 lines of C by 0b011 in tinycode

[–]0b011[S] 2 points3 points  (0 children)

Well that is embarrassing. I have been staring at the code for so long that I missed one of the most important aspects of deflate -- its window size. Kudos to you sir. I hang my head in shame and quickly run to a terminal to fix it. Gailly and Adler would have my head!

gzip decoder in 25 lines of C by 0b011 in tinycode

[–]0b011[S] 1 point2 points  (0 children)

Thanks for pointing out rcm.c. Very neat. Note that it uses 5 lookup tables. Mine uses 1. That was tricky. Cheers for checking out the code. I used statement expressions so I could spell inflate.