--- ray/src/gen/xform.c 2003/06/30 14:59:11 2.28 +++ ray/src/gen/xform.c 2003/10/27 10:27:25 2.34 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: xform.c,v 2.28 2003/06/30 14:59:11 schorsch Exp $"; +static const char RCSid[] = "$Id: xform.c,v 2.34 2003/10/27 10:27:25 schorsch Exp $"; #endif /* * xform.c - program to transform object files. @@ -10,10 +10,10 @@ static const char RCSid[] = "$Id: xform.c,v 2.28 2003/ */ #include -#include -#include "standard.h" #include "platform.h" +#include "rtmath.h" +#include "rtprocess.h" /* win_popen() */ #include "paths.h" #include "object.h" #include "otypes.h" @@ -73,14 +73,14 @@ char *argv[]; if (argv[a][0] == '-') switch (argv[a][1]) { case 'm': - if (argv[a][2] | a+1 >= argc) + if (argv[a][2] | (a+1 >= argc)) break; a++; if (newmod == NULL) newmod = argv[a]; continue; case 'n': - if (argv[a][2] | a+1 >= argc) + if (argv[a][2] | (a+1 >= argc)) break; a++; if (idprefix == NULL) @@ -122,7 +122,7 @@ char *argv[]; a += xf(&tot, argc-a, argv+a); - if (reverse = tot.sca < 0.0) + if ( (reverse = tot.sca < 0.0) ) tot.sca = -tot.sca; if (invert) reverse = !reverse; @@ -221,7 +221,7 @@ int ac, fi; skipspaces: while (isspace(*cp)) /* nullify spaces */ *cp++ = '\0'; - if ((*cp == '"' | *cp == '\'')) + if ((*cp == '"') | (*cp == '\'')) inquote = *cp++; if (!*cp) /* all done? */ break; @@ -837,7 +837,8 @@ initotypes() /* initialize ofun[] array */ ofun[OBJ_CYLINDER].funp = ofun[OBJ_TUBE].funp = o_cylinder; ofun[OBJ_RING].funp = o_ring; - ofun[OBJ_INSTANCE].funp = addxform; + ofun[OBJ_INSTANCE].funp = + ofun[OBJ_MESH].funp = addxform; ofun[MAT_GLOW].funp = m_glow; ofun[MAT_SPOT].funp = m_spot; ofun[MAT_DIELECTRIC].funp = m_dielectric;