fix unnecessary dereferences
[unix-history] / usr / src / include / mp.h
CommitLineData
4c2f0099 1/*-
56559b70
KB
2 * Copyright (c) 1980, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
bb0cfa24 4 *
4c2f0099
KB
5 * %sccs.include.proprietary.c%
6 *
56559b70 7 * @(#)mp.h 8.1 (Berkeley) %G%
bb0cfa24 8 */
a7ba7fe7 9
d2b7358e
KB
10#ifndef _MP_H_
11#define _MP_H_
12
a7ba7fe7
SL
13#define MINT struct mint
14MINT
15{ int len;
16 short *val;
17};
18#define FREE(x) {if(x.len!=0) {free((char *)x.val); x.len=0;}}
19#ifndef DBG
20#define shfree(u) free((char *)u)
21#else
1577bffb 22#include <stdio.h>
a7ba7fe7
SL
23#define shfree(u) { if(dbg) fprintf(stderr, "free %o\n", u); free((char *)u);}
24extern int dbg;
25#endif
2605440f 26#if !defined(vax) && !defined(i386)
a7ba7fe7
SL
27struct half
28{ short high;
29 short low;
30};
31#else
32struct half
33{ short low;
34 short high;
35};
36#endif
37extern MINT *itom();
38extern short *xalloc();
39
40#ifdef lint
41extern xv_oid;
42#define VOID xv_oid =
43#else
44#define VOID
45#endif
d2b7358e
KB
46
47#endif /* !_MP_H_ */