Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.9KB

  1. /*
  2. Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
  3. See the accompanying file LICENSE, version 2007-Mar-04 or later
  4. (the contents of which are also included in unzip.h) for terms of use.
  5. If, for some reason, all these files are missing, the Info-ZIP license
  6. also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html
  7. */
  8. /*---------------------------------------------------------------------------
  9. ubz2err.c
  10. This file contains the "fatal error" callback routine required by the
  11. "minimal" (silent, non-stdio) setup of the bzip2 compression library.
  12. The fatal bzip2 error bail-out routine is provided in a separate code
  13. module, so that it can be easily overridden when the UnZip package is
  14. used as a static link library. One example is the WinDLL static library
  15. usage for building a monolythic binary of the Windows application "WiZ"
  16. that supports bzip2 both in compression and decompression operations.
  17. Contains: bz_internal_error() (USE_BZIP2 only)
  18. ---------------------------------------------------------------------------*/
  19. #define __UBZ2ERR_C /* identifies this source module */
  20. #define UNZIP_INTERNAL
  21. #include "unzip.h"
  22. #ifdef WINDLL
  23. # ifdef POCKET_UNZIP
  24. # include "wince/intrface.h"
  25. # else
  26. # include "windll/windll.h"
  27. # endif
  28. #endif
  29. #ifdef USE_BZIP2
  30. /**********************************/
  31. /* Function bz_internal_error() */
  32. /**********************************/
  33. /* Call-back function for the bzip2 decompression code (compiled with
  34. * BZ_NO_STDIO), required to handle fatal internal bug-type errors of
  35. * the bzip2 library.
  36. */
  37. void bz_internal_error(bzerrcode)
  38. int bzerrcode;
  39. {
  40. GETGLOBALS();
  41. Info(slide, 0x421, ((char *)slide,
  42. "error: internal fatal libbzip2 error number %d\n", bzerrcode));
  43. #ifdef WINDLL
  44. longjmp(dll_error_return, 1);
  45. #else
  46. DESTROYGLOBALS();
  47. EXIT(PK_BADERR);
  48. #endif
  49. } /* end function bz_internal_error() */
  50. #endif /* USE_BZIP2 */