line.h

Go to the documentation of this file.
00001 #ifndef __LINE_H__
00002 #define __LINE_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 
00026 #include <stdio.h>
00027 
00028 #include "defines.h"
00029 
00031 void line_get_stats(
00032             func_unit*    funit,
00033   /*@out@*/ unsigned int* hit,
00034   /*@out@*/ unsigned int* excluded,
00035   /*@out@*/ unsigned int* total
00036 );
00037 
00039 void line_collect(
00040             func_unit* funit,
00041             int        cov,
00042   /*@out@*/ int**      lines,
00043   /*@out@*/ int**      excludes,
00044   /*@out@*/ char***    reasons,
00045   /*@out@*/ int*       line_cnt,
00046   /*@out@*/ int*       line_size
00047 );
00048 
00050 void line_get_funit_summary(
00051             func_unit*    funit,
00052   /*@out@*/ unsigned int* hit,
00053   /*@out@*/ unsigned int* excluded,
00054   /*@out@*/ unsigned int* total
00055 );
00056 
00058 void line_get_inst_summary(
00059             funit_inst*   inst,
00060   /*@out@*/ unsigned int* hit,
00061   /*@out@*/ unsigned int* excluded,
00062   /*@out@*/ unsigned int* total
00063 );
00064 
00066 void line_report(
00067   FILE* ofile,
00068   bool  verbose
00069 );
00070 
00071 #endif
00072 
Generated on Sun Nov 21 00:55:35 2010 for Covered by  doxygen 1.6.3