lzma/7zAlloc.h
author Ryan C. Gordon <icculus@icculus.org>
Tue, 11 Apr 2006 15:01:15 +0000
changeset 775 a8cc6b8a8e9c
child 780 8d029fecde3a
permissions -rw-r--r--
Some minor fixes and cleanups.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
775
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
/* 7zAlloc.h */
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
#ifndef __7Z_ALLOC_H
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
#define __7Z_ALLOC_H
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6
#include <stddef.h>
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     8
typedef struct _ISzAlloc
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     9
{
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    10
  void *(*Alloc)(size_t size);
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    11
  void (*Free)(void *address); /* address can be 0 */
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    12
} ISzAlloc;
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    13
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    14
void *SzAlloc(size_t size);
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    15
void SzFree(void *address);
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    16
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    17
void *SzAllocTemp(size_t size);
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    18
void SzFreeTemp(void *address);
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    19
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    20
#endif
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    21