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

Comparing ray/src/rt/rv2.c (file contents):
Revision 1.9 by greg, Tue Jun 13 10:57:45 1989 UTC vs.
Revision 1.10 by greg, Thu Jul 27 22:58:26 1989 UTC

# Line 76 | Line 76 | char  *s;
76   {
77          FILE  *fp;
78          char  buf[128];
79 <        char  *fname, *getpath();
79 >        char  *fname;
80          int  change = 0;
81          VIEW  nv;
82  
83          if (sscanf(s, "%s", buf) == 1) {        /* write parameters to a file */
84 <                if ((fname = getpath(buf, NULL)) == NULL ||
84 >                if ((fname = getpath(buf, NULL, 0)) == NULL ||
85                                  (fp = fopen(fname, "a")) == NULL) {
86                          sprintf(errmsg, "cannot open \"%s\"", buf);
87                          error(COMMAND, errmsg);
# Line 158 | Line 158 | lastview(s)                            /* return to a previous view */
158   char  *s;
159   {
160          char  buf[128];
161 <        char  *fname, *getpath();
161 >        char  *fname;
162          int  success;
163          VIEW  nv;
164  
165          if (sscanf(s, "%s", buf) == 1) {        /* get parameters from a file */
166                  bcopy(&stdview, &nv, sizeof(VIEW));
167 <                if ((fname = getpath(buf, NULL)) == NULL ||
167 >                if ((fname = getpath(buf, NULL, 0)) == NULL ||
168                                  (success = viewfile(fname, &nv)) == -1) {
169                          sprintf(errmsg, "cannot open \"%s\"", buf);
170                          error(COMMAND, errmsg);
# Line 655 | Line 655 | writepict(s)                           /* write the picture to a file */
655   char  *s;
656   {
657          static char  buf[128];
658 <        char  *fname, *getpath();
658 >        char  *fname;
659          FILE  *fp;
660          COLR  *scanline;
661          int  y;
# Line 664 | Line 664 | char  *s;
664                  error(COMMAND, "no file");
665                  return;
666          }
667 <        if ((fname = getpath(buf, NULL)) == NULL ||
667 >        if ((fname = getpath(buf, NULL, 0)) == NULL ||
668                          (fp = fopen(fname, "w")) == NULL) {
669                  sprintf(errmsg, "cannot open \"%s\"", buf);
670                  error(COMMAND, errmsg);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines