diff options
Diffstat (limited to 'common_functions.c')
-rw-r--r-- | common_functions.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/common_functions.c b/common_functions.c index 388b4b0..2c042cb 100644 --- a/common_functions.c +++ b/common_functions.c @@ -6,13 +6,15 @@ #include "progAVR.h" -#define FALSE 0 -#define TRUE (!0) +#ifndef FALSE + #define FALSE 0 +#endif +#ifndef TRUE + #define TRUE (!0) +#endif #define MinDly 0 -void ProgID(); -int CheckS1(); char** strings; //!localized strings int saveLog=0,programID=0,load_osccal=0,load_BKosccal=0; int use_osccal=1,use_BKosccal=0; @@ -30,11 +32,12 @@ unsigned char *memCODE=0,*memEE=0,memID[64],memCONFIG[48],memUSERID[8]; double hvreg=0; int RWstop=0; int forceConfig=0; -char str[4096]; +char str[4096]=""; void printMsg(const char* msg) { #ifdef OPGUI + GtkWidget* b_V33check; MsgBox(msg); #else PrintMessage(msg); @@ -50,6 +53,7 @@ void printMsg(const char* msg) struct hiddev_usage_ref_multi ref_multi_i,ref_multi_u; #endif unsigned char bufferU[128],bufferI[128]; + char path[512]=""; #else //Windows unsigned char bufferU0[128],bufferI0[128]; unsigned char *bufferU,*bufferI; |