home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.0
/
NeXTSTEP3.0.iso
/
NextDeveloper
/
Headers
/
bsd
/
mp.h
< prev
next >
Wrap
Text File
|
1991-06-17
|
848b
|
45 lines
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* @(#)mp.h 1.2 88/05/16 4.0NFSSRC SMI; from 5.1 (Berkeley) 5/30/85
*/
#define MINT struct mint
MINT
{ int len;
short *val;
};
#define FREE(x) {if(x.len!=0) {free((char *)x.val); x.len=0;}}
#ifndef DBG
#define shfree(u) free((char *)u)
#else
#import <stdio.h>
#define shfree(u) { if(dbg) fprintf(stderr, "free %o\n", u); free((char *)u);}
extern int dbg;
#endif
#ifndef vax
struct half
{ short high;
short low;
};
#else
struct half
{ short low;
short high;
};
#endif
extern MINT *itom();
extern MINT *xtom();
extern char *mtox();
extern short *xalloc();
extern void mfree();
#ifdef lint
extern xv_oid;
#define VOID xv_oid =
#else
#define VOID
#endif