3 * Checks CRC values for resource files
5 * v. 1.00 (24 August 1991)
7 * © 1991-1998 Straylight
10 /*----- Licensing note ----------------------------------------------------*
12 * This file is part of Straylight's Steel library.
14 * Steel is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2, or (at your option)
19 * Steel is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with Steel. If not, write to the Free Software Foundation,
26 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
33 * long crc(char *filename)
36 * Calculates the CRC value for the file specified. Uses the same method
40 * char *filename == the filename of the file to check (leaf only - it's
41 * passed through res_findname()). Note that CRC-checking the
42 * '!RunImage' file is rather silly.
48 long crc(char *filename);
51 * void crc_check(char *filename,long check)
54 * Checks a CRC value for a file and reports a fatal error if the check
58 * char *filename == the leafname of the file
59 * long check == the CRC number to check with
62 void crc_check(char *filename,long check);
65 * void crc_checkRunImage(void)
68 * Corruption-checks the main !RunImage file. It must have been passed
69 * through CodeScr first, to install the CRC into the code.
72 void crc_checkRunImage(void);