1 /*- 2 * Copyright (c) 1980, 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.proprietary.c% 6 * 7 * @(#)mp.h 5.4 (Berkeley) 04/08/91 8 */ 9 10 #ifndef _MP_H_ 11 #define _MP_H_ 12 13 #define MINT struct mint 14 MINT 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 22 #include <stdio.h> 23 #define shfree(u) { if(dbg) fprintf(stderr, "free %o\n", u); free((char *)u);} 24 extern int dbg; 25 #endif 26 #if !defined(vax) && !defined(i386) 27 struct half 28 { short high; 29 short low; 30 }; 31 #else 32 struct half 33 { short low; 34 short high; 35 }; 36 #endif 37 extern MINT *itom(); 38 extern short *xalloc(); 39 40 #ifdef lint 41 extern xv_oid; 42 #define VOID xv_oid = 43 #else 44 #define VOID 45 #endif 46 47 #endif /* !_MP_H_ */ 48