| 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_realloc(void *ptr, size_t size, const char *file, int line) |
| 20 |
{ |
| 21 |
GIT_UNUSED(ptr); |
| 22 |
GIT_UNUSED(size); |
| 23 |
GIT_UNUSED(file); |
| 24 |
GIT_UNUSED(line); |
| 25 |
|
| 26 |
return NULL; |
| 27 |
} |
| 28 |
|
| 29 |
void git_failalloc_free(void *ptr) |
| 30 |
{ |
| 31 |
GIT_UNUSED(ptr); |
| 32 |
} |