comparison src/blocktype.h @ 647:b39c14581166

[xemacs-hg @ 2001-08-13 04:45:47 by ben] removal of unsigned, size_t, etc.
author ben
date Mon, 13 Aug 2001 04:46:48 +0000
parents 8de8e3f6228a
children fdefd0186b75
comparison
equal deleted inserted replaced
646:00c54252fe4f 647:b39c14581166
29 #ifndef INCLUDED_blocktype_h_ 29 #ifndef INCLUDED_blocktype_h_
30 #define INCLUDED_blocktype_h_ 30 #define INCLUDED_blocktype_h_
31 31
32 #define Blocktype_declare(type) \ 32 #define Blocktype_declare(type) \
33 type *free; \ 33 type *free; \
34 int elsize; \ 34 Memory_Count elsize; \
35 type *tempel 35 type *tempel
36 36
37 void *Blocktype_newf (size_t elsize); 37 void *Blocktype_newf (Memory_Count 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)))