148 |
|
|
149 |
|
void |
150 |
|
eputs( /* put string to stderr */ |
151 |
< |
char *s |
151 |
> |
const char *s |
152 |
|
) |
153 |
|
{ |
154 |
|
static int midline = 0; |
164 |
|
|
165 |
|
|
166 |
|
void |
167 |
< |
wputs(s) /* print warning if enabled */ |
168 |
< |
char *s; |
167 |
> |
wputs(const char *s) /* print warning if enabled */ |
168 |
|
{ |
169 |
|
if (warnings) |
170 |
|
eputs(s); |
172 |
|
|
173 |
|
|
174 |
|
void |
175 |
< |
quit(ec) /* make sure exit is called */ |
177 |
< |
int ec; |
175 |
> |
quit(int ec) /* make sure exit is called */ |
176 |
|
{ |
177 |
|
if (ray_pnprocs > 0) /* close children if any */ |
178 |
|
ray_pclose(0); |
207 |
|
error(SYSTEM, errmsg); |
208 |
|
} |
209 |
|
filter(pfp, buf); |
210 |
< |
pclose(pfp); |
210 |
> |
if (pclose(pfp) != 0) { |
211 |
> |
sprintf(errmsg, "bad status from \"%s\"", buf); |
212 |
> |
error(WARNING, errmsg); |
213 |
> |
} |
214 |
|
} else { /* object */ |
215 |
|
ungetc(c, infp); |
216 |
|
xobject(infp, name); |