main.h
Upload User: caisha3
Upload Date: 2013-09-21
Package Size: 208739k
Code Size: 1k
Category:

Windows Develop

Development Platform:

Visual C++

  1. /*
  2. ** main.h - Constants and globals used in LZA file compression program.
  3. **
  4. ** Author:  DavidDi
  5. */
  6. // Constants
  7. /////////////
  8. #define EXIT_SUCCESS       0           // main() return codes
  9. #define EXIT_FAILURE       1
  10. #define FAIL               (-1)
  11. #define chHELP_SWITCH      '?'         // help switch character
  12. #define chRENAME_SWITCH    'R'         // rename switch character
  13. #define chUPDATE_SWITCH    'D'         // update-only switch character
  14. #define chLIST_SWITCH      'D'         // CAB directory listing switch character
  15. #define chSELECTIVE_SWITCH 'F'         // CAB selective extract switch character
  16. #ifdef COMPRESS
  17. #define chALG_SWITCH       'Z'         // use diamond
  18. #define MSZIP_ALG          (ALG_FIRST + 128)
  19. #define QUANTUM_ALG        (ALG_FIRST + 129)
  20. #define LZX_ALG            (ALG_FIRST + 130)
  21. #endif
  22. #define DEFAULT_ALG        ALG_FIRST   // compression algorithm to use if
  23.                                        // none is specified
  24. // Globals
  25. ///////////
  26. extern CHAR ARG_PTR *pszInFileName,    // input file name
  27.                     *pszOutFileName,   // output file name
  28.                     *pszTargetName;    // target path name