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.11 by greg, Wed Aug 29 21:56:17 1990 UTC vs.
Revision 2.2 by greg, Thu Dec 19 15:06:31 1991 UTC

# Line 18 | Line 18 | static char SCCSid[] = "$SunId$ LBL";
18  
19   #include  "otypes.h"
20  
21 + #ifndef  DEFPATH
22 + #define  DEFPATH        ":/usr/local/lib/ray"
23 + #endif
24 +
25   #define  OMARGIN        (10*FTINY)      /* margin around global cube */
26  
27   #define  MAXOBJFIL      63              /* maximum number of scene files */
# Line 46 | Line 50 | main(argc, argv)               /* convert object files to an octree
50   int  argc;
51   char  **argv;
52   {
53 <        char  *getenv();
50 <        double  atof();
53 >        extern char  *getenv();
54          FVECT  bbmin, bbmax;
55          char  *infile = NULL;
56          int  outflags = IO_ALL;
# Line 57 | Line 60 | char  **argv;
60          progname = argv[0];
61  
62          if ((libpath = getenv("RAYPATH")) == NULL)
63 <                libpath = ":/usr/local/lib/ray";
63 >                libpath = DEFPATH;
64  
65 +        initotypes();
66 +
67          for (i = 1; i < argc && argv[i][0] == '-'; i++)
68                  switch (argv[i][1]) {
69                  case '\0':                              /* scene from stdin */
# Line 101 | Line 106 | breakopt:
106          }
107  
108          printargs(argc, argv, stdout);  /* info. header */
109 +        fputformat(OCTFMT, stdout);
110          printf("\n");
111  
112          startobj = nobjects;            /* previous objects already converted */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines