X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/8656dc507aee9c5dcb3a6ad876565f5fcac425ae..4aee39a18184ae8595936a03ad254c27d149a0eb:/arena.h diff --git a/arena.h b/arena.h index 4b89bd6..3cca9ec 100644 --- a/arena.h +++ b/arena.h @@ -1,13 +1,13 @@ /* -*-c-*- * - * $Id: arena.h,v 1.3 2004/04/08 01:36:11 mdw Exp $ + * $Id$ * * Abstraction for memory allocation arenas * * (c) 2000 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of the mLib utilities library. * @@ -15,12 +15,12 @@ * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. - * + * * mLib is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. - * + * * You should have received a copy of the GNU Library General Public * License along with mLib; if not, write to the Free * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, @@ -43,9 +43,9 @@ /* --- An arena structure --- */ typedef struct arena { - struct arena_ops *ops; + const struct arena_ops *ops; } arena; - + typedef struct arena_ops { void *(*alloc)(arena */*a*/, size_t /*sz*/); void *(*realloc)(arena */*a*/, void */*p*/, size_t /*sz*/, size_t /*osz*/);