00001 #ifndef __RACE_H__ 00002 #define __RACE_H__ 00003 00004 /* 00005 Copyright (c) 2006-2010 Trevor Williams 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by the Free Software 00009 Foundation; either version 2 of the License, or (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00012 without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00013 See the GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License along with this program; 00016 if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00027 #include <stdio.h> 00028 00029 #include "defines.h" 00030 00031 00033 void race_check_modules(); 00034 00036 void race_db_write( race_blk* head, FILE* file ); 00037 00039 void race_db_read( char** line, /*@null@*/func_unit* curr_mod ); 00040 00042 void race_get_stats( 00043 race_blk* curr, 00044 /*@out@*/ unsigned int* race_total, 00045 /*@out@*/ unsigned int type_total[][RACE_TYPE_NUM] 00046 ); 00047 00049 void race_report( FILE* ofile, bool verbose ); 00050 00052 void race_collect_lines( 00053 func_unit* funit, 00054 /*@out@*/ int** slines, 00055 /*@out@*/ int** elines, 00056 /*@out@*/ int** reasons, 00057 /*@out@*/ int* line_cnt 00058 ); 00059 00061 void race_blk_delete_list( race_blk* rb ); 00062 00063 #endif 00064