8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
0
|
// util/alloc.h, version 1.0.1 |
f1897e7 |
Jamozed |
2021-12-08 14:00:19 |
1
|
// Memory allocation header file from libutil |
f1897e7 |
Jamozed |
2021-12-08 14:00:19 |
2
|
// Copyright (C) 2021, Jakob Wakeling |
7f427d9 |
Jamozed |
2022-03-06 12:55:13 |
3
|
// MIT Licence |
f1897e7 |
Jamozed |
2021-12-08 14:00:19 |
4
|
|
f1897e7 |
Jamozed |
2021-12-08 14:00:19 |
5
|
#ifndef UTIL_ALLOC_H_M0UWQ8LT |
f1897e7 |
Jamozed |
2021-12-08 14:00:19 |
6
|
#define UTIL_ALLOC_H_M0UWQ8LT |
f1897e7 |
Jamozed |
2021-12-08 14:00:19 |
7
|
|
8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
8
|
#ifdef __cplusplus |
8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
9
|
extern "C" { |
8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
10
|
#endif |
8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
11
|
|
f1897e7 |
Jamozed |
2021-12-08 14:00:19 |
12
|
#include "util.h" |
f1897e7 |
Jamozed |
2021-12-08 14:00:19 |
13
|
|
f1897e7 |
Jamozed |
2021-12-08 14:00:19 |
14
|
extern void *xmalloc(UINT l); |
f1897e7 |
Jamozed |
2021-12-08 14:00:19 |
15
|
extern void *xcalloc(UINT n, UINT l); |
f1897e7 |
Jamozed |
2021-12-08 14:00:19 |
16
|
extern void *xrealloc(void *p, UINT l); |
8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
17
|
|
8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
18
|
#ifdef __cplusplus |
8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
19
|
} // extern "C" |
8a5f06f |
Jamozed |
2022-02-09 20:04:50 |
20
|
#endif |
f1897e7 |
Jamozed |
2021-12-08 14:00:19 |
21
|
|
f1897e7 |
Jamozed |
2021-12-08 14:00:19 |
22
|
#endif // UTIL_ALLOC_H_M0UWQ8LT |
|
|
|
23
|
|