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

# Line 37 | Line 37 | static const char      RCSid[] = "$Id$";
37   #define  XCOM  "pexpand +vOCIsp %s | psort -Y +x"
38  
39  
40 <
41 <
40 > #include  "rtprocess.h"
41   #include  "meta.h"
43
42   #include  "plot.h"
45
43   #include  "span.h"
44  
45  
49
50
46   char  *progname;
47  
48   struct span  outspan;
# Line 94 | Line 89 | char  **argv;
89  
90   {
91   FILE  *fp;
97 #ifdef  UNIX
98 FILE  *popen();
99 #endif
92   char  comargs[200], command[300];
93  
102 #ifdef  CPM
103 fixargs("okimate", &argc, &argv);
104 #endif
105
94   progname = *argv++;
95   argc--;
96  
97   condonly = FALSE;
110 #ifdef  CPM
111 conditioned = TRUE;
112 #else
98   conditioned = FALSE;
114 #endif
99  
100   minwidth = 1;                  /* so lines aren't invisible */
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