mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-04-28 14:43:36 +00:00
* modules/allocator, lib/allocator.c: New files. * lib/allocator.h (stdlib_allocator): New decl. * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator): Remove. Do not include <stdlib.h>. (careadlinkat): Use stdlib_allocator instead of rolling our own. * modules/careadlinkat (Files): Remove lib/allocator.h. (Depends-on): Add allocator.
6 lines
169 B
C
6 lines
169 B
C
#define _GL_USE_STDLIB_ALLOC 1
|
|
#include <config.h>
|
|
#include "allocator.h"
|
|
#include <stdlib.h>
|
|
struct allocator const stdlib_allocator = { malloc, realloc, free, NULL };
|