summaryrefslogtreecommitdiff
path: root/tester/covoar/app_common.h
blob: ac32bbd96fcbaa34a0ae532f82934cecd24e6b79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef __APP_COMMON_h
#define __APP_COMMON_h

/*
 * This file needs to be removed and these globals removed from the
 * global scope. For example SymbolsToAnalyze is never destructed.
 */

#include <list>

#include "DesiredSymbols.h"
#include "Explanations.h"
#include "TargetBase.h"

extern Coverage::Explanations*      AllExplanations;
extern Coverage::ObjdumpProcessor*  objdumpProcessor;
extern Coverage::DesiredSymbols*    SymbolsToAnalyze;
extern bool                         Verbose;
extern const char*                  outputDirectory;
extern bool                         BranchInfoAvailable;
extern Target::TargetBase*          TargetInfo;
extern const char*                  dynamicLibrary;
extern const char*                  projectName;

#define MAX_LINE_LENGTH             512
extern char                         inputBuffer[MAX_LINE_LENGTH];
extern char                         inputBuffer2[MAX_LINE_LENGTH];


bool FileIsNewer( const char *f1, const char *f2 );
bool FileIsReadable( const char *f1 );
bool ReadUntilFound( FILE *file, const char *line );

#endif