summaryrefslogtreecommitdiff
path: root/src/allocators/stdalloc.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-02-21 12:13:59 +0100
committerPatrick Steinhardt <ps@pks.im>2019-02-21 12:28:02 +0100
commitb63396b75fe26afa3b27259c0d13dd7bc13b53ba (patch)
tree35feccd200b172e876d660b309bb216f4515df88 /src/allocators/stdalloc.h
parent9eb098d8614bdd0365140f6614441465123ce903 (diff)
downloadlibgit2-b63396b75fe26afa3b27259c0d13dd7bc13b53ba.tar.gz
allocators: move standard allocator into subdirectory
Right now, our two allocator implementations are scattered around the tree in "stdalloc.h" and "win32/w32_crtdbg_stacktrace.h". Start grouping them together in a single directory "allocators/", similar to how e.g. our streams are organized.
Diffstat (limited to 'src/allocators/stdalloc.h')
-rw-r--r--src/allocators/stdalloc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/allocators/stdalloc.h b/src/allocators/stdalloc.h
new file mode 100644
index 000000000..fa23fe6e3
--- /dev/null
+++ b/src/allocators/stdalloc.h
@@ -0,0 +1,17 @@
+/*
+ * Copyright (C) the libgit2 contributors. All rights reserved.
+ *
+ * This file is part of libgit2, distributed under the GNU GPL v2 with
+ * a Linking Exception. For full terms see the included COPYING file.
+ */
+
+#ifndef INCLUDE_allocators_stdalloc_h__
+#define INCLUDE_allocators_stdalloc_h__
+
+#include "common.h"
+
+#include "alloc.h"
+
+int git_stdalloc_init_allocator(git_allocator *allocator);
+
+#endif