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

Comparing ray/src/common/calfunc.c (file contents):
Revision 2.5 by greg, Fri Oct 2 15:58:31 1992 UTC vs.
Revision 2.6 by greg, Sun Nov 22 12:11:48 1992 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 Regents of the University of California */
1 > /* Copyright (c) 1992 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 155 | Line 155 | int  nargs;
155   int  assign;
156   double  (*fptr)();
157   {
158 +    int  oldlibsize = libsize;
159      register LIBR  *lp;
160  
161      if ((lp = liblookup(fname)) == NULL) {      /* insert */
# Line 187 | Line 188 | double  (*fptr)();
188          lp[0].atyp = assign;
189          lp[0].f = fptr;
190      }
191 <    libupdate(fname);                   /* relink library */
191 >    if (libsize != oldlibsize)
192 >        libupdate(fname);                       /* relink library */
193   }
194  
195  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines