home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
compress
/
xfh132.lzh
/
XFH
/
src
/
libmy
/
myinclude
/
dossupport.h
< prev
Wrap
C/C++ Source or Header
|
1991-07-25
|
723b
|
36 lines
/* 'dossupport.h' - AmigaDOS support rutines. */
#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif
#ifndef LIBRARIES_DOS_H
#include <libraries/dos.h>
#endif
/* Prototypes. */
/* Memory allocation. */
void *dosalloc (long);
void dosfree (void *);
/* dalloc(p) points pointer p to suitable sized allocated mem. */
/* The value of p is returned. */
#define dalloc(p) ( (p)=dosalloc( sizeof(*(p)) ) )
#define dfree(p) dosfree( (p) )
/* BCPL conversion. */
BSTR cstr2b(char *cstr, UBYTE *buf);
char *bstr2c(BSTR bstr, UBYTE *buf);
BSTR cstr2binplace(char *pp);
char *bstr2cinplace(UBYTE *pp);
#define c2b(cptr) ( (ULONG)(cptr) >> 2 )
#define b2c(bptr) ( (void *)( (ULONG)(bptr) << 2) )
/* End of dossupport.h */