Mercurial > hg > octave-shane > gnulib-hg
view lib/allocator.c @ 14549:f87295656694
allocator: New module.
* 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.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Fri, 08 Apr 2011 13:22:51 -0700 |
parents | |
children |
line wrap: on
line source
#define _GL_USE_STDLIB_ALLOC 1 #include <config.h> #include "allocator.h" #include <stdlib.h> struct allocator const stdlib_allocator = { malloc, realloc, free, NULL };