]> git.proxmox.com Git - libgit2.git/blob - src/allocators/failalloc.c
5257d1dece0a2c2458b9a676628775729a127a52
[libgit2.git] / src / allocators / failalloc.c
1 /*
2 * Copyright (C) the libgit2 contributors. All rights reserved.
3 *
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
6 */
7
8 #include "failalloc.h"
9
10 void *git_failalloc_malloc(size_t len, const char *file, int line)
11 {
12 GIT_UNUSED(len);
13 GIT_UNUSED(file);
14 GIT_UNUSED(line);
15
16 return NULL;
17 }
18
19 void *git_failalloc_calloc(size_t nelem, size_t elsize, const char *file, int line)
20 {
21 GIT_UNUSED(nelem);
22 GIT_UNUSED(elsize);
23 GIT_UNUSED(file);
24 GIT_UNUSED(line);
25
26 return NULL;
27 }
28
29 char *git_failalloc_strdup(const char *str, const char *file, int line)
30 {
31 GIT_UNUSED(str);
32 GIT_UNUSED(file);
33 GIT_UNUSED(line);
34
35 return NULL;
36 }
37
38 char *git_failalloc_strndup(const char *str, size_t n, const char *file, int line)
39 {
40 GIT_UNUSED(str);
41 GIT_UNUSED(n);
42 GIT_UNUSED(file);
43 GIT_UNUSED(line);
44
45 return NULL;
46 }
47
48 char *git_failalloc_substrdup(const char *start, size_t n, const char *file, int line)
49 {
50 GIT_UNUSED(start);
51 GIT_UNUSED(n);
52 GIT_UNUSED(file);
53 GIT_UNUSED(line);
54
55 return NULL;
56 }
57
58 void *git_failalloc_realloc(void *ptr, size_t size, const char *file, int line)
59 {
60 GIT_UNUSED(ptr);
61 GIT_UNUSED(size);
62 GIT_UNUSED(file);
63 GIT_UNUSED(line);
64
65 return NULL;
66 }
67
68 void *git_failalloc_reallocarray(void *ptr, size_t nelem, size_t elsize, const char *file, int line)
69 {
70 GIT_UNUSED(ptr);
71 GIT_UNUSED(nelem);
72 GIT_UNUSED(elsize);
73 GIT_UNUSED(file);
74 GIT_UNUSED(line);
75
76 return NULL;
77 }
78
79 void *git_failalloc_mallocarray(size_t nelem, size_t elsize, const char *file, int line)
80 {
81 GIT_UNUSED(nelem);
82 GIT_UNUSED(elsize);
83 GIT_UNUSED(file);
84 GIT_UNUSED(line);
85
86 return NULL;
87 }
88
89 void git_failalloc_free(void *ptr)
90 {
91 GIT_UNUSED(ptr);
92 }