1 |
schorsch |
3.3 |
/* RCSid $Id: rtmisc.h,v 3.2 2003/06/30 14:59:11 schorsch Exp $ */ |
2 |
greg |
3.1 |
/* |
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 |
schorsch |
3.2 |
#include <string.h> |
12 |
|
|
#define copystruct(d,s) memcpy((void *)(d),(void *)(s),sizeof(*(d))) |
13 |
greg |
3.1 |
#else |
14 |
|
|
#define copystruct(d,s) (*(d) = *(s)) |
15 |
schorsch |
3.3 |
#endif |
16 |
|
|
|
17 |
|
|
#ifdef __cplusplus |
18 |
|
|
extern "C" { |
19 |
greg |
3.1 |
#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 |
|
|
|