home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / zip201.zip / amiga / amiga.c next >
C/C++ Source or Header  |  1993-09-01  |  1KB  |  47 lines

  1. /* OS specific routines for AMIGA platform.
  2.  *
  3.  * John Bush    <JBush@landfill.east.sun.com>  BIX: jbush
  4.  * Paul Kienitz <Paul.Kienitz@f28.n125.z1.fidonet.org>
  5.  *
  6.  * History:
  7.  *
  8.  * Date     DoBee    Comments
  9.  * -------  -------- -----------------------------------------------
  10.  * 21Jan93  JBush    Original coding.
  11.  *                   Incorporated filedate.c (existing routine).
  12.  *
  13.  * 31Jan93  JBush    Made filedate.c include unconditional.
  14.  *
  15.  * 18Jul93  PaulK    Moved Aztec _abort() here from stat.c because we
  16.  *                   can't share the same one between Zip and UnZip.
  17.  *                   Added close_leftover_open_dirs() call to it.
  18.  */
  19.  
  20.  
  21. /* ============================================================ */
  22. /* filedate.c is an external file, since it's shared with UnZip */
  23.  
  24. #include "amiga/filedate.c"
  25.  
  26. /* ============================================================ */
  27. /* the same applies to stat.c, but only for Aztec               */
  28.  
  29. #ifdef AZTEC_C
  30. #  include "amiga/stat.c"
  31.  
  32. /* the following handles cleanup when a ^C interrupt happens: */
  33.  
  34. #  include "ziperr.h"
  35. #  define echon() set_con()     /* make sure this matches crypt.h */
  36. void err(int c, char *h);
  37.  
  38. void _abort(void)               /* called when ^C is pressed */
  39. {
  40.     close_leftover_open_dirs();
  41.     echon();
  42.     err(ZE_ABORT, "^C");
  43. }
  44.  
  45. #endif /* AZTEC_C */
  46.  
  47.