misc/libphysfs/lzma/C/Archive/7z/7zAlloc.h
author Wuzzy <Wuzzy2@mail.ru>
Wed, 28 Mar 2018 15:21:23 +0200
changeset 13292 e9caada3aac1
parent 12213 bb5522e88ab2
permissions -rw-r--r--
CMake for server: Pass -dynamic flag to ghc

/* 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