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

Comparing ray/src/ot/oconv.c (file contents):
Revision 1.4 by greg, Thu Jun 1 19:23:13 1989 UTC vs.
Revision 1.5 by greg, Wed Jun 21 08:56:35 1989 UTC

# Line 57 | Line 57 | char  **argv;
57          if ((libpath = getenv("RAYPATH")) == NULL)
58                  libpath = ":/usr/local/lib/ray";
59  
60 <        for (i = 1; i < argc && argv[i][0] == '-' && argv[i][1]; i++)
60 >        for (i = 1; i < argc && argv[i][0] == '-'; i++)
61                  switch (argv[i][1]) {
62 +                case '\0':                              /* scene from stdin */
63 +                        goto breakopt;
64                  case 'i':                               /* input octree */
65                          infile = argv[++i];
66                          break;
# Line 85 | Line 87 | char  **argv;
87                          error(USER, errmsg);
88                          break;
89                  }
90 <
90 > breakopt:
91          if (infile != NULL) {           /* get old octree & objects */
92                  if (thescene.cusize > FTINY)
93                          error(USER, "only one of '-b' or '-i'");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines