comparison src/blocktype.h @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents c5d627a313b1
children 697ef44129c6
comparison
equal deleted inserted replaced
397:f4aeb21a5bad 398:74fd4e045ea6
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_ */