home *** CD-ROM | disk | FTP | other *** search
- /*
- -----------------------
- PPMC_Main.h
- © 1992 REELSOFT
- -----------------------
- */
-
- #include <libraries/dos.h>
- #include <libraries/ppbase.h>
- #include <libraries/reqtools.h>
-
- #ifdef LATTICE
-
- #ifdef PPMC_CX
- #include <proto/commodities.h>
- #endif
- #include <proto/dos.h>
- #include <proto/exec.h>
- #include <proto/gadtools.h>
- #include <proto/graphics.h>
- #include <proto/intuition.h>
- #include <proto/powerpacker.h>
- #include <proto/reqtools.h>
- #include <proto/wb.h>
-
- #else
-
- #ifdef PPMC_CX
- #include <clib/commodities_protos.h>
- #endif
- #include <clib/dos_protos.h>
- #include <clib/exec_protos.h>
- #include <clib/gadtools_protos.h>
- #include <clib/graphics_protos.h>
- #include <clib/intuition_protos.h>
- #include <clib/powerpacker_protos.h>
- #include <clib/reqtools_protos.h>
- #include <clib/wb_protos.h>
-
- #endif
-
- #include <intuition/gadgetclass.h>
- #include <workbench/startup.h>
-
- #include <stdio.h>
- #include <string.h>
-
- #include "PPMC_Defines.h"
-
- extern struct AppWindow *appwin ;
- extern struct MsgPort *msgport ;
-
- #ifdef PPMC_CX
- extern struct MsgPort *BrokerMP ;
- extern CxObj *broker ;
- #endif
-
- // Crunch Variables...
- APTR crin = NULL ;
- UBYTE *cdata = NULL ;
- ULONG csize, clen ;
-
- UBYTE oldname [108] ;
- UBYTE newname [108] ;
-
- UBYTE stmsg [100] ;
-
- BOOL crunched = FALSE ;
-
- // Cleanup () Switches...
- #define FROM_WB 99
- #define FROM_CLI 999
-
- // NewMenu Items Location...
- #define NM_Save 4
- #define NM_SaveAs 5
- #define NM_Password 25
- #define NM_Start 27
-
- // getpath() definition from dos.h ( not included to redefine chkabort() )...
- extern int getpath __ARGS((BPTR, char *)) ;
-
- // Disable SAS/C CTRL-C handing...
- #ifdef LATTICE
- int CXBRK (void) { return (0) ; }
- int chkabort (void) { return (0) ; }
- #endif
- // ...