home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / ZOO21E.EXE / ZOOMEM.H < prev    next >
C/C++ Source or Header  |  1991-07-11  |  2KB  |  63 lines

  1. /* derived from: zoomem.h 2.1 87/12/25 12:26:18 */
  2. /* $Path$ */
  3. /* $Id: zoomem.h,v 1.3 91/07/09 01:43:06 dhesi Exp $ */
  4.  
  5. /*
  6. (C) Copyright 1991 Rahul Dhesi -- All rights reserved
  7.  
  8. Defines parameters used for memory allocation.
  9. */
  10.  
  11. /* ZOOCOUNT is the number of archive names that may be matched by the
  12. archive filespec specified for a list.
  13.  
  14. MAXADD is the number of filenames that may be added to an archive
  15. at one go.  The total number of files that an archive may contain
  16. is not determined by MAXADD but is determined by available memory.
  17. */
  18.  
  19. #ifdef   SMALL_MEM
  20. #define  ZOOCOUNT   (30)
  21. #define  MAXADD     (100)
  22. #endif
  23.  
  24. #ifdef   MED_MEM
  25. #define  ZOOCOUNT   (50)
  26. #define  MAXADD     (200)
  27. #endif
  28.  
  29. #ifdef   BIG_MEM
  30. #define  ZOOCOUNT   (400)
  31. #define  MAXADD     (4000)
  32. #endif
  33.  
  34. /* Customizable sizes */
  35. #ifdef   SPEC_MEM
  36. #define  ZOOCOUNT    (100)
  37. #define  MAXADD      (400)
  38. #endif
  39.  
  40. extern char *out_buf_adr;              /* global I/O buffer */
  41.  
  42. /*************************************************************/
  43. /* DO NOT CHANGE THE REST OF THIS FILE.                      */
  44. /*************************************************************/
  45.  
  46. /*
  47. The main I/O buffer (called in_buf_adr in zoo.c) is reused
  48. in several places.
  49. */
  50.  
  51. #define  IN_BUF_SIZE       8192
  52. #define  OUT_BUF_SIZE      8192
  53.  
  54. /* MEM_BLOCK_SIZE must be no less than (2 * DICSIZ + MAXMATCH)
  55. (see ar.h and lzh.h for values).  The buffer of this size will
  56. also hold an input buffer of IN_BUF_SIZE and an output buffer
  57. of OUT_BUF_SIZE.  FUDGE is a fudge factor, to keep some spare and
  58. avoid off-by-one errors. */
  59.  
  60. #define FUDGE        8
  61. #define  MEM_BLOCK_SIZE    (8192 + 8192 + 256 + 8)
  62.  
  63.