ttunpack.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /******************************************************************************
  2. *
  3. * project name: TI-68k Developer Utilities
  4. * file name: ttunpack.h
  5. * initial date: 14/08/2000
  6. * author: thomas.nussbaumer@gmx.net
  7. * description: defines of errorcodes of decompression routine and its
  8. * declaration
  9. ******************************************************************************/
  10. /*
  11. This file is part of TI-68k Developer Utilities and ExtGraph.
  12. This file is free software; you can redistribute it and/or
  13. modify it under the terms of the GNU Lesser General Public
  14. License as published by the Free Software Foundation; either
  15. version 2.1 of the License, or (at your option) any later version.
  16. As a special exception, UNMODIFIED copies of ttunpack may also be
  17. redistributed or sold without source code, for any purpose. (The Lesser
  18. General Public License restrictions do apply in other respects; for example,
  19. they cover modification of the program.) This exception notice must be
  20. removed on modified copies of this file.
  21. This program is distributed in the hope that it will be useful,
  22. but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  24. Lesser General Public License for more details.
  25. You should have received a copy of the GNU Lesser General Public
  26. License along with this library; if not, write to the Free Software
  27. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  28. */
  29. #ifndef __TTUNPACK_H__
  30. #define __TTUNPACK_H__
  31. #define ERRPCK_OKAY 0
  32. #define ERRPCK_NOESCFOUND 248
  33. #define ERRPCK_ESCBITS 249
  34. #define ERRPCK_MAXGAMMA 250
  35. #define ERRPCK_EXTRALZP 251
  36. #define ERRPCK_NOMAGIC 252
  37. #define ERRPCK_OUTBUFOVERRUN 253
  38. #define ERRPCK_LZPOSUNDERRUN 254
  39. int _tt_Decompress(unsigned char *src, unsigned char *dest);
  40. #define UnPack _tt_Decompress
  41. #endif
  42. //#############################################################################
  43. //###################### NO MORE FAKES BEYOND THIS LINE #######################
  44. //#############################################################################
  45. //
  46. //=============================================================================
  47. // Revision History
  48. //=============================================================================
  49. //
  50. // Revision 1.2 2000/08/20 15:26:21 Thomas Nussbaumer
  51. // prefix of unpack routine (_tt_) corrected
  52. //
  53. // Revision 1.1 2000/08/14 22:49:57 Thomas Nussbaumer
  54. // initial version
  55. //
  56. //