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

Comparing ray/src/gen/mkillum.c (file contents):
Revision 2.10 by gregl, Mon Oct 20 16:37:14 1997 UTC vs.
Revision 2.11 by greg, Sat Feb 22 02:07:24 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1995 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Make illum sources for optimizing rendering process
6   */
# Line 60 | Line 57 | int    doneheader = 0;         /* printed header yet? */
57  
58   int     warnings = 1;           /* print warnings? */
59  
63 extern char     *fgetline(), *fgetword(), *sskip(),
64                *atos(), *iskip(), *fskip(), *strcpy();
65 extern FILE     *popen();
60  
67
61   main(argc, argv)                /* compute illum distributions using rtrace */
62   int     argc;
63   char    *argv[];
64   {
72        extern char     *getenv(), *getpath();
65          char    *rtpath;
66          FILE    *fp;
67          register int    i;
# Line 138 | Line 130 | char   *argv[];
130   }
131  
132  
133 + void
134   quit(status)                    /* exit with status */
135   int  status;
136   {
# Line 185 | Line 178 | init()                         /* start rtrace and set up buffers */
178   }
179  
180  
181 + void
182   eputs(s)                                /* put string to stderr */
183   register char  *s;
184   {
# Line 200 | Line 194 | register char  *s;
194   }
195  
196  
197 + void
198   wputs(s)                        /* print warning if enabled */
199   char  *s;
200   {
# Line 259 | Line 254 | char   *nm;
254                  case ' ':
255                  case '\t':
256                  case '\n':
257 +                case '\r':
258 +                case '\f':
259                          cp++;
260                          continue;
261                  case 'm':                       /* material name */
# Line 326 | Line 323 | char   *nm;
323                  case 'd':                       /* point sample density */
324                          if (*++cp != '=')
325                                  break;
326 <                        if (!isintd(++cp, " \t\n"))
326 >                        if (!isintd(++cp, " \t\n\r"))
327                                  break;
328                          thisillum.sampdens = atoi(cp);
329                          cp = sskip(cp);
# Line 334 | Line 331 | char   *nm;
331                  case 's':                       /* point super-samples */
332                          if (*++cp != '=')
333                                  break;
334 <                        if (!isintd(++cp, " \t\n"))
334 >                        if (!isintd(++cp, " \t\n\r"))
335                                  break;
336                          thisillum.nsamps = atoi(cp);
337                          cp = sskip(cp);
# Line 352 | Line 349 | char   *nm;
349                  case 'b':                       /* brightness */
350                          if (*++cp != '=')
351                                  break;
352 <                        if (!isfltd(++cp, " \t\n"))
352 >                        if (!isfltd(++cp, " \t\n\r"))
353                                  break;
354                          thisillum.minbrt = atof(cp);
355                          if (thisillum.minbrt < 0.)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines