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.3 by schorsch, Mon Oct 27 10:28:59 2003 UTC

# Line 39 | Line 39 | static const char      RCSid[] = "$Id$";
39   #define  XCOM  "pexpand +vOCIsp %s | psort -Y +x"
40  
41  
42 <
43 <
42 > #include  "rtprocess.h"
43   #include  "meta.h"
45
44   #include  "plot.h"
47
45   #include  "span.h"
46  
47  
51
52
48   char  *progname;
49  
50   struct span  outspan;
# Line 96 | Line 91 | char  **argv;
91  
92   {
93   FILE  *fp;
99 #ifdef  UNIX
100 FILE  *popen();
101 #endif
94   char  comargs[200], command[300];
95  
104 #ifdef  CPM
105 fixargs("mt160", &argc, &argv);
106 #endif
107
96   progname = *argv++;
97   argc--;
98  
99   condonly = FALSE;
112 #ifdef  CPM
113 conditioned = TRUE;
114 #else
100   conditioned = FALSE;
116 #endif
101  
102   while (argc && **argv == '-')  {
103      switch (*(*argv+1))  {
120 #ifdef  UNIX
104         case 'c':
105            condonly = TRUE;
106            break;
107         case 'r':
108            conditioned = TRUE;
109            break;
127 #endif
110         default:
111            error(WARNING, "unknown option");
112            break;
# Line 157 | Line 139 | char  **argv;
139         argc--;
140         }
141      sprintf(command, XCOM, comargs);
160 #ifdef  UNIX
142      if (condonly)
143         return(system(command));
144      else  {
# Line 170 | Line 151 | char  **argv;
151            nextpage();
152         fputs(PUNINIT, stdout);
153         }
173 #endif
154      }
155  
156   return(0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines