xref: /csrg-svn/include/mp.h (revision 61068)
147833Sbostic /*-
2*61068Sbostic  * Copyright (c) 1980, 1991, 1993
3*61068Sbostic  *	The Regents of the University of California.  All rights reserved.
421306Sdist  *
547833Sbostic  * %sccs.include.proprietary.c%
647833Sbostic  *
7*61068Sbostic  *	@(#)mp.h	8.1 (Berkeley) 06/02/93
821306Sdist  */
912187Ssam 
1047771Sbostic #ifndef _MP_H_
1147771Sbostic #define	_MP_H_
1247771Sbostic 
1312187Ssam #define MINT struct mint
1412187Ssam MINT
1512187Ssam {	int len;
1612187Ssam 	short *val;
1712187Ssam };
1812187Ssam #define FREE(x) {if(x.len!=0) {free((char *)x.val); x.len=0;}}
1912187Ssam #ifndef DBG
2012187Ssam #define shfree(u) free((char *)u)
2112187Ssam #else
2213565Ssam #include <stdio.h>
2312187Ssam #define shfree(u) { if(dbg) fprintf(stderr, "free %o\n", u); free((char *)u);}
2412187Ssam extern int dbg;
2512187Ssam #endif
2645831Swilliam #if !defined(vax) && !defined(i386)
2712187Ssam struct half
2812187Ssam {	short high;
2912187Ssam 	short low;
3012187Ssam };
3112187Ssam #else
3212187Ssam struct half
3312187Ssam {	short low;
3412187Ssam 	short high;
3512187Ssam };
3612187Ssam #endif
3712187Ssam extern MINT *itom();
3812187Ssam extern short *xalloc();
3912187Ssam 
4012187Ssam #ifdef lint
4112187Ssam extern xv_oid;
4212187Ssam #define VOID xv_oid =
4312187Ssam #else
4412187Ssam #define VOID
4512187Ssam #endif
4647771Sbostic 
4747771Sbostic #endif /* !_MP_H_ */
48