1 |
– |
/* Copyright (c) 1995 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Convert Radiance scene description to MGF |
6 |
|
*/ |
8 |
|
#include "standard.h" |
9 |
|
#include <ctype.h> |
10 |
|
#include <string.h> |
11 |
+ |
#include <stdio.h> |
12 |
+ |
|
13 |
+ |
#include "platform.h" |
14 |
|
#include "object.h" |
15 |
|
#include "color.h" |
16 |
|
#include "lookup.h" |
22 |
|
int o_plastic(), o_metal(), o_glass(), o_dielectric(), |
23 |
|
o_mirror(), o_trans(), o_light(); |
24 |
|
|
25 |
– |
extern int free(); |
26 |
– |
|
25 |
|
LUTAB rmats = LU_SINIT(free,NULL); /* defined material table */ |
26 |
|
|
27 |
|
LUTAB rdispatch = LU_SINIT(NULL,NULL); /* function dispatch table */ |
263 |
|
*cp2++ = 'O'; |
264 |
|
} |
265 |
|
for (cp = id; cp < end; *cp2++ = *cp++) { |
266 |
< |
if (*cp < '!' | *cp > '~') /* limit to visible chars */ |
266 |
> |
if ((*cp < '!') | (*cp > '~')) /* limit to visible chars */ |
267 |
|
*cp = '?'; |
268 |
|
diff += *cp != *cp2; |
269 |
|
} |
428 |
|
register char *cp; |
429 |
|
register int i; |
430 |
|
|
431 |
< |
if (fa->nfargs < 9 | fa->nfargs % 3) |
431 |
> |
if ((fa->nfargs < 9) | (fa->nfargs % 3)) |
432 |
|
return(-1); |
433 |
|
setmat(mod); |
434 |
|
setobj(id); |