2 Copyright (C) Slava Astashonok <sla@0n.ru>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License.
7 $Id: mem.h,v 1.1.1.1.2.3 2004/08/13 20:40:43 sla Exp $
13 #if MEM_BITS != 0 && MEM_BITS != 8 && MEM_BITS != 16
14 #error illegal value in MEM_BITS
17 #if defined _REENTRANT || defined _THREAD_SAFE
18 #define MEM_THREADSAFE
21 #include <my_inttypes.h>
24 typedef void* mem_index_t;
27 typedef uint8_t mem_index_t;
30 typedef uint16_t mem_index_t;
34 void mem_free(void *);
35 int mem_init(unsigned int, unsigned int, unsigned int);
43 mem_index_t mem_index_table[bulk_quantity]
44 struct UserDef element_table[bulk_quantity]