summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/luapplib/src/util/utilmem.h
blob: 4cfcfaba2a73650d01bbe209e16c96e235d32920 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

#ifndef UTIL_MEM_H
#define UTIL_MEM_H

#include <stdlib.h> // for size_t and alloc functions
#include "utildecl.h"

UTILAPI void * util_malloc (size_t size);
UTILAPI void * util_calloc (size_t num, size_t size);
UTILAPI void * util_realloc (void *m, size_t size);

void util_resize (void **data, size_t unit, size_t size, size_t extra, size_t *space, int allocated);

#define util_free free // not a call, might be used as identifier

#endif