xref: /original-bsd/include/mp.h (revision e0c0d005)
1 /*
2  * Copyright (c) 1980 Regents of the University of California.
3  * All rights reserved.  The Berkeley software License Agreement
4  * specifies the terms and conditions for redistribution.
5  *
6  *	@(#)mp.h	5.2 (Berkeley) 12/17/90
7  */
8 
9 #define MINT struct mint
10 MINT
11 {	int len;
12 	short *val;
13 };
14 #define FREE(x) {if(x.len!=0) {free((char *)x.val); x.len=0;}}
15 #ifndef DBG
16 #define shfree(u) free((char *)u)
17 #else
18 #include <stdio.h>
19 #define shfree(u) { if(dbg) fprintf(stderr, "free %o\n", u); free((char *)u);}
20 extern int dbg;
21 #endif
22 #if !defined(vax) && !defined(i386)
23 struct half
24 {	short high;
25 	short low;
26 };
27 #else
28 struct half
29 {	short low;
30 	short high;
31 };
32 #endif
33 extern MINT *itom();
34 extern short *xalloc();
35 
36 #ifdef lint
37 extern xv_oid;
38 #define VOID xv_oid =
39 #else
40 #define VOID
41 #endif
42