home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 1 / FFMCD01.bin / bbs / libdisks / d700t799 / disk751.lha / PPMC / Source / PPMC_Main.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-05  |  1.7 KB  |  88 lines

  1. /*
  2.                             -----------------------
  3.                                   PPMC_Main.h
  4.                                 © 1992 REELSOFT
  5.                             -----------------------
  6. */
  7.  
  8. #include    <libraries/dos.h>
  9. #include    <libraries/ppbase.h>
  10. #include    <libraries/reqtools.h>
  11.  
  12. #ifdef    LATTICE
  13.  
  14. #ifdef    PPMC_CX
  15. #include    <proto/commodities.h>
  16. #endif
  17. #include    <proto/dos.h>
  18. #include    <proto/exec.h>
  19. #include    <proto/gadtools.h>
  20. #include    <proto/graphics.h>
  21. #include    <proto/intuition.h>
  22. #include    <proto/powerpacker.h>
  23. #include    <proto/reqtools.h>
  24. #include    <proto/wb.h>
  25.  
  26. #else
  27.  
  28. #ifdef    PPMC_CX
  29. #include    <clib/commodities_protos.h>
  30. #endif
  31. #include    <clib/dos_protos.h>
  32. #include    <clib/exec_protos.h>
  33. #include    <clib/gadtools_protos.h>
  34. #include    <clib/graphics_protos.h>
  35. #include    <clib/intuition_protos.h>
  36. #include    <clib/powerpacker_protos.h>
  37. #include    <clib/reqtools_protos.h>
  38. #include    <clib/wb_protos.h>
  39.  
  40. #endif
  41.  
  42. #include    <intuition/gadgetclass.h>
  43. #include    <workbench/startup.h>
  44.  
  45. #include    <stdio.h>
  46. #include    <string.h>
  47.  
  48. #include    "PPMC_Defines.h"
  49.  
  50. extern    struct    AppWindow        *appwin ;
  51. extern    struct    MsgPort            *msgport ;
  52.  
  53. #ifdef    PPMC_CX
  54. extern    struct    MsgPort            *BrokerMP ;
  55. extern    CxObj                    *broker ;
  56. #endif
  57.  
  58. //    Crunch Variables...
  59. APTR    crin    = NULL ;
  60. UBYTE    *cdata    = NULL ;
  61. ULONG    csize, clen ;
  62.  
  63. UBYTE    oldname [108] ;
  64. UBYTE    newname [108] ;
  65.  
  66. UBYTE    stmsg [100] ;
  67.  
  68. BOOL    crunched    = FALSE ;
  69.  
  70. //    Cleanup () Switches...
  71. #define    FROM_WB        99
  72. #define    FROM_CLI    999
  73.  
  74. //    NewMenu Items Location...
  75. #define    NM_Save            4
  76. #define    NM_SaveAs        5
  77. #define    NM_Password        25
  78. #define    NM_Start        27
  79.  
  80. //    getpath() definition from dos.h ( not included to redefine chkabort() )...
  81. extern    int    getpath __ARGS((BPTR, char *)) ;
  82.  
  83. //    Disable SAS/C CTRL-C handing...
  84. #ifdef    LATTICE
  85. int    CXBRK     (void)    { return (0) ; }
  86. int    chkabort (void)    { return (0) ; }
  87. #endif
  88. //    ...