X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/b65a28d10126756961ed7bd2ccbe87448477ad80..c5775f49c4b3ff27916c9425a0bb614df4bde3e4:/sub.h diff --git a/sub.h b/sub.h index 1b07703..87085ab 100644 --- a/sub.h +++ b/sub.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: sub.h,v 1.6 2000/06/17 10:35:51 mdw Exp $ + * $Id: sub.h,v 1.7 2003/10/12 14:44:46 mdw Exp $ * * Allocation of known-size blocks * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: sub.h,v $ + * Revision 1.7 2003/10/12 14:44:46 mdw + * Various fixes. + * * Revision 1.6 2000/06/17 10:35:51 mdw * Major overhaul for arena support. * @@ -61,6 +64,10 @@ #include +#ifndef MLIB_ALIGN_H +# include "align.h" +#endif + #ifndef MLIB_ARENA_H # include "arena.h" #endif @@ -86,11 +93,10 @@ /* --- The granularity of bin buffers --- * * - * All blocks allocated by the binner are a multiple of this size. I've - * chosen @void *@ because I need to store @void *@ things in here. + * All blocks allocated by the binner are a multiple of this size. */ -#define SUB_GRANULE sizeof(void *) +#define SUB_GRANULE sizeof(union align) /* --- Finding the right bin for a given size --- * *