comparison src/blocktype.c @ 185:3d6bfa290dbd r20-3b19

Import from CVS: tag r20-3b19
author cvs
date Mon, 13 Aug 2007 09:55:28 +0200
parents 376386a54a3c
children c5d627a313b1
comparison
equal deleted inserted replaced
184:bcd2674570bf 185:3d6bfa290dbd
77 }; 77 };
78 78
79 void * 79 void *
80 Blocktype_newf (int elsize) 80 Blocktype_newf (int elsize)
81 { 81 {
82 Blocktype *b = (Blocktype *) xmalloc (sizeof (*b)); 82 Blocktype *b = xnew (Blocktype);
83 b->elsize = max (elsize, sizeof (void *)); 83 b->elsize = max (elsize, sizeof (void *));
84 b->free = 0; 84 b->free = 0;
85 return (void *) b; 85 return (void *) b;
86 } 86 }
87 87