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.2 by schorsch, Mon Jun 30 14:59:11 2003 UTC

# Line 11 | Line 11 | extern "C" {
11   #include  <stdlib.h>
12                                          /* memory operations */
13   #ifdef  NOSTRUCTASS
14 < #define  copystruct(d,s)        bcopy((void *)(s),(void *)(d),sizeof(*(d)))
14 > #include  <string.h>
15 > #define  copystruct(d,s)        memcpy((void *)(d),(void *)(s),sizeof(*(d)))
16   #else
17   #define  copystruct(d,s)        (*(d) = *(s))
18   #endif
19  
19 #ifndef BSD
20 #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)
23 #endif
24
25 #ifdef _WIN32
26 #define NIX 1
27 #endif
28 #ifdef AMIGA
29 #define NIX 1
30 #endif
20                                          /* defined in bmalloc.c */
21   extern char     *bmalloc(unsigned int n);
22   extern void     bfree(char *p, unsigned int n);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines