protect all user-level include files against reinclusion
[unix-history] / usr / src / include / mp.h
CommitLineData
bb0cfa24
DF
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 *
d2b7358e 6 * @(#)mp.h 5.3 (Berkeley) %G%
bb0cfa24 7 */
a7ba7fe7 8
d2b7358e
KB
9#ifndef _MP_H_
10#define _MP_H_
11
a7ba7fe7
SL
12#define MINT struct mint
13MINT
14{ int len;
15 short *val;
16};
17#define FREE(x) {if(x.len!=0) {free((char *)x.val); x.len=0;}}
18#ifndef DBG
19#define shfree(u) free((char *)u)
20#else
1577bffb 21#include <stdio.h>
a7ba7fe7
SL
22#define shfree(u) { if(dbg) fprintf(stderr, "free %o\n", u); free((char *)u);}
23extern int dbg;
24#endif
2605440f 25#if !defined(vax) && !defined(i386)
a7ba7fe7
SL
26struct half
27{ short high;
28 short low;
29};
30#else
31struct half
32{ short low;
33 short high;
34};
35#endif
36extern MINT *itom();
37extern short *xalloc();
38
39#ifdef lint
40extern xv_oid;
41#define VOID xv_oid =
42#else
43#define VOID
44#endif
d2b7358e
KB
45
46#endif /* !_MP_H_ */