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

Comparing ray/src/meta/okimate.c (file contents):
Revision 1.1 by greg, Sat Feb 22 02:07:26 2003 UTC vs.
Revision 1.2 by schorsch, Fri Aug 1 14:14:24 2003 UTC

# Line 94 | Line 94 | char  **argv;
94  
95   {
96   FILE  *fp;
97 #ifdef  UNIX
97   FILE  *popen();
99 #endif
98   char  comargs[200], command[300];
99  
102 #ifdef  CPM
103 fixargs("okimate", &argc, &argv);
104 #endif
105
100   progname = *argv++;
101   argc--;
102  
103   condonly = FALSE;
110 #ifdef  CPM
111 conditioned = TRUE;
112 #else
104   conditioned = FALSE;
114 #endif
105  
106   minwidth = 1;                  /* so lines aren't invisible */
107  
108   while (argc && **argv == '-')  {
109      switch (*(*argv+1))  {
120 #ifdef  UNIX
110         case 'c':
111            condonly = TRUE;
112            break;
113         case 'r':
114            conditioned = TRUE;
115            break;
127 #endif
116         default:
117            error(WARNING, "unknown option");
118            break;
# Line 157 | Line 145 | char  **argv;
145         argc--;
146         }
147      sprintf(command, XCOM, comargs);
160 #ifdef  UNIX
148      if (condonly)
149         return(system(command));
150      else  {
# Line 170 | Line 157 | char  **argv;
157            nextpage();
158         fputs(PUNINIT, stdout);
159         }
173 #endif
160      }
161  
162   return(0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines