--- ray/src/cv/rad2mgf.c 1998/10/14 14:48:04 2.15 +++ ray/src/cv/rad2mgf.c 2003/07/27 22:12:02 2.18 @@ -1,9 +1,6 @@ -/* Copyright (c) 1995 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: rad2mgf.c,v 2.18 2003/07/27 22:12:02 schorsch Exp $"; #endif - /* * Convert Radiance scene description to MGF */ @@ -11,6 +8,9 @@ static char SCCSid[] = "$SunId$ LBL"; #include "standard.h" #include #include +#include + +#include "platform.h" #include "object.h" #include "color.h" #include "lookup.h" @@ -22,8 +22,6 @@ int o_instance(), o_illum(); int o_plastic(), o_metal(), o_glass(), o_dielectric(), o_mirror(), o_trans(), o_light(); -extern int free(); - LUTAB rmats = LU_SINIT(free,NULL); /* defined material table */ LUTAB rdispatch = LU_SINIT(NULL,NULL); /* function dispatch table */ @@ -265,7 +263,7 @@ char *id; *cp2++ = 'O'; } for (cp = id; cp < end; *cp2++ = *cp++) { - if (*cp < '!' | *cp > '~') /* limit to visible chars */ + if ((*cp < '!') | (*cp > '~')) /* limit to visible chars */ *cp = '?'; diff += *cp != *cp2; } @@ -430,7 +428,7 @@ FUNARGS *fa; register char *cp; register int i; - if (fa->nfargs < 9 | fa->nfargs % 3) + if ((fa->nfargs < 9) | (fa->nfargs % 3)) return(-1); setmat(mod); setobj(id);