diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-05-25 16:15:34 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-05-25 16:15:34 +0000 |
commit | 07842084fe3e11041f83563c851236395f481470 (patch) | |
tree | ab9960e67325bec5a97b8b4dd4b2075ce60cc420 /src/include/utils/memutils.h | |
parent | 4b04b01aaa460f1e52980f24173dc7a4535efd2d (diff) |
pgindent run over code.
Diffstat (limited to 'src/include/utils/memutils.h')
-rw-r--r-- | src/include/utils/memutils.h | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/src/include/utils/memutils.h b/src/include/utils/memutils.h index e95aec57c90..59f473b910a 100644 --- a/src/include/utils/memutils.h +++ b/src/include/utils/memutils.h @@ -15,7 +15,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: memutils.h,v 1.24 1999/05/22 23:19:36 tgl Exp $ + * $Id: memutils.h,v 1.25 1999/05/25 16:14:56 momjian Exp $ * * NOTES * some of the information in this file will be moved to @@ -133,13 +133,13 @@ extern void OrderedElemPushInto(OrderedElem elem, OrderedSet Set); */ /* - * AllocPointer + * AllocPointer * Aligned pointer which may be a member of an allocation set. */ typedef Pointer AllocPointer; /* - * AllocMode + * AllocMode * Mode of allocation for an allocation set. * * Note: @@ -156,56 +156,58 @@ typedef enum AllocMode #define DefaultAllocMode DynamicAllocMode /* - * AllocBlock + * AllocBlock * Small pieces of memory are taken from bigger blocks of * memory with a size aligned to a power of two. These * pieces are not free's separately, instead they are reused * for the next allocation of a fitting size. */ -typedef struct AllocBlockData { - struct AllocSetData *aset; - struct AllocBlockData *next; - char *freeptr; - char *endptr; -} AllocBlockData; +typedef struct AllocBlockData +{ + struct AllocSetData *aset; + struct AllocBlockData *next; + char *freeptr; + char *endptr; +} AllocBlockData; typedef AllocBlockData *AllocBlock; /* - * AllocChunk + * AllocChunk * The prefix of each piece of memory in an AllocBlock */ -typedef struct AllocChunkData { +typedef struct AllocChunkData +{ /* aset is the owning aset if allocated, or the freelist link if free */ - void *aset; + void *aset; /* size is always the chunk size */ - Size size; -} AllocChunkData; + Size size; +} AllocChunkData; typedef AllocChunkData *AllocChunk; /* - * AllocSet + * AllocSet * Allocation set. */ typedef struct AllocSetData { - struct AllocBlockData *blocks; + struct AllocBlockData *blocks; #define ALLOCSET_NUM_FREELISTS 8 - struct AllocChunkData *freelist[ALLOCSET_NUM_FREELISTS]; + struct AllocChunkData *freelist[ALLOCSET_NUM_FREELISTS]; /* Note: this will change in the future to support other modes */ } AllocSetData; typedef AllocSetData *AllocSet; /* - * AllocPointerIsValid + * AllocPointerIsValid * True iff pointer is valid allocation pointer. */ #define AllocPointerIsValid(pointer) PointerIsValid(pointer) /* - * AllocSetIsValid + * AllocSetIsValid * True iff set is valid allocation set. */ #define AllocSetIsValid(set) PointerIsValid(set) @@ -238,7 +240,7 @@ extern void AllocSetDump(AllocSet set); typedef int LibCCopyLength; /* - * MemoryCopy + * MemoryCopy * Copies fixed length block of memory to another. */ #define MemoryCopy(toBuffer, fromBuffer, length)\ |