| 1 |
/* RCSid $Id: rtmisc.h,v 3.2 2003/06/30 14:59:11 schorsch Exp $ */
|
| 2 |
/*
|
| 3 |
* Miscellaneous Radiance definitions
|
| 4 |
*/
|
| 5 |
#ifndef _RAD_RTMISC_H_
|
| 6 |
#define _RAD_RTMISC_H_
|
| 7 |
|
| 8 |
#include <stdlib.h>
|
| 9 |
/* memory operations */
|
| 10 |
#ifdef NOSTRUCTASS
|
| 11 |
#include <string.h>
|
| 12 |
#define copystruct(d,s) memcpy((void *)(d),(void *)(s),sizeof(*(d)))
|
| 13 |
#else
|
| 14 |
#define copystruct(d,s) (*(d) = *(s))
|
| 15 |
#endif
|
| 16 |
|
| 17 |
#ifdef __cplusplus
|
| 18 |
extern "C" {
|
| 19 |
#endif
|
| 20 |
|
| 21 |
/* defined in bmalloc.c */
|
| 22 |
extern char *bmalloc(unsigned int n);
|
| 23 |
extern void bfree(char *p, unsigned int n);
|
| 24 |
|
| 25 |
#ifdef __cplusplus
|
| 26 |
}
|
| 27 |
#endif
|
| 28 |
#endif /* _RAD_RTMISC_H_ */
|
| 29 |
|