home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / fileutil / scan.lha / src / lhio.h < prev    next >
C/C++ Source or Header  |  1992-05-21  |  1KB  |  24 lines

  1. /*----------------------------------------------------------------------*/
  2. /*              File I/O module for LHarc UNIX                          */
  3. /*              This is part of LHarc UNIX Archiver Driver              */
  4. /*                                                                      */
  5. /*              Copyright(C) MCMLXXXIX  Yooichi.Tagawa                  */
  6. /*                                                                      */
  7. /*  V0.00  Original                             1989.06.25  Y.Tagawa    */
  8. /*  V0.03  Release #3  Beta Version             1989.07.02  Y.Tagawa    */
  9. /*  V1.00  Fixed                                1989.09.22  Y.Tagawa    */
  10. /*----------------------------------------------------------------------*/
  11.  
  12. extern int              text_mode;
  13.  
  14. extern unsigned int     crc_table[0x100];
  15. extern unsigned int     crc_value;
  16. extern int              crc_getc_cashe;
  17. extern FILE             *crc_infile, *crc_outfile;
  18. extern long             crc_size;
  19.  
  20.  
  21. #define CRC_CHAR(c)                                             \
  22. { register unsigned int ctmp = crc_value ^ c;                   \
  23.     crc_value = (ctmp >> 8) ^ crc_table [ ctmp & 0xff ]; }
  24.