comparison src/blocktype.h @ 440:8de8e3f6228a r21-2-28

Import from CVS: tag r21-2-28
author cvs
date Mon, 13 Aug 2007 11:33:38 +0200
parents 3ecd8885ac67
children b39c14581166
comparison
equal deleted inserted replaced
439:357dd071b03c 440:8de8e3f6228a
24 /* Authorship: 24 /* Authorship:
25 25
26 Ben Wing: December 1994, for 19.12. 26 Ben Wing: December 1994, for 19.12.
27 */ 27 */
28 28
29 #ifndef _XEMACS_BLOCKTYPE_H_ 29 #ifndef INCLUDED_blocktype_h_
30 #define _XEMACS_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 int elsize; \
35 type *tempel 35 type *tempel
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)))
43 #define Blocktype_alloc(b) (Blocktype_allocf (b), (b)->tempel) 43 #define Blocktype_alloc(b) (Blocktype_allocf (b), (b)->tempel)
44 44
45 #endif /* _XEMACS_BLOCKTYPE_H_ */ 45 #endif /* INCLUDED_blocktype_h_ */