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

Comparing ray/src/common/image.c (file contents):
Revision 2.25 by greg, Thu Jan 1 19:47:05 2004 UTC vs.
Revision 2.26 by schorsch, Fri Jan 2 11:36:26 2004 UTC

# Line 19 | Line 19 | static const char      RCSid[] = "$Id$";
19  
20   VIEW  stdview = STDVIEW;                /* default view parameters */
21  
22 + static gethfunc gethview;
23  
24 +
25   char *
26   setview(v)              /* set hvec and vvec, return message on error */
27   register VIEW  *v;
# Line 522 | Line 524 | struct myview {
524  
525  
526   static int
527 < gethview(s, v)                          /* get view from header */
528 < char  *s;
529 < register struct myview  *v;
527 > gethview(                               /* get view from header */
528 >        char  *s,
529 >        void  *v
530 > )
531   {
532 <        if (isview(s) && sscanview(v->hv, s) > 0)
533 <                v->ok++;
532 >        if (isview(s) && sscanview(((struct myview*)v)->hv, s) > 0)
533 >                ((struct myview*)v)->ok++;
534          return(0);
535   }
536  
# Line 549 | Line 552 | RESOLU  *rp;
552          mvs.hv = vp;
553          mvs.ok = 0;
554  
555 <        getheader(fp, (int (*)(char *, char *))&gethview, (char *)&mvs);
555 >        getheader(fp, gethview, &mvs);
556  
557          if (rp != NULL && !fgetsresolu(rp, fp))
558                  mvs.ok = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines