mirror of
https://github.com/git/git.git
synced 2024-10-28 04:49:43 +01:00
a5a15a4514
The split between "basics" and "publicbasics" is somewhat arbitrary and not in line with how we typically structure code in the reftable library. While we do indeed split up headers into a public and internal part, we don't do that for the compilation unit itself. Furthermore, the declarations for "publicbasics.c" are in "reftable-malloc.h", which isn't in line with our naming schema, either. Fix these inconsistencies by: - Merging "publicbasics.c" into "basics.c". - Renaming "reftable-malloc.h" to "reftable-basics.h" as the public header. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
18 lines
457 B
C
18 lines
457 B
C
/*
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Use of this source code is governed by a BSD-style
|
|
* license that can be found in the LICENSE file or at
|
|
* https://developers.google.com/open-source/licenses/bsd
|
|
*/
|
|
|
|
#ifndef REFTABLE_BASICS_H
|
|
#define REFTABLE_BASICS_H
|
|
|
|
#include <stddef.h>
|
|
|
|
/* Overrides the functions to use for memory management. */
|
|
void reftable_set_alloc(void *(*malloc)(size_t),
|
|
void *(*realloc)(void *, size_t), void (*free)(void *));
|
|
|
|
#endif
|