ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/rtmisc.h
(Generate patch)

Comparing ray/src/common/rtmisc.h (file contents):
Revision 3.1 by greg, Fri Jun 27 06:53:21 2003 UTC vs.
Revision 3.3 by schorsch, Mon Jul 14 22:23:59 2003 UTC

# Line 4 | Line 4
4   */
5   #ifndef _RAD_RTMISC_H_
6   #define _RAD_RTMISC_H_
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
7  
8   #include  <stdlib.h>
9                                          /* memory operations */
10   #ifdef  NOSTRUCTASS
11 < #define  copystruct(d,s)        bcopy((void *)(s),(void *)(d),sizeof(*(d)))
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 < #ifndef BSD
18 < #define  bcopy(s,d,n)           (void)memcpy(d,s,n)
21 < #define  bzero(d,n)             (void)memset(d,0,n)
22 < #define  bcmp(b1,b2,n)          memcmp(b1,b2,n)
17 > #ifdef __cplusplus
18 > extern "C" {
19   #endif
20  
25 #ifdef _WIN32
26 #define NIX 1
27 #endif
28 #ifdef AMIGA
29 #define NIX 1
30 #endif
21                                          /* defined in bmalloc.c */
22   extern char     *bmalloc(unsigned int n);
23   extern void     bfree(char *p, unsigned int n);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines