1 |
|
#ifndef lint |
2 |
< |
static const char RCSid[] = "$Id$"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
4 |
|
/* |
5 |
|
* Make illum sources for optimizing rendering process |
6 |
|
*/ |
7 |
|
|
8 |
– |
#include "mkillum.h" |
9 |
– |
|
8 |
|
#include <signal.h> |
11 |
– |
|
9 |
|
#include <ctype.h> |
10 |
|
|
11 |
+ |
#include "mkillum.h" |
12 |
+ |
#include "platform.h" |
13 |
+ |
|
14 |
|
/* default parameters */ |
15 |
|
#define SAMPDENS 48 /* points per projected steradian */ |
16 |
|
#define NSAMPS 32 /* samples per point */ |
136 |
|
{ |
137 |
|
int rtstat; |
138 |
|
|
139 |
< |
rtstat = close_process(rt.pd); |
139 |
> |
rtstat = close_process(&(rt.pd)); |
140 |
|
if (status == 0) |
141 |
|
if (rtstat < 0) |
142 |
|
error(WARNING, |
156 |
|
ofun[OBJ_SPHERE].funp = o_sphere; |
157 |
|
ofun[OBJ_RING].funp = o_ring; |
158 |
|
/* set up signal handling */ |
159 |
+ |
#ifdef SIGPIPE /* not present on Windows */ |
160 |
|
signal(SIGPIPE, quit); |
161 |
+ |
#endif |
162 |
|
/* start rtrace process */ |
163 |
|
errno = 0; |
164 |
< |
maxbytes = open_process(rt.pd, rtargv); |
164 |
> |
maxbytes = open_process(&(rt.pd), rtargv); |
165 |
|
if (maxbytes == 0) { |
166 |
|
eputs(rtargv[0]); |
167 |
|
eputs(": command not found\n"); |
446 |
|
if (fgetword(str, MAXSTR, fp) == NULL) |
447 |
|
goto readerr; |
448 |
|
/* is it an alias? */ |
449 |
< |
if (!strcmp(str, ALIASID)) { |
449 |
> |
if (!strcmp(str, ALIASKEY)) { |
450 |
|
if (fgetword(str, MAXSTR, fp) == NULL) |
451 |
|
goto readerr; |
452 |
< |
printf("\n%s %s %s", thisillum.altmat, ALIASID, str); |
452 |
> |
printf("\n%s %s %s", thisillum.altmat, ALIASKEY, str); |
453 |
|
if (fgetword(str, MAXSTR, fp) == NULL) |
454 |
|
goto readerr; |
455 |
|
printf("\t%s\n", str); |