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

Comparing ray/src/util/scanner.c (file contents):
Revision 1.2 by greg, Fri Jun 4 14:33:40 1993 UTC vs.
Revision 1.4 by schorsch, Thu Jun 26 00:58:11 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1991 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   *  scanner.c - program to simulate bi-directional scanner.
6   *
7   *     6/10/86
8   */
9  
10 < #include  "stdio.h"
10 > #include  <stdio.h>
11  
12 < #include  "ctype.h"
12 > #include  <stdlib.h>
13  
14 < #include  "signal.h"
14 > #include  <ctype.h>
15  
16 + #include  <signal.h>
17 +
18   #include  "random.h"
19  
20  
# Line 42 | Line 41 | double  targeth = 3.0;                 /* target height (inches) */
41   int  xres = 16;                         /* x sample resolution */
42   int  yres = 16;                         /* y sample resolution */
43  
44 + static void  quit(int code);
45  
46   main(argc, argv)
47   int  argc;
48   char  *argv[];
49   {
50        double  atof();
50          char  *strcat(), *mktemp();
52        int  quit();
51          int  i;
52  
53 + #ifdef SIGHUP
54          signal(SIGHUP, quit);
55 + #endif
56          signal(SIGINT, quit);
57          signal(SIGTERM, quit);
58 + #ifdef SIGXCPU
59          signal(SIGXCPU, SIG_IGN);
60          signal(SIGXFSZ, SIG_IGN);
61 + #endif
62  
63          for (i = 1; i < argc && argv[i][0] == '-'; i++)
64                  switch (argv[i][1]) {
# Line 150 | Line 152 | badopt:
152   }
153  
154  
155 + void
156   quit(code)                      /* unlink temp files and exit */
157   int  code;
158   {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines