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.2 by greg, Thu Jul 27 22:41:04 1989 UTC vs.
Revision 1.5 by greg, Sat Dec 15 15:01:35 1990 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1988 Regents of the University of California */
1 > /* Copyright (c) 1990 Regents of the University of California */
2  
3   /* SCCSid "$SunId$ LBL" */
4  
# Line 12 | Line 12
12  
13   #include  <errno.h>
14  
15 < #include  "fvect.h"
15 > #include  "mat4.h"
16 >                                /* regular transformation */
17 > typedef struct {
18 >        MAT4  xfm;                              /* transform matrix */
19 >        double  sca;                            /* scalefactor */
20 > }  XF;
21 >                                /* complemetary tranformation */
22 > typedef struct {
23 >        XF  f;                                  /* forward */
24 >        XF  b;                                  /* backward */
25 > }  FULLXF;
26  
27   #define  FHUGE          (1e10)          /* large real number */
28   #define  FTINY          (1e-6)          /* small real number */
# Line 41 | Line 51 | extern char  errmsg[];                 /* global buffer for error me
51  
52   extern int  errno;                      /* system error number */
53  
54 +                                        /* memory operations */
55 + #ifdef  STRUCTASSIGN
56 + #define  copystruct(d,s)        (*(d) = *(s))
57 + #else
58 + #define  copystruct(d,s)        bcopy((char *)(s),(char *)(d),sizeof(*(d)))
59 + #endif
60 + #ifndef  BSD
61 + #define  bcopy(s,d,n)           (void)memcpy(d,s,n)
62 + #define  bzero(d,n)             (void)memset(d,0,n)
63 + #define  bcmp(b1,b2,n)          memcmp(b1,b2,n)
64 + extern char  *memcpy(), *memset();
65 + #endif
66 +
67   extern char  *sskip();
68 < extern char  *getpath();
68 > extern char  *getpath(), *getenv();
69   extern char  *malloc(), *calloc(), *realloc();
70   extern char  *bmalloc(), *savestr(), *savqstr();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines