diff options
Diffstat (limited to 'src/htsmodules.c')
-rw-r--r-- | src/htsmodules.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/htsmodules.c b/src/htsmodules.c index 50fa0db..656cd6a 100644 --- a/src/htsmodules.c +++ b/src/htsmodules.c @@ -89,30 +89,6 @@ HTSEXT_API const char *hts_get_version_info(httrackp * opt) { return opt->state.HTbuff; } -/* memory checks */ -HTSEXT_API htsErrorCallback htsCallbackErr = NULL; -HTSEXT_API int htsMemoryFastXfr = 1; /* fast xfr by default */ -void abortLog__fnc(char *msg, char *file, int line); -void abortLog__fnc(char *msg, char *file, int line) { - FILE *fp = fopen("CRASH.TXT", "wb"); - - if (!fp) - fp = fopen("/tmp/CRASH.TXT", "wb"); - if (!fp) - fp = fopen("C:\\CRASH.TXT", "wb"); - if (!fp) - fp = fopen("CRASH.TXT", "wb"); - if (fp) { - fprintf(fp, "HTTrack " HTTRACK_VERSIONID " closed at '%s', line %d\r\n", - file, line); - fprintf(fp, "Reason:\r\n%s\r\n", msg); - fflush(fp); - fclose(fp); - } -} - -HTSEXT_API t_abortLog abortLog__ = abortLog__fnc; /* avoid VC++ inlining */ - static void htspe_log(htsmoduleStruct * str, const char *msg); int hts_parse_externals(htsmoduleStruct * str) { |