summaryrefslogtreecommitdiffstats
path: root/depends/lzma/wrapper/common_internal.c
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-09-28 18:43:30 +0200
committerPetr Mrázek <peterix@gmail.com>2013-09-28 18:43:30 +0200
commitd267d86f6e24c4f947c30c1a3642d57b82f8addd (patch)
treea0c0cc7ced7f8d38ea5c12108ded83c762fba2f9 /depends/lzma/wrapper/common_internal.c
parentd903b0f0ea4bbeb6a20771575295ea28795dc5d7 (diff)
downloadMultiMC-d267d86f6e24c4f947c30c1a3642d57b82f8addd.tar
MultiMC-d267d86f6e24c4f947c30c1a3642d57b82f8addd.tar.gz
MultiMC-d267d86f6e24c4f947c30c1a3642d57b82f8addd.tar.lz
MultiMC-d267d86f6e24c4f947c30c1a3642d57b82f8addd.tar.xz
MultiMC-d267d86f6e24c4f947c30c1a3642d57b82f8addd.zip
Replace lzma with xz. Tweaks to fix debug builds.
Diffstat (limited to 'depends/lzma/wrapper/common_internal.c')
-rw-r--r--depends/lzma/wrapper/common_internal.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/depends/lzma/wrapper/common_internal.c b/depends/lzma/wrapper/common_internal.c
deleted file mode 100644
index c9213ef4..00000000
--- a/depends/lzma/wrapper/common_internal.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Written in 2009 by Lloyd Hilaiel
- *
- * License
- *
- * All the cruft you find here is public domain. You don't have to credit
- * anyone to use this code, but my personal request is that you mention
- * Igor Pavlov for his hard, high quality work.
- */
-
-#include "common_internal.h"
-
-static void *elzmaAlloc(void *p, size_t size)
-{
- struct elzma_alloc_struct *as = (struct elzma_alloc_struct *)p;
- if (as->clientMallocFunc)
- {
- return as->clientMallocFunc(as->clientMallocContext, size);
- }
- return malloc(size);
-}
-
-static void elzmaFree(void *p, void *address)
-{
- struct elzma_alloc_struct *as = (struct elzma_alloc_struct *)p;
- if (as->clientFreeFunc)
- {
- as->clientFreeFunc(as->clientMallocContext, address);
- }
- else
- {
- free(address);
- }
-}
-
-void init_alloc_struct(struct elzma_alloc_struct *as, elzma_malloc clientMallocFunc,
- void *clientMallocContext, elzma_free clientFreeFunc,
- void *clientFreeContext)
-{
- as->Alloc = elzmaAlloc;
- as->Free = elzmaFree;
- as->clientMallocFunc = clientMallocFunc;
- as->clientMallocContext = clientMallocContext;
- as->clientFreeFunc = clientFreeFunc;
- as->clientFreeContext = clientFreeContext;
-}