don't declare h_errno
[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 *
6 * @(#)mp.h 5.1 (Berkeley) %G%
7 */
a7ba7fe7
SL
8
9#define MINT struct mint
10MINT
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
1577bffb 18#include <stdio.h>
a7ba7fe7
SL
19#define shfree(u) { if(dbg) fprintf(stderr, "free %o\n", u); free((char *)u);}
20extern int dbg;
21#endif
22#ifndef vax
23struct half
24{ short high;
25 short low;
26};
27#else
28struct half
29{ short low;
30 short high;
31};
32#endif
33extern MINT *itom();
34extern short *xalloc();
35
36#ifdef lint
37extern xv_oid;
38#define VOID xv_oid =
39#else
40#define VOID
41#endif