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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
#ifndef __COMPILERINFO_H__
#define __COMPILERINFO_H__
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
double progress1;
double progress2;
char task[1000];
char file[1000];
char item[1000];
int funcs;
int objs;
int globs;
int strings;
int resources;
bool newComments;
bool finished;
bool success;
} compilerInfo;
enum whichPerc {
P_TOP,
P_BOTTOM
};
enum compilerStatusText {
COMPILER_TXT_ACTION,
COMPILER_TXT_FILENAME,
COMPILER_TXT_ITEM
};
#ifdef __APPLE__
void setCompilerText (const compilerStatusText, const char * theText);
#else
void setCompilerText (const compilerStatusText where, const char * theText);
#endif
void setCompilerStats (int funcs, int objTypes, int files, int globals, int strings);
void setInfoReceiver(void (*infoReceiver)(compilerInfo *));
void clearRect(int i, int whichBox);
void percRect(unsigned int i, int whichBox);
void compilerCommentsUpdated();
void setFinished(bool success);
#ifdef __cplusplus
}
#endif
#endif
|