readme.txt 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. This directory contains a Pascal (Delphi, Kylix) interface to the
  2. zlib data compression library.
  3. Directory listing
  4. =================
  5. zlibd32.mak makefile for Borland C++
  6. example.pas usage example of zlib
  7. zlibpas.pas the Pascal interface to zlib
  8. readme.txt this file
  9. Compatibility notes
  10. ===================
  11. - Although the name "zlib" would have been more normal for the
  12. zlibpas unit, this name is already taken by Borland's ZLib unit.
  13. This is somehow unfortunate, because that unit is not a genuine
  14. interface to the full-fledged zlib functionality, but a suite of
  15. class wrappers around zlib streams. Other essential features,
  16. such as checksums, are missing.
  17. It would have been more appropriate for that unit to have a name
  18. like "ZStreams", or something similar.
  19. - The C and zlib-supplied types int, uInt, long, uLong, etc. are
  20. translated directly into Pascal types of similar sizes (Integer,
  21. LongInt, etc.), to avoid namespace pollution. In particular,
  22. there is no conversion of unsigned int into a Pascal unsigned
  23. integer. The Word type is non-portable and has the same size
  24. (16 bits) both in a 16-bit and in a 32-bit environment, unlike
  25. Integer. Even if there is a 32-bit Cardinal type, there is no
  26. real need for unsigned int in zlib under a 32-bit environment.
  27. - Except for the callbacks, the zlib function interfaces are
  28. assuming the calling convention normally used in Pascal
  29. (__pascal for DOS and Windows16, __fastcall for Windows32).
  30. Since the cdecl keyword is used, the old Turbo Pascal does
  31. not work with this interface.
  32. - The gz* function interfaces are not translated, to avoid
  33. interfacing problems with the C runtime library. Besides,
  34. gzprintf(gzFile file, const char *format, ...)
  35. cannot be translated into Pascal.
  36. Legal issues
  37. ============
  38. The zlibpas interface is:
  39. Copyright (C) 1995-2003 Jean-loup Gailly and Mark Adler.
  40. Copyright (C) 1998 by Bob Dellaca.
  41. Copyright (C) 2003 by Cosmin Truta.
  42. The example program is:
  43. Copyright (C) 1995-2003 by Jean-loup Gailly.
  44. Copyright (C) 1998,1999,2000 by Jacques Nomssi Nzali.
  45. Copyright (C) 2003 by Cosmin Truta.
  46. This software is provided 'as-is', without any express or implied
  47. warranty. In no event will the author be held liable for any damages
  48. arising from the use of this software.
  49. Permission is granted to anyone to use this software for any purpose,
  50. including commercial applications, and to alter it and redistribute it
  51. freely, subject to the following restrictions:
  52. 1. The origin of this software must not be misrepresented; you must not
  53. claim that you wrote the original software. If you use this software
  54. in a product, an acknowledgment in the product documentation would be
  55. appreciated but is not required.
  56. 2. Altered source versions must be plainly marked as such, and must not be
  57. misrepresented as being the original software.
  58. 3. This notice may not be removed or altered from any source distribution.