ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/rtmisc.h
Revision: 3.3
Committed: Mon Jul 14 22:23:59 2003 UTC (20 years, 9 months ago) by schorsch
Content type: text/plain
Branch: MAIN
Changes since 3.2: +5 -4 lines
Log Message:
Instrumented headers against multiple inclusion and for use from C++.
Moved includes in headers out of "C" scope.

File Contents

# User Rev Content
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