992 |
/* check if tracefile has changed */ |
/* check if tracefile has changed */ |
993 |
static int fileupdated(void) |
static int fileupdated(void) |
994 |
{ |
{ |
995 |
|
#if WANT_HAMLIB |
996 |
struct stat s; |
struct stat s; |
997 |
gint status; |
gint status; |
998 |
|
|
1002 |
if (finfo.modified != s.st_mtime) |
if (finfo.modified != s.st_mtime) |
1003 |
return 1; |
return 1; |
1004 |
} |
} |
1005 |
|
#endif |
1006 |
return -1; |
return -1; |
1007 |
} |
} |
1008 |
|
|
1010 |
static gint |
static gint |
1011 |
updatetrace (gpointer data) |
updatetrace (gpointer data) |
1012 |
{ |
{ |
1013 |
|
#if WANT_HAMLIB |
1014 |
GtkWidget *tracetextview; |
GtkWidget *tracetextview; |
1015 |
GtkTextBuffer *buffer; |
GtkTextBuffer *buffer; |
1016 |
GtkTextIter start, end; |
GtkTextIter start, end; |
1039 |
fclose (fd); |
fclose (fd); |
1040 |
} |
} |
1041 |
} |
} |
1042 |
|
#endif |
1043 |
return 1; |
return 1; |
1044 |
} |
} |
1045 |
|
|