Zlib open source
I am trying to understand zlib source code.But I am facing so many problemn.
1. In the file "deflate.c " also in other file data type "z_streamp" is used but could not under stand this.Please help me to understand .
2. In deflate.c file I get code
local void fill_window OF((deflate_state *s));
I could not understand the use of "OF".
Tell about this line in details
My guess would be that OF() is a macro that allows "classic (K&R)" and "ansi" prototypes.
As to what z_streamp, I have no idea, but it sounds like an implementation of "file streams".
zlib source code
I want to understand the zlib code (zlib source code, version 1.2.3, tar.bz2 format (415K, MD5 checksum dee233bf288ee795ac96a98cc2e369b6) ) but it is not easy for me to understand by myself.If there is any guide book or material so that I can understand properly plz infrom me
I'm going to guess and say that at this point in time you cannot do what you want to do, at least not without some very thorough guide material. I'm going to guess again and say that no one will have written such a thing, but I could be wrong.
Originally Posted by indrajit_muk
Is this because you want to learn C? I am sure there is no other real way to understand the zlib code. But you will have to do that first.
This thread is a duplicate of another zlib code question (well, more or less the same at least).
zlib is certainly not good learning material, as it is meant to run on just about any OS using just about any processor architecture, and that in itself is pretty messy.
The threads have been merged.