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

Comparing ray/src/meta/mt160.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 96 | Line 96 | char  **argv;
96  
97   {
98   FILE  *fp;
99 #ifdef  UNIX
99   FILE  *popen();
101 #endif
100   char  comargs[200], command[300];
101  
104 #ifdef  CPM
105 fixargs("mt160", &argc, &argv);
106 #endif
107
102   progname = *argv++;
103   argc--;
104  
105   condonly = FALSE;
112 #ifdef  CPM
113 conditioned = TRUE;
114 #else
106   conditioned = FALSE;
116 #endif
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