lzma/7zAlloc.h
changeset 775 a8cc6b8a8e9c
child 780 8d029fecde3a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lzma/7zAlloc.h	Tue Apr 11 15:01:15 2006 +0000
@@ -0,0 +1,21 @@
+/* 7zAlloc.h */
+
+#ifndef __7Z_ALLOC_H
+#define __7Z_ALLOC_H
+
+#include <stddef.h>
+
+typedef struct _ISzAlloc
+{
+  void *(*Alloc)(size_t size);
+  void (*Free)(void *address); /* address can be 0 */
+} ISzAlloc;
+
+void *SzAlloc(size_t size);
+void SzFree(void *address);
+
+void *SzAllocTemp(size_t size);
+void SzFreeTemp(void *address);
+
+#endif
+