home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / FALCON / CPX / CONFIG.LC / CPXHEAD.H < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-10  |  1.7 KB  |  59 lines

  1. /*
  2.  * 
  3.  * prefix_p.h
  4.  *
  5.  * The master header file for PREFIX.PRG. This little file 
  6.  * handles all of the function prototypes, external globals
  7.  * across modules, etc.
  8.  *
  9.  * 90Feb21    towns        fixed the header to reflect reality.
  10.  *                I added a set only flag for CPX entries
  11.  *                and added the title string.    
  12.  *
  13.  * 90Feb21    towns        added the view_cpx(), sm_convert(),
  14.  *                and lg_convert() prototypes.
  15.  *
  16.  * 90Feb20    towns        added the attach function proto.
  17.  *
  18.  * 90Jan29    towns        added the CPXHEAD structure for
  19.  *                use by the loading and saving 
  20.  *                routines.
  21.  *
  22.  * 90Jan25    towns        created.
  23.  *
  24.  */
  25.  
  26. /* -------------------------------------------------------------------- */
  27. /* CPX Header Structure. This is 'tacked' onto the front of Each CPX     */
  28. /* with a special program.                        */
  29. /* -------------------------------------------------------------------- */
  30.  
  31. typedef struct _cpxhead {
  32.  
  33.     unsigned short    magic;            /* Magic Number = 100         */
  34. #if 0
  35.     struct {
  36.         unsigned reserved : 13;    /* Reserved for Expansion     */
  37.         unsigned resident : 1;    /* RAM Resident Flag        */
  38.         unsigned bootinit : 1;    /* Boot Initialization Flag    */
  39.         unsigned setonly  : 1;    /* Set Only CPX Flag         */
  40.     } flags;
  41. #endif
  42.     unsigned short  flags;
  43.     long        cpx_id;        /* The ID value          */
  44.     unsigned short    cpx_version;    /* Version number         */
  45.  
  46.     char        i_text[14];    /* Icon Text            */
  47.     unsigned short    sm_icon[48];    /* Icon bitmap - 32x24 pixels    */
  48.     unsigned short    i_color;    /* Color for Icon        */
  49.  
  50.     char        title_txt[18];    /* Title for CPX entry         */
  51.     unsigned short    t_color;    /* Pen value for text color    */
  52.     char        buffer[64];    /* Buffer for RAM storage     */
  53.  
  54.     char        reserved[306];    /* Reserved for Expansion    */
  55.  
  56. } CPXHEAD;
  57.  
  58. #define MAGIC_CPX_NUM    100
  59.