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

Comparing ray/src/common/standard.h (file contents):
Revision 1.6 by greg, Fri Apr 12 13:55:33 1991 UTC vs.
Revision 2.1 by greg, Tue Nov 12 16:54:58 1991 UTC

# Line 16 | Line 16
16                                  /* regular transformation */
17   typedef struct {
18          MAT4  xfm;                              /* transform matrix */
19 <        double  sca;                            /* scalefactor */
19 >        FLOAT  sca;                             /* scalefactor */
20   }  XF;
21                                  /* complemetary tranformation */
22   typedef struct {
# Line 24 | Line 24 | typedef struct {
24          XF  b;                                  /* backward */
25   }  FULLXF;
26  
27 #define  FHUGE          (1e10)          /* large real number */
28 #define  FTINY          (1e-6)          /* small real number */
29
27   #ifdef  M_PI
28   #define  PI             M_PI
29   #else
# Line 52 | Line 49 | extern char  errmsg[];                 /* global buffer for error me
49   extern int  errno;                      /* system error number */
50  
51                                          /* memory operations */
52 < #ifdef  STRUCTASSIGN
56 < #define  copystruct(d,s)        (*(d) = *(s))
57 < #else
52 > #ifdef  NOSTRUCTASS
53   #define  copystruct(d,s)        bcopy((char *)(s),(char *)(d),sizeof(*(d)))
54 + #else
55 + #define  copystruct(d,s)        (*(d) = *(s))
56   #endif
57  
58   #ifndef  BSD

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines