home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / xloadimg.zip / xloadimage.4.1 / mac.h < prev    next >
Text File  |  1993-10-21  |  1KB  |  45 lines

  1. /****************************************************************
  2.  * mac.h:
  3.  *
  4.  * adapted from code by Patrick Naughton (naughton@sun.soe.clarkson.edu)
  5.  *
  6.  * macin.h
  7.  * Mark Majhor
  8.  * August 1990
  9.  *
  10.  * routines for reading MAC files
  11.  *
  12.  * Copyright 1990 Mark Majhor (see the included file
  13.  * "mrmcpyrght.h" for complete copyright information)
  14.  *
  15.  ****************************************************************/
  16.  
  17. # define MAC_MAGIC    0x0
  18.  
  19. typedef unsigned char BYTE;    /* 8 bits unsigned        */
  20.  
  21. /*
  22.  * macin return codes
  23.  */
  24. #define MACIN_SUCCESS       0   /* success */
  25.  
  26. #define MACIN_ERR_BAD_SD   -1   /* bad screen descriptor */
  27. #define MACIN_ERR_BAD_SIG  -2   /* bad signature */
  28. #define MACIN_ERR_EOD      -3   /* unexpected end of raster data */
  29. #define MACIN_ERR_EOF      -4   /* unexpected end of input stream */
  30. #define MACIN_ERR_FAO      -5   /* file already open */
  31. #define MACIN_ERR_IAO      -6   /* image already open */
  32. #define MACIN_ERR_NFO      -7   /* no file open */
  33. #define MACIN_ERR_NIO      -8   /* no image open */
  34.  
  35. static int macin_open_image();
  36. static int macin_close_file();
  37. #if 0
  38. static int macin_fatal();
  39. #endif
  40.  
  41. #define    MAC_HDR_LEN    512
  42. #define ADD_HDR_LEN    128
  43. #define    MAX_LINES    720
  44. #define    BYTES_LINE    72
  45.