ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/rtmisc.h
Revision: 3.4
Committed: Thu Jul 17 09:21:29 2003 UTC (20 years, 9 months ago) by schorsch
Content type: text/plain
Branch: MAIN
Changes since 3.3: +3 -1 lines
Log Message:
Added prototypes and includes from patch by Randolph Fritz.
Added more required includes and reduced other compile warnings.

File Contents

# User Rev Content
1 schorsch 3.4 /* RCSid $Id: rtmisc.h,v 3.3 2003/07/14 22:23:59 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 schorsch 3.4 /* defined in myhostname.c */
25     extern char *myhostname(void);
26 greg 3.1
27     #ifdef __cplusplus
28     }
29     #endif
30     #endif /* _RAD_RTMISC_H_ */
31