incralloc.h

src/incralloc.h · 288 B

From the archive Lpmud-CD.03.31beta1.tar.gz

Download the archive   « Back to the archive contents

/*
 * Information for allocating a block that can grow dynamically
 * using realloc. That means that no pointers should be kept into such
 * an area, as it might be moved.
 */

struct mem_block {
    char *block;
    int current_size;
    int max_size;
};

#define START_BLOCK_SIZE	4096

Site Stats

Snippets: 1791
Codebases: 571