home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / slfinsta.zip / include / globals.h < prev    next >
C/C++ Source or Header  |  2000-03-26  |  2KB  |  90 lines

  1. /* $Id: globals.h,v 1.1 2000/03/27 04:53:05 ktk Exp $ */
  2.  
  3. /* ------------------------------------------------------------------------ */
  4. /*                                                                          */
  5. /*      Global variable definitions                                         */
  6. /*                                                                          */
  7. /* ------------------------------------------------------------------------ */
  8.  
  9. #ifndef __globals_h
  10. #define __globals_h
  11.  
  12.  
  13. #include "acestruc.h"
  14. #include "unace.h"
  15.  
  16. //-------- Ace sign
  17. extern const char *acesign;
  18.  
  19. //-------- Version string for program
  20. extern const char *version;
  21.  
  22. //-------- header buffer and pointers
  23. extern thead head;
  24.  
  25. extern tmhead *t_mhead;
  26. extern tfhead *t_fhead;
  27.  
  28. //-------- buffers
  29. extern ULONG *buf_rd ;
  30. extern CHAR  *buf    ;
  31. extern CHAR  *buf_wr ;
  32. extern UCHAR *readbuf;
  33.  
  34. //-------- decompressor variables
  35. extern
  36. SHORT rpos          ,
  37.       dcpr_do       ,
  38.       dcpr_do_max   ,
  39.       blocksize     ,
  40.       dcpr_dic      ,
  41.       dcpr_oldnum   ,
  42.       bits_rd       ,
  43.       dcpr_frst_file;
  44. extern
  45. USHORT dcpr_code_mn[1 << maxwd_mn],
  46.        dcpr_code_lg[1 << maxwd_lg];
  47. extern
  48. UCHAR dcpr_wd_mn[maxcode + 2],
  49.       dcpr_wd_lg[maxcode + 2],
  50.       wd_svwd[svwd_cnt];
  51. extern
  52. ULONG dcpr_dpos      ,
  53.       cpr_dpos2      ,
  54.       dcpr_dicsiz    ,
  55.       dcpr_dican     ,
  56.       dcpr_size      ,
  57.       dcpr_olddist[4],
  58.       code_rd        ;
  59. extern
  60. CHAR *dcpr_text      ;
  61.  
  62. //-------- quicksort
  63. extern USHORT sort_org[maxcode + 2];
  64. extern UCHAR sort_freq[(maxcode + 2) * 2];
  65.  
  66. //-------- file handling
  67. extern CHAR aname[PATH_MAX];
  68. extern
  69. INT  archan,
  70.      wrhan;
  71. extern LONG skipsize;
  72.  
  73. //-------- structures for archive handling
  74. extern struct tadat adat;
  75.  
  76. //-------- flags
  77. extern
  78. INT  f_err      ,
  79.      f_ovrall   ,
  80.      f_allvol_pr,
  81.      f_curpas   ,
  82.      f_criterr  ;
  83.  
  84. int pipeit(char *format, ...);
  85. void error(char *format, ...);
  86. int confirm(char *format, ...);
  87.  
  88. #endif /* __globals_h */
  89.  
  90.