summaryrefslogtreecommitdiff
path: root/src/htsmodules.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-05-04 08:48:23 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-05-04 08:48:23 +0000
commitb1fa75dfe08461c0f1349093266bcdc852bcd713 (patch)
treef9d3d7950c6e72d1c0d05d6ea4f0a6dff2346ab9 /src/htsmodules.c
parent4da59a639962cecf3599f19813b00f2ab065e089 (diff)
Big cleanup in string primitives and abort functions
Diffstat (limited to 'src/htsmodules.c')
-rw-r--r--src/htsmodules.c24
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) {