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

Comparing ray/src/util/rad.c (file contents):
Revision 2.62 by greg, Fri Mar 21 18:48:46 2003 UTC vs.
Revision 2.63 by schorsch, Thu Jun 5 19:29:35 2003 UTC

# Line 821 | Line 821 | char   *ro;
821                          syserr(vval(OPTFILE));
822                  sprintf(ro, " @%s", vval(OPTFILE));
823          }
824 < #ifdef MSDOS
824 > #ifdef _WIN32
825          else if (n > 50) {
826                  setenv("ROPT", ro+1);
827                  strcpy(ro, " $ROPT");
# Line 977 | Line 977 | register char  *vs;
977          if (cp == viewopts)             /* append any additional options */
978                  vs++;           /* skip prefixed space if unneeded */
979          strcpy(cp, vs);
980 < #ifdef MSDOS
980 > #ifdef _WIN32
981          if (strlen(viewopts) > 40) {
982                  setenv("VIEW", viewopts);
983                  return("$VIEW");
# Line 1037 | Line 1037 | register char  *vopts;
1037   again:
1038          if (vopts == NULL)
1039                  return(-1);
1040 < #ifdef MSDOS
1040 > #ifdef _WIN32
1041          if (vopts[0] == '$') {
1042                  vopts = getenv(vopts+1);
1043                  goto again;
# Line 1245 | Line 1245 | rmfile(fn)                     /* remove a file */
1245   char    *fn;
1246   {
1247          if (!silent)
1248 < #ifdef MSDOS
1248 > #ifdef _WIN32
1249                  printf("\tdel %s\n", fn);
1250   #else
1251                  printf("\trm -f %s\n", fn);
# Line 1260 | Line 1260 | mvfile(fold, fnew)             /* move a file */
1260   char    *fold, *fnew;
1261   {
1262          if (!silent)
1263 < #ifdef MSDOS
1263 > #ifdef _WIN32
1264                  printf("\trename %s %s\n", fold, fnew);
1265   #else
1266                  printf("\tmv %s %s\n", fold, fnew);
# Line 1271 | Line 1271 | char   *fold, *fnew;
1271   }
1272  
1273  
1274 < #ifdef MSDOS
1274 > #ifdef _WIN32
1275   setenv(vname, value)            /* set an environment variable */
1276   char    *vname, *value;
1277   {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines