--- ray/src/util/ranimate.c 2003/06/06 20:04:06 2.38 +++ ray/src/util/ranimate.c 2003/07/27 22:12:03 2.41 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: ranimate.c,v 2.38 2003/06/06 20:04:06 greg Exp $"; +static const char RCSid[] = "$Id: ranimate.c,v 2.41 2003/07/27 22:12:03 schorsch Exp $"; #endif /* * Radiance animation control program @@ -15,9 +15,11 @@ static const char RCSid[] = "$Id: ranimate.c,v 2.38 20 #include "copyright.h" -#include "standard.h" #include #include + +#include "standard.h" +#include "paths.h" #include "view.h" #include "vars.h" #include "netproc.h" @@ -480,7 +482,7 @@ char *rfargs; pippt = NULL; } if (pippt != NULL) - strcpy(pippt, "> /dev/null"); /* nothing to match */ + strcpy(pippt, "> " NULL_DEVICE); /* nothing to match */ else { sprintf(cp, ")[ \t]*=' > %s/radset.var", vval(DIRECTORY)); cp += 11; /* point to file name */ @@ -886,7 +888,7 @@ int rvr; quit(1); } usepinterp = (nblur > 1); - usepfilt = pfiltalways | ep==NULL; + usepfilt = pfiltalways | (ep==NULL); if (ep != NULL && !strcmp(ep, "1")) ep = "+0"; nora_rgbe = strcmp(vval(OVERSAMP),"1") || ep==NULL || @@ -1033,7 +1035,7 @@ int n; fclose(viewfp); viewfp = NULL; viewnum = 0; - copystruct(&curview, &stdview); + curview = stdview; } return(NULL); } @@ -1049,7 +1051,7 @@ int n; perror(vval(VIEWFILE)); quit(1); } - copystruct(&curview, &stdview); + curview = stdview; viewnum = 0; } if (n < 0) { /* get next view */ @@ -1393,7 +1395,7 @@ register char *path; for (i = 0, psep = -1; path[i]; i++) if (path[i] == '/') psep = i; - if (df != NULL) + if (df != NULL) { if (psep == 0) { df[0] = '/'; df[1] = '\0'; @@ -1402,6 +1404,7 @@ register char *path; df[psep] = '\0'; } else df[0] = '\0'; + } return(path+psep+1); }