zlib.c 872 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * This file is derived from various .h and .c files from the zlib-1.2.3
  3. * distribution by Jean-loup Gailly and Mark Adler, with some additions
  4. * by Paul Mackerras to aid in implementing Deflate compression and
  5. * decompression for PPP packets. See zlib.h for conditions of
  6. * distribution and use.
  7. *
  8. * Changes that have been made include:
  9. * - changed functions not used outside this file to "local"
  10. * - added minCompression parameter to deflateInit2
  11. * - added Z_PACKET_FLUSH (see zlib.h for details)
  12. * - added inflateIncomp
  13. */
  14. #include <common.h>
  15. #ifdef CONFIG_GZIP_COMPRESSED
  16. #define NO_DUMMY_DECL
  17. #include "deflate.c"
  18. #include "trees.c"
  19. #endif
  20. #include "zutil.h"
  21. #include "inftrees.h"
  22. #include "inflate.h"
  23. #include "inffast.h"
  24. #include "inffixed.h"
  25. #include "inffast.c"
  26. #include "inftrees.c"
  27. #include "inflate.c"
  28. #include "zutil.c"
  29. #include "adler32.c"