2 /********************************************
4 copyright 1991, Michael D. Brennan
6 This is a source file for mawk, an implementation of
7 the AWK programming language.
9 Mawk is distributed without warranty under the terms of
10 the GNU General Public License, version 2, 1991.
11 ********************************************/
14 * Revision 1.2 1993/07/04 12:52:22 mike
15 * start on autoconfig changes
17 * Revision 1.1.1.1 1993/07/03 18:58:23 mike
20 * Revision 5.1 1991/12/05 07:59:41 brennan
32 PTR PROTO( bmalloc, (unsigned) ) ;
33 void PROTO( bfree, (PTR, unsigned) ) ;
34 PTR PROTO( zrealloc , (PTR,unsigned,unsigned) ) ;
41 #define zmalloc(size) bmalloc((((unsigned)size)+ZBLOCKSZ-1)>>ZSHIFT)
42 #define zfree(p,size) bfree(p,(((unsigned)size)+ZBLOCKSZ-1)>>ZSHIFT)
44 #define ZMALLOC(type) ((type*)zmalloc(sizeof(type)))
45 #define ZFREE(p) zfree(p,sizeof(*(p)))
48 #endif /* ZMALLOC_H */