comparison src/blocktype.h @ 272:c5d627a313b1 r21-0b34

Import from CVS: tag r21-0b34
author cvs
date Mon, 13 Aug 2007 10:28:48 +0200
parents 376386a54a3c
children 74fd4e045ea6
comparison
equal deleted inserted replaced
271:c7b7086b0a39 272:c5d627a313b1
32 #define Blocktype_declare(type) \ 32 #define Blocktype_declare(type) \
33 type *free; \ 33 type *free; \
34 int elsize; \ 34 int elsize; \
35 type *tempel 35 type *tempel
36 36
37 void *Blocktype_newf (int elsize); 37 void *Blocktype_newf (size_t elsize);
38 void Blocktype_allocf (void *b); 38 void Blocktype_allocf (void *b);
39 void Blocktype_free (void *bbb, void *el); 39 void Blocktype_free (void *bbb, void *el);
40 40
41 #define Blocktype_new(structype) \ 41 #define Blocktype_new(structype) \
42 (structype *) Blocktype_newf (sizeof(*(((structype *) NULL)->free))) 42 (structype *) Blocktype_newf (sizeof(*(((structype *) NULL)->free)))