Allocator.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef Allocator_INCLUDED
#define Allocator_INCLUDED 1
#include <stddef.h>
#ifdef SP_NAMESPACE
#endif
~Allocator();
static void *allocSimple(size_t);
static void free(void *);
// It would be nice to make these private, but some compilers have problems.
union ForceAlign {
unsigned long n;
struct SP_API {
char c;
} s;
char *cp;
long *lp;
};
struct SegmentHeader;
union BlockHeader;
friend union BlockHeader;
union BlockHeader {
};
struct Block;
};
friend struct SegmentHeader;
struct SP_API SegmentHeader {
union {
};
unsigned liveCount;
};
unsigned blocksPerSegment_;
void *alloc1();
};
#ifdef SP_NAMESPACE
}
#endif
#endif /* not Allocator_INCLUDED */