« deps/libgit2/src/libgit2/xdiff/xpatience.c
↑ Summary
deps/libgit2/src/util/allocators/win32_leakcheck.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 | 0 | void *git_failalloc_malloc(size_t len, const char *file, int line) | |
| 11 | { | ||
| 12 | 0 | GIT_UNUSED(len); | |
| 13 | 0 | GIT_UNUSED(file); | |
| 14 | 0 | GIT_UNUSED(line); | |
| 15 | |||
| 16 | 0 | return NULL; | |
| 17 | } | ||
| 18 | |||
| 19 | 0 | void *git_failalloc_calloc(size_t nelem, size_t elsize, const char *file, int line) | |
| 20 | { | ||
| 21 | 0 | GIT_UNUSED(nelem); | |
| 22 | 0 | GIT_UNUSED(elsize); | |
| 23 | 0 | GIT_UNUSED(file); | |
| 24 | 0 | GIT_UNUSED(line); | |
| 25 | |||
| 26 | 0 | return NULL; | |
| 27 | } | ||
| 28 | |||
| 29 | 0 | char *git_failalloc_strdup(const char *str, const char *file, int line) | |
| 30 | { | ||
| 31 | 0 | GIT_UNUSED(str); | |
| 32 | 0 | GIT_UNUSED(file); | |
| 33 | 0 | GIT_UNUSED(line); | |
| 34 | |||
| 35 | 0 | return NULL; | |
| 36 | } | ||
| 37 | |||
| 38 | 0 | char *git_failalloc_strndup(const char *str, size_t n, const char *file, int line) | |
| 39 | { | ||
| 40 | 0 | GIT_UNUSED(str); | |
| 41 | 0 | GIT_UNUSED(n); | |
| 42 | 0 | GIT_UNUSED(file); | |
| 43 | 0 | GIT_UNUSED(line); | |
| 44 | |||
| 45 | 0 | return NULL; | |
| 46 | } | ||
| 47 | |||
| 48 | 0 | char *git_failalloc_substrdup(const char *start, size_t n, const char *file, int line) | |
| 49 | { | ||
| 50 | 0 | GIT_UNUSED(start); | |
| 51 | 0 | GIT_UNUSED(n); | |
| 52 | 0 | GIT_UNUSED(file); | |
| 53 | 0 | GIT_UNUSED(line); | |
| 54 | |||
| 55 | 0 | return NULL; | |
| 56 | } | ||
| 57 | |||
| 58 | 0 | void *git_failalloc_realloc(void *ptr, size_t size, const char *file, int line) | |
| 59 | { | ||
| 60 | 0 | GIT_UNUSED(ptr); | |
| 61 | 0 | GIT_UNUSED(size); | |
| 62 | 0 | GIT_UNUSED(file); | |
| 63 | 0 | GIT_UNUSED(line); | |
| 64 | |||
| 65 | 0 | return NULL; | |
| 66 | } | ||
| 67 | |||
| 68 | 0 | void *git_failalloc_reallocarray(void *ptr, size_t nelem, size_t elsize, const char *file, int line) | |
| 69 | { | ||
| 70 | 0 | GIT_UNUSED(ptr); | |
| 71 | 0 | GIT_UNUSED(nelem); | |
| 72 | 0 | GIT_UNUSED(elsize); | |
| 73 | 0 | GIT_UNUSED(file); | |
| 74 | 0 | GIT_UNUSED(line); | |
| 75 | |||
| 76 | 0 | return NULL; | |
| 77 | } | ||
| 78 | |||
| 79 | 0 | void *git_failalloc_mallocarray(size_t nelem, size_t elsize, const char *file, int line) | |
| 80 | { | ||
| 81 | 0 | GIT_UNUSED(nelem); | |
| 82 | 0 | GIT_UNUSED(elsize); | |
| 83 | 0 | GIT_UNUSED(file); | |
| 84 | 0 | GIT_UNUSED(line); | |
| 85 | |||
| 86 | 0 | return NULL; | |
| 87 | } | ||
| 88 | |||
| 89 | 0 | void git_failalloc_free(void *ptr) | |
| 90 | { | ||
| 91 | 0 | GIT_UNUSED(ptr); | |
| 92 | 0 | } |